Commit e146664f by BellCodeEditor

save project

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