运行python代码出现的各种错

IndentationError: unindent does not match any outer indentation level

TabError: inconsistent use of tabs and spaces in indentation

产生原因:

tab与空格混用

解决方式:

sublime选中所有代码查看,横杠为tab,点为空格。将其进行统一,然后OK~

posted @ 2017-12-19 14:15  scissors  阅读(174)  评论(0编辑  收藏  举报