Commit d0d3099c by BellCodeEditor

auto save

parent 97bd8de0
Showing with 8 additions and 3 deletions
......@@ -11,9 +11,14 @@ def new_input():
print("请重新输入一个数字")
else:
total.append(unit)
print(total)
new_input()
return total
def sum(total):
count = 0
i = 0;
for i in total:
count += i
return count
print(sum(new_input()))
......
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