python输出中文乱码
首选项-浏览插件目录-USER文件夹
找到编译环境设置,编译方式为UTF-8编码
1 { 2 "cmd": ["c:/Python36/python.exe","-u", "$file"], //自己安装路径 3 "file_regex":"^[ ]*File \"(...*?)\", line ([0-9])*", 4 "env": {"PYTHONIOENCODING": "utf8"}, 5 "selector": "source.python" 6 }
首选项-浏览插件目录-USER文件夹
找到编译环境设置,编译方式为UTF-8编码
1 { 2 "cmd": ["c:/Python36/python.exe","-u", "$file"], //自己安装路径 3 "file_regex":"^[ ]*File \"(...*?)\", line ([0-9])*", 4 "env": {"PYTHONIOENCODING": "utf8"}, 5 "selector": "source.python" 6 }