Commit 7da75006 by BellCodeEditor

save project

parent ec43ec1d
Showing with 8 additions and 2 deletions
A=[]
while True:
a=input("请输入:")
a=input("请输入(q退出):")
if a=="q":
break
else:
A.append(a)
try:
a=int(a)
except:
print("请输入整数")
else:
A.append(a)
print(A)
\ 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