Python错误集锦 1.缩进错误: IndentationError 2.语法错误:SyntaxError 3.类型错误:TypeError 4.值错误:ValueError 5.命名错误:NameError 6.属性错误:AttributeError