python+excel 实战学习--错误篇

1.错误提示“TabError: inconsistent use of tabs and spaces in indentation”

      错误行有tap标志符,删除前面的,敲空格就行

      例:把for 之前空白的地方,删除,敲空格就行

 

2. IndentationError: unindent does not match any outer indentation level

        Python语法中是不支持的代码对齐中,混用TAB和空格的。

可参考:https://www.cnblogs.com/kerrycode/p/11183963.html

 

没有回车,代码就可以通过

 

 

posted @ 2020-04-09 16:29  星空小蜗牛  阅读(190)  评论(0编辑  收藏  举报