异常处理:
try:
r=10/0
print("result",r)
except ZeroDivisionError as e:
print("except:",e)
else:
print("no error")
finally:
print("finally...")
异常处理:
try:
r=10/0
print("result",r)
except ZeroDivisionError as e:
print("except:",e)
else:
print("no error")
finally:
print("finally...")