python: indentationerror: unexpected indent

 以后遇到了IndentationError: unexpected indent你就要知道python编译器是在告诉你“Hi,老兄,你的文件里格式不对了,可能是tab和空格没对齐的问题,你需要检查下tab和空格了”。

在sourceInsight  中右键documentoptions --> visable tabs

删除文档中的类似于>>的tab箭头 就可以了

原文地址:https://www.cnblogs.com/muhuacat/p/5570300.html