Commit ba4cd437 by BellCodeEditor

save project

parent 6d88eca4
Showing with 24 additions and 0 deletions
def new_input()
\ No newline at end of file
def new_input():
total = []
while True:
box = input("请输入————————\n一个整数!\n")
if box== 'q':
break
else:
try:
box = int(box)
except:
print('乡 思 是 不 是 ')
print('重来!')
else:
total.append(box)
print('下一个!')
print('-'*30)
#print(total)
return (total)
print('\n下一步\n')
p=new_input()
print(p)
\ 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