Commit 38310c3f by BellCodeEditor

save project

parent 16b3bc73
Showing with 9 additions and 2 deletions
......@@ -11,4 +11,11 @@ while True:
except:
print("请输入一个整数")
print(total)
\ No newline at end of file
def sum(monety):
h=0
for i in money:
h=h+i
return h
result = total()
result1=sum(result)
print(result1)
\ 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