python 在sublime txt3, 中文乱码


工具 -> 编译系统  -> 新编译系统
{  
    "cmd": ["python","-u","$file"],  
    "file_regex": "^[ ]*File \"(...*?)\", line ([0-9]*)",  
    "selector": "source.python",  
    "encoding": "cp936" 
}

用上面的代码替换掉"shell_cmd": "make", 保存当前配置文件为: "python_支持中文.sublime-build", 然后在工具->编译系统->选择 "python_支持中文"

猜你喜欢

转载自blog.csdn.net/lmz_lmz/article/details/88943714