Commit cd244343 by BellCodeEditor

save project

parent 2c9967f3
Showing with 7 additions and 2 deletions
...@@ -15,7 +15,12 @@ def aaa(): ...@@ -15,7 +15,12 @@ def aaa():
print("-"*30) print("-"*30)
return total return total
def sum(money):
count=0
for i in money:
count=count+i
return count
result = aaa() result = aaa()
print(total) pay = sum(result)
print("您一共消费了"+str(pey)+"扫码还是现金")
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