Commit 5a81db4d by BellCodeEditor

save project

parent 53fe7598
......@@ -15,13 +15,13 @@ def new_input():
total.append(y)
finally:
print("-"*30)
print(total)
return total
new_input()
def sum(c):
f=0
for i in c():
for i in c:
f=f+i
print("一共消费"+int(f)+"元!扫码还是现金呢"
return f
# print("一共消费"+str(f)+"元!扫码还是现金呢")
return f
import func
x=func.new_input()
u=func.sum(x)
print("总分为"+str(u))
\ 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