python错误提示unindent does not match any outer indentation level

一段简单的代码,声明一个类,然后实例化一个对象,报粗IndentationError: unindent does not match any outer indentation level

此错误,最常见的原因是没有缩进,根据报错行,可以看到报错行前多了一个空格,删除即可

相关文章:

  • 2021-04-25
  • 2022-12-23
  • 2021-12-03
猜你喜欢
  • 2021-11-18
  • 2021-11-08
相关资源
相似解决方案