Discuss / Python / 这个还算是比较好理解

这个还算是比较好理解

Topic source

王新美男

#1 Created at ... [Delete] [Delete and Lock User]

这篇理解的比较到位。

对错误的处理。

手de温度

#2 Created at ... [Delete] [Delete and Lock User]
try:
    print('try...')
    r = 10 / 0
    print('result:', r)
except ZeroDivisionError as e:
    print('except:', e)
finally:
    print('finally...')
print('end')

最后一句指向t报错,为什么。windows下

aertawergtxcv

#3 Created at ... [Delete] [Delete and Lock User]

没有对齐

黎米YARN

#4 Created at ... [Delete] [Delete and Lock User]

并没有报错


  • 1

Reply