Commit 054c8db8 by BellCodeEditor

auto save

parent 7685c542
Showing with 10 additions and 2 deletions
...@@ -14,4 +14,12 @@ def menu(): ...@@ -14,4 +14,12 @@ def menu():
finally: finally:
print("-"*30) print("-"*30)
return total return total
print(menu())
\ No newline at end of file def sum(price):
a = 0
for i in price:
a = a + i
return a
pay = sum(menu())
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