Commit 391bc928 by BellCodeEditor

save project

parent f54f9f1e
Showing with 8 additions and 2 deletions
......@@ -13,6 +13,12 @@ def store():
total.append(money)
print("-"*30)
return total
result=store()
print(result)
def sum(money):
count=0
for i in money:
count=count+i
return count
price=store()
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