Commit e915af57 by BellCodeEditor

save project

parent 26663d9d
Showing with 3 additions and 2 deletions
...@@ -16,14 +16,14 @@ def new_input(): ...@@ -16,14 +16,14 @@ def new_input():
return total return total
ooo=new_input() ooo=new_input()
print(ooo) print(ooo)
def sum(money) def sum(money):
he=0 he=0
for i in money: for i in money:
he=he+i he=he+i
return he return he
price=new_input() price=new_input()
pay=sum(price) pay=sum(price)
print("") 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