Commit f99ebf86 by BellCodeEditor

save project

parent c0e39be1
Showing with 6 additions and 0 deletions
a = [] a = []
while True: while True:
try:
n=input("请输入") n=input("请输入")
if n=="q": if n=="q":
break break
n=int(n)
except:
print("请输入整数")
print("程序结束")
else: else:
a.append(n) a.append(n)
print(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