Commit 7839a4cc by BellCodeEditor

save project

parent 63290fae
Showing with 6 additions and 3 deletions
...@@ -11,8 +11,12 @@ def new_input(): ...@@ -11,8 +11,12 @@ def new_input():
print("请输入整数") print("请输入整数")
else: else:
total.append(unit) total.append(unit)
print(total) print(total)
return total
new_input() a = new_input()
\ No newline at end of file b = 0
for i in a:
b=b+i
print(b)
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