Commit fef5470c by BellCodeEditor

save project

parent 6d88eca4
Showing with 22 additions and 0 deletions
def new_input():
mbjg=[]
while True:
lkoj=input("请输入")
if lkoj=="q":
break
else:
try:
lkoj=int(lkoj)
except:
print("请输入一个整数")
else:
mbjg.append(lkoj)
print("_"*30)
return mbjg
vhvv=new_input()
print(vhvv)
\ No newline at end of file
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