Commit 4c499005 by BellCodeEditor

save project

parent 1c4f38b3
Showing with 10 additions and 7 deletions
......@@ -12,11 +12,14 @@ def new_input():
print("输入错了")
else:
total.append(s)
return total
def sum(money):
r=0
for i in money:
r=r+i
return r
a=new_input()
print(a)
r=0
for i in a:
r=r+i
print(r)
\ No newline at end of file
c=sum(a)
print(c)
\ 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