Commit af735e3a by BellCodeEditor

save project

parent 51740848
Showing with 6 additions and 5 deletions
total = []
def new_input():
total = []
while True:
try:
unit = int(input("请输入:"))
......@@ -8,6 +9,6 @@ def new_input():
break
else:
total.append(unit)
print(total)
return
new_input()
\ No newline at end of file
return total
print(new_input())
\ 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