Hamge

学习记录

导航

2019年4月25日 #

Python 找零问题

摘要: #coding = utf-8 def Change_Money(money): print('总金额:'+str(money)+'元') loop=True tmp=[] # 面值列表 单位:元 type = [100,50,20,10,5,1,0.5,0.1] sy = int(money*10) #将传入的金额*10,转换为... 阅读全文

posted @ 2019-04-25 15:26 Hamge 阅读(755) 评论(0) 推荐(0) 编辑