1. 程式人生 > >解決報錯:TabError: inconsistent use of tabs and spaces in indentation

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

python出現了報錯:TabError: inconsistent use of tabs and spaces in indentation

分析:這個報錯就是說混用了tab和4個空格造成的,

解決辦法:檢查程式碼,要不全部用tab,要不全部用4個空格,或者用IDE編輯器校正。