Commit abdb3471 by BellCodeEditor

save project

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