Commit 20ff7943 by BellCodeEditor

save project

parent 0adf9263
Showing with 9 additions and 3 deletions
......@@ -11,7 +11,13 @@ def new_input():
print("请输入整数")
else:
a.append(b)
print("-"*50)
print("-"*50)
return a
def d(e):
f=0
for i in e:
f=f+i
return f
c=new_input()
print(c)
\ No newline at end of file
g=d(c)
print("您一共消费了"+str(g)+"元!扫码还是现金呢?")
\ 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