Commit 5853c007 by BellCodeEditor

save project

parent a5df21cd
Showing with 3 additions and 15 deletions
def new_input(): def new_input():
total = [] total = []
while True: while True:
unit= input("请输入:")
try: try:
e=int(unit) unit=int( input("请输入:"))
try: except:
print("请输入:") print("请重新输入数字")
Exception
except expression as identifier:
else:
except expression as identifier:
except expression as identifier:
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