Commit 7d361322 by BellCodeEditor

save project

parent dc855177
Showing with 12 additions and 2 deletions
...@@ -13,8 +13,18 @@ def new_input(): ...@@ -13,8 +13,18 @@ def new_input():
total.append(unit) total.append(unit)
print("-"*30) print("-"*30)
return total return total
result=now_input() result=new_input()
print(total) print(result)
def sum(money)
count=0
for i in money:
count=count+i
return count
price=new_input()
pay=sum(price)
print("共消费"+str(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