美文网首页
Sublime的Python3配置

Sublime的Python3配置

作者: 笛音夏扇 | 来源:发表于2016-09-15 21:33 被阅读66次
  • 自定义BuildSystem,完成后路径为/Users/[username]/Library/Application Support/Sublime Text 3/Packages/User
{
 "cmd": ["/Library/Frameworks/Python.framework/Versions/3.5/bin/python3.5", "-u", "$file"],
 "file_regex": "^[ ]*File \"(...*?)\", line ([0-9]*)",
 "selector": "source.python",
 "env": {"PYTHONIOENCODING": "utf-8"},
 # 这行可以解决'ascii' codec can't encode characters in position xxxx的问题
 "encoding": "utf-8",

    "variants":
    [
        {
            "name": "Syntax Check",
            "shell_cmd": "python -m py_compile \"${file}\"",
        }
    ]
}
  • 目前库文件跳转还是不对

相关文章

网友评论

      本文标题:Sublime的Python3配置

      本文链接:https://www.haomeiwen.com/subject/fmbbettx.html