TabError: inconsistent use of tabs and spaces in indentation

TabError: inconsistent use of tabs and spaces in indentation 這個錯誤,很簡單,意思就是tab和空格混用了。 在python代碼中,一般要麼都用空格來表示縮進,要麼都用tab來表示縮進。 那如果出現這樣的問題,如何去排查代碼中的空格和tab呢? 運行時報錯 找錯誤文件位置 提示了以上錯誤,並且說明是在哪個文件哪一行出現的問題,那這樣就很簡
相關文章
相關標籤/搜索