Commit f44fec47 by BellCodeEditor

save project

parent a7944d5c
Showing with 5 additions and 4 deletions
......@@ -15,11 +15,11 @@ def new_input():
#new_input()
a=new_input()
# print(a)
def sum():
def sum(monney):
conut=0
for i in a:
for i in monney:
conut=conut+i
return conut
sum()
price=sum()
sum(a)
price=sum(a)
print('您一共消费了',price,'元,扫码还是现金呢?')
\ 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