Commit 9cbf622f by BellCodeEditor

save project

parent 5bcacdcc
Showing with 2 additions and 1 deletions
...@@ -15,7 +15,7 @@ def new_input(): ...@@ -15,7 +15,7 @@ def new_input():
def sum(money): def sum(money):
count=0 count=0
for i in money: for i in money:
count+=0 count+=i
return count return count
pay=sum(new_input()) pay=sum(new_input())
print("您一共消费了"+str(pay)+"元!扫码还是现金呢?") print("您一共消费了"+str(pay)+"元!扫码还是现金呢?")
\ No newline at end of file
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