Commit d0d3099c by BellCodeEditor

auto save

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