TabError: inconsistent use of tabs and spaces in indentation解決

有時候從別人的代碼裏複製一大段到自己的編輯器時,或者從一個編輯器複製到另一個編輯器時總會莫名出現TabError: inconsistent use of tabs and spaces in indentation這樣的錯誤,無論怎麼重新輸入都不起作用。 原因是 代碼中有tab和空格混合使用的情況,只是你看不到 解決方法: 1.如果是在subline text中 在user那裏加上 "draw_
相關文章
相關標籤/搜索