Commit 87638719 by BellCodeEditor

save project

parent 0b5df407
Showing with 17 additions and 13 deletions
......@@ -3,17 +3,21 @@
A=[]
while True:
a=input("b")
if a=="b":
break
else:
try:
a=int(a)
except:
print("请输入整数")
def new_input():
A=[]
while True:
a=input("b")
if a=="b":
break
else:
A.append(a)
print(A)
try:
a=int(a)
except:
print("请输入整数")
else:
A.append(a)
return A
b=new_input()
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