python錯誤提示unindent does not match any outer indentation level

一段簡單的代碼,聲明一個類,然後實例化一個對象,報粗IndentationError: unindent does not match any outer indentation level 此錯誤,最常見的原因是沒有縮進,根據報錯行,可以看到報錯行前多了一個空格,刪除即可
相關文章
相關標籤/搜索