python常见报错类型

 

报错类型 报错内容 错误判断 错误解决方式
IndentationError   unexpected indent 格式不对  
IndentationError      
IndentationError  unindent does not match any outer indentation level 缩进方式不一致,有的用空格(数量是否一致),有的用Tab 调整对应内容的缩进,一致(4空格)
       
       

猜你喜欢

转载自www.cnblogs.com/shengjie1/p/10775168.html