使用 Sublime 工具時報Decode error - output not utf-8解決辦法
?
在菜單中tools中第四項編譯系統 內最后一項增添新的編譯系統
自動新建 Python.sublime-build文件,并添加"encoding":"cp936"這一行,保存即可
使用python2 則注釋encoding改為utf-8
{"env": {"PATH":"D:\\anaconda\\envs\\python3_1;%PATH%"},"shell_cmd": "python -u \"$file\"","file_regex": "^[ ]*File \"(...*?)\", line ([0-9]*)","selector": "source.python","encoding": "cp936"// "encoding": "utf-8"
}
ctrl+B? 運行
?