Commit e3c185dc by BellCodeEditor

save project

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