IndentationError: unindent does not match any outer indentation level

python中约到的问题,
IndentationError: unindent does not match any outer indentation level
占位问题,存在两种可能性:1.代码没有对齐 2.存在非法字符与其他格式的不可见的内容(输入法的问题)

解决:

  • 1.TAB对齐代码
  • 2.选择代码,缩进-删除(or插入)制表符

notepad++操作路径, 编辑-缩进

原文地址:https://www.cnblogs.com/zmdComeOn/p/12018960.html