Commit 1fa6c8c3 by BellCodeEditor

save project

parent 4cc14b52
Showing with 18 additions and 0 deletions
aaa =[]
def new_input():
while True:
unit= input("请输入:")
if unit=="q":
break
else:
try:
int(unit)
except:
print('要输入整数哦')
else:
aaa.append(unit)
return aaa
b=new_input()
print(b)
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