Commit f3939e7a by BellCodeEditor

save project

parent b68df9d4
Showing with 9 additions and 3 deletions
...@@ -15,5 +15,11 @@ def new_input(): ...@@ -15,5 +15,11 @@ def new_input():
print("程序结束——") print("程序结束——")
print(total) print(total)
return total return total
s = new_input() def sum(money):
print(s) r = 0
\ No newline at end of file for i in money:
r = r+i
return r
j = new_input()
t = sum(j)
print("您一共消费了"+str(t)+"元")
\ 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