Python -- TabError: inconsistent use of tabs and spaces in indentation

運行Python腳本報錯:TabError: inconsistent use of tabs and spaces in indentation 已知問題,Python是以4個空格爲縮進的,比如if裏面的代碼要比if那行要多4個空格縮進,if語句結束後,跳出if命令的代碼和if所在行的縮進是一樣的。 上面報錯的問題是因爲使用了Tab符號代替了4個空格 圖中1和2區域能看出明顯區別。 1、使用了T
相關文章
相關標籤/搜索