Commit dddee303 by BellCodeEditor

save project

parent 804c9c58
Showing with 15 additions and 7 deletions
def m(): def m():
to=[] while True:
u=input('请输入:') to=[]
if u=='q': u=input('请输入:')
break if u=='q':
break
else: else:
to.append(u) try:
print(to) u=int(u)
\ No newline at end of file except :
print('重新输入一个整数')
else:
to.append(u)
return 0
ad=m()
print()
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