Commit 69291b9d by BellCodeEditor

auto save

parent 7eaed43a
Showing with 17 additions and 0 deletions
def new_input():
n = []
while True:
z=input('请输入:')
if z=='q':
break
else:
try:
z=int(z)
except:
print('重新输')
else:
n.append(z)
print('-'*30)
print(n)
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