Commit 843257b8 by BellCodeEditor

save project

parent 7eaed43a
Showing with 19 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)
print(mbjg)
new_input()
\ 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