Commit dddee303 by BellCodeEditor

save project

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