【python】IndentationError: unexpected indent

 今天在運行python項目時發現報了這個錯誤,後來打開源碼發現是packages\__init__.py文件中對應的keys_to_ignore = ['oid', 'schema', 'xmin']這行代碼報的錯,原因是代碼縮進格式不對,刪除縮進後重新使用tab鍵進行縮進再運行就OK了。
相關文章
相關標籤/搜索