sublime text 3 python 控制台输出中文乱码解决方案

 自建的python运行环境如下:python3 

 

找到python3.sublime-build文件打开,在文件中加入"env": { "PYTHONIOENCODING": "utf8" }, 即可

文档包含:

{
"cmd": ["D:\\Software\\Python37\\python.exe","-u","$file"],
"file_regex": "^[ ]*File \"(...*?)\", line ([0-9]*)",
"selector": "source.python",
"env": { "PYTHONIOENCODING": "utf8" },
}

 

posted @ 2018-07-25 16:15  (时光)光阴飞逝  阅读(9895)  评论(0编辑  收藏  举报