Commit 0927d422 by BellCodeEditor

save project

parent 787060f0
Showing with 13 additions and 2 deletions
......@@ -13,5 +13,16 @@ def new_input():
total.append(unit)
print("*"*30)
return total
result=new_input()
print(result)
def sum(money):
a=0
for i in money:
a=i+a
return a
pay=sum(new_input())
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