python报"IndentationError: unexpected indent"的解决方法

python是一种对缩进非常敏感的语言,最常见的情况是tab和空格的混用会导致错误,或者缩进不对,而这是用肉眼无法分别的。

 

空格 替换tab(行开始)

 

开始行 : 空格 print gnpath

posted on 2019-12-31 13:33  lydstory  阅读(2998)  评论(0)    收藏  举报

导航