Commit e146664f by BellCodeEditor

save project

parent e721b639
Showing with 10 additions and 1 deletions
def l():
i=[]
while True:
k=input('请输入')
if k=='q':
break
else:
i.append(k)
try:
k=int(k)
except:
print('请输入1一个数字')
else:
i.append(k)
print(i)
l()
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