python中報錯TabError: Inconsistent use of tabs and spaces in indentation的解決

python是需要嚴格進行縮進的語言,比如函數的開始與結束都需要通過縮進來進行判斷。 如下是最近在跑Python時報的錯  TabError: Inconsistent use of tabs and spaces in indentation 通過報錯知道是第24行的縮進用的不正確,錯誤提示:縮進中,tab鍵(tab分位符)與空格用的不一致 也就是說,第24行前的所有縮進與第24行的縮進所用的方
相關文章
相關標籤/搜索