Commit 8ffe844d by BellCodeEditor

save project

parent 9c50b398
Showing with 9 additions and 2 deletions
......@@ -13,7 +13,14 @@ def new_input():
total.append(unit)
finally:
print("-"*30)
return total
result= new_input()
print(total)
def sume(money):
count=0
for i in money:
count=count+i
return count
price=new_input()
pay= sume(price)
print("您本次共消费"+sty(pay)+"元,您是现金还是刷卡?(本店不开发票)")
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment