Discuss / Python / 做个更好的习题

做个更好的习题

Topic source

龅牙牧师

#1 Created at ... [Delete] [Delete and Lock User]

-- coding:utf-8 -- a=int(input('输出你上个月话费:')) b=int(input('输入本月话费:')) if a<b: c=(b-a)/a100 print('您本月话费环比上月增加了:','%.1f%%'%c) elif a==b: print('您本月话费与上月持平') else: d=(a-b)/a100 print('您本月话费比上月减少了:','%0.1f%%'%d)


  • 1

Reply