Commit 72456ad2 by BellCodeEditor

save project

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