Commit 72456ad2 by BellCodeEditor

save project

parent fa1c9d67
Showing with 5 additions and 4 deletions
......@@ -10,15 +10,15 @@ def new_input():
except:
print('请输入整数')
else:
total.append(unit)
total.append(a)
return total
del a(b):
def a(b):
c=0
for i in b:
c+=i
return c
result = new_input()
pay=result
result = new_input()
pay=a(result)
print(pay)
\ 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