取消缩进与任何外部缩进级别都不匹配。这行代码在开始部分的空格比前一行少,但是同样它不匹配它可能成为其中一部分的任何其他块。Python 无法决定它的去向。例如,在下面的例子中,最终打印是否应该是 if 子句的一部分?
>>> if user == "Joey":
... print "Super secret powers enabled!"
... print "Revealing super secrets"
IndendationError: unindent does not match any outer indentation level
a = """ your Python script """
print a.replace("Here please press the tab button. It will insert some space", " here simply press the space bar four times.")
#
# Here we are replacing tab space by four character
# space as per the PEP 8 style guide...
#
# Now execute this code. In the Sublime Text
# editor use Ctrl + B. Now it will print
# indented code in the console. That's it.