1、在计算机内搜索Python3.sublime-build,内容如下
{
“cmd”: [“E:\python\python.exe”, “-u”, “$file”],
“file_regex”: “1File "(…?)”, line ([0-9])",
“selector”: “source.python”,
“encoding”: “UTF-8”
}
改为:
{
“cmd”: [“E:\python\python.exe”, “-u”, “$file”],
“file_regex”: “2File "(…?)”, line ([0-9])",
“selector”: “source.python”,
“encoding”: “cp936”
}
主要是修改"encoding":“cp936”,之后运行就可以了。
2、参考
https://blog.csdn.net/weixin_30416497/article/details/99167936
Windows下sblime text3 输出中文显示乱码
最新推荐文章于 2024-08-10 10:46:00 发布