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: while True:
try: try:
unit= int(input("请输入:")) unit= int(input("请输入:"))
...@@ -8,8 +8,9 @@ def new_input(): ...@@ -8,8 +8,9 @@ def new_input():
print("TypeError") print("TypeError")
if unit== 123456789: if unit== 123456789:
break break
else: else:
total.append(unit) total.append(unit)
print(total) return total
print(new_input()) 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