Commit f44fec47 by BellCodeEditor

save project

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