Commit f3939e7a by BellCodeEditor

save project

parent b68df9d4
Showing with 9 additions and 3 deletions
......@@ -15,5 +15,11 @@ def new_input():
print("程序结束——")
print(total)
return total
s = new_input()
print(s)
\ No newline at end of file
def sum(money):
r = 0
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