Commit 5fbd5951 by BellCodeEditor

save project

parent 53ce5803
Showing with 6 additions and 3 deletions
......@@ -15,12 +15,15 @@ def new_input():
a=new_input()
print(a)
def sum(money)
def sum(money):
he=0
for i in money:
he=he+i
return he
b=sum()
print(b)
price=new_input()
pay=sum(price)
print("您一共消费了"+str(pay)+"元!扫码还是现金呢")
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