Commit 06e9d30e by BellCodeEditor

save project

parent c3027dc8
Showing with 8 additions and 3 deletions
...@@ -16,9 +16,13 @@ def new_input(): ...@@ -16,9 +16,13 @@ def new_input():
def sum(money): def sum(money):
for i in money:
cout=0 cout=0
for i in money:
cout=cout+i cout=cout+i
return cout
rguh = new_input() price = new_input()
print(rguh) pay= sum(price)
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