Commit 72456ad2 by BellCodeEditor

save project

parent fa1c9d67
Showing with 4 additions and 3 deletions
...@@ -10,9 +10,9 @@ def new_input(): ...@@ -10,9 +10,9 @@ 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
...@@ -20,5 +20,5 @@ del a(b): ...@@ -20,5 +20,5 @@ del a(b):
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