except 多分支
try: a =1 # raise Exception except ValueError as e: print(e) except Exception as e: print(e) else: print("try正常就执行我") finally: print("无论成功与否都执行我")
except 多分支
try: a =1 # raise Exception except ValueError as e: print(e) except Exception as e: print(e) else: print("try正常就执行我") finally: print("无论成功与否都执行我")