Commit 03021d70 by BellCodeEditor

save project

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