Commit 03021d70 by BellCodeEditor

save project

parent 8c320a53
Showing with 9 additions and 6 deletions
lis1 = []
list = []
while True: while True:
a=input("请输入") try:
a = int(input("请输入:"))
except:
print('请输入数字')
else
list.append(a) list.append(a)
if a =='q': print(list))
break \ No newline at end of file
print(list)
\ 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