Commit bfb9ad35 by BellCodeEditor

save project

parent 3c619674
Showing with 6 additions and 4 deletions
...@@ -16,7 +16,9 @@ def new_input(): ...@@ -16,7 +16,9 @@ def new_input():
hhh = new_input() hhh = new_input()
print(hhh) print(hhh)
giao = 0 def money():
for i in hhh: giao = 0
giao += i for i in hhh:
print("总金额是:",giao) giao += i
print("总金额是:",giao)
money()
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