Commit 0a1ec4f2 by BellCodeEditor

save project

parent 9680f014
Showing with 17 additions and 13 deletions
A=[]
while True: def new_input():
a=input("请输入(q退出):") A=[]
if a=="q": while True:
break a=input("请输入(q退出):")
else: if a=="q":
try: break
a=int(a)
except:
print("请输入整数")
else: else:
A.append(a) try:
print(A) a=int(a)
\ No newline at end of file except:
print("请输入整数")
else:
A.append(a)
return A
b= new_input()
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