Commit f0bb8ccf by BellCodeEditor

save project

parent 0de89733
Showing with 8 additions and 2 deletions
...@@ -16,8 +16,14 @@ def new_input(): ...@@ -16,8 +16,14 @@ def new_input():
return total return total
result = new_input() result = new_input()
print(result) print(result)
def sum(money):
count = 0
for i in money:
count = count + i
return count
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