python: indentationerror: unexpected indent

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

在sourceInsight  中右键documentoptions --> visable tabs

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

posted on 2016-06-08 15:44  木花猫  阅读(256)  评论(0编辑  收藏  举报

导航