Commit 3e95e747 by BellCodeEditor

save project

parent a3aef222
Showing with 8 additions and 3 deletions
...@@ -13,5 +13,10 @@ def new_input(): ...@@ -13,5 +13,10 @@ def new_input():
total.append(s) total.append(s)
print(total) print(total)
return total return total
new_input() # new_input()
print() def sum(yuan):
\ No newline at end of file f=0
for i in yuan:
f=f+i
print("您一共消费"+int(f)+"元!扫码还是现金呢?")
return f
\ 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