Python错误类型-持续更新
1.AttributeError 属性错误
这个错误就是说python找不到对应的对象的属性,例如:
class people():
name = 'zhangsan'
age = 18
zhangsan = people()
print(zhangsan.address)
AttributeError: 'people' object has no attribute 'address'
2. SyntaxError 语法错误
3. IndentationError 缩进错误
def F():
print("IndentationError happened here!")
IndentationError: expected an indented block