列举 5 个 Python 中的异常类型以及其含义

千锋教育

AttributeError
对象没有这个属性
NotImplementedError
尚未实现的方法
StopIteration
迭代器没有更多的值
TypeError
对类型无效的操作
IndentationError
缩进错误