python第三十课--异常(else讲解)


演示else语句和异常处理机制结合使用
try:
    print('try...')
    print(10/0)
except:
    print('except...')
else:
    print('else...')
finally:
    print('finally...')

猜你喜欢

转载自www.cnblogs.com/hankleo/p/10441255.html