Commit dea0ed0b by BellCodeEditor

auto save

parent 2afcebab
Showing with 0 additions and 17 deletions
def new_input():
total = []
while True:
unit= input("请输入:")
try:
if unit== 'q':
break
else:
int(unit)
total.append(unit)
except:
print("输整数")
return total
q=new_input()
print(q)
\ 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