Python腳本運行出現語法錯誤:IndentationError: unindent does not match any outer indentation level
【問題】 一個python腳本,本來都運行好好的,然后寫了幾行代碼,而且也都確保每行都對齊了,但是運行的時候,卻出現語法錯誤: IndentationError: unindent does not ...
【問題】 一個python腳本,本來都運行好好的,然后寫了幾行代碼,而且也都確保每行都對齊了,但是運行的時候,卻出現語法錯誤: IndentationError: unindent does not ...
運行環境是win7 x64 sublime text2,百度發現是對齊問題。 具體來說是由於有的地方使用了4個空格,有的地方使用了tab鍵。 代碼區直接全選就會看到有的地方是四個點有個地方是一個橫 ...