异常处理:
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...")
本文标题:2018-03-12
本文链接:https://www.haomeiwen.com/subject/gumnfftx.html
网友评论