Commit 0ca5dae4 by BellCodeEditor

save project

parent 9315e447
Showing with 12 additions and 3 deletions
...@@ -13,6 +13,15 @@ def new_input(a): ...@@ -13,6 +13,15 @@ def new_input(a):
print("程序错误") print("程序错误")
break break
return total return total
s=new_input(total)
def sum(list):
a=0
for i in list:
a+=i
return a
c=sum(s)
print("您一共消费"+str(c)+"元!扫码还是现金呢?")
b=new_input(total)
print(b) # b=new_input(total)
\ No newline at end of file # print(b)
\ 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