Commit cc66c2b4 by BellCodeEditor

save project

parent 3de0c64f
Showing with 5 additions and 5 deletions
total = []
def new_input():
def new_input():
total = []
while True:
try:
unit= int(input("请输入:"))
......@@ -8,8 +8,9 @@ def new_input():
print("TypeError")
if unit== 123456789:
break
else:
total.append(unit)
print(total)
return total
print(new_input())
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