Commit 38e468cc by BellCodeEditor

save project

parent 81d98c9c
Showing with 11 additions and 2 deletions
...@@ -16,5 +16,13 @@ def new_input(): ...@@ -16,5 +16,13 @@ def new_input():
total.append(unit) total.append(unit)
return total return total
a=new_input()
print(a)
def sum(money):
x=0
for i in money:
x=x+i
return x
price=new_input()
pay=sum(price)
print("您一共消费了"+str(pay)+"元!!!!今天必须交,不交打死!!!!!")
\ 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