Commit d72b6625 by BellCodeEditor

auto save

parent 21b1d043
Showing with 19 additions and 1 deletions
def n_input():
t = []
while True:
r = input('请输入:')
if r =='q':
break
else:
try:
r = int(r)
except:
print('请输入一个数字')
else:
t.append(r)
finally:
print('-'*30)
n = n_input()
print(n)
......
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