Commit 9d663b99 by BellCodeEditor

save project

parent f99ebf86
Showing with 18 additions and 14 deletions
a = []
while True: def num():
try: a = []
n=input("请输入") while True:
if n=="q": try:
break n=input("请输入")
n=int(n) if n=="q":
except: break
print("请输入整数") n=int(n)
print("程序结束") except:
else: print("请输入整数")
a.append(n) print("程序结束")
print(a) else:
\ No newline at end of file a.append(n)
return a
b = num()
print(b)
\ 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