Commit abdb3471 by BellCodeEditor

save project

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