Commit 394679e5 by BellCodeEditor

save project

parent 2bf1dc1b
Showing with 9 additions and 2 deletions
...@@ -13,4 +13,11 @@ def new_input(): ...@@ -13,4 +13,11 @@ def new_input():
total.append(unit) total.append(unit)
print(total) print(total)
return total return total
new_input() def suncont(money):
\ No newline at end of file cont=0
for i in money:
cont=cont+i
return cont
price=new_input()
pay=suncont(price)
print("您的菜品总消费是",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