pycharm 報(bào)錯(cuò):IndentationError: unindent does not match any outer indentation level
眼看對(duì)齊,實(shí)際是tab與空格混用,會(huì)報(bào)錯(cuò)
File -> Settings -> Editor -> Appearance -> 勾選“Show line numbers”悬荣、“Show whitespaces”、“Show method separators 勾選完之后就可以顯示制表符:橫向箭頭, 空格:點(diǎn),效果見(jiàn)圖1
通過(guò)設(shè)置smart tabs會(huì)比較方便芹血,設(shè)置過(guò)程間圖2
圖1.png
圖2.png