Commit dddee303 by BellCodeEditor

save project

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