运行python代码出现的各种错

IndentationError: unindent does not match any outer indentation level

TabError: inconsistent use of tabs and spaces in indentation

产生原因:

tab与空格混用

解决方式:

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

原文地址:https://www.cnblogs.com/xb77/p/8058782.html