Commit c53059d6 by BellCodeEditor

save project

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