sublime text 3配置 Python 3

1.安装python 3和sublime text 3

   在sublime text 3中, 打开tools--build system--new build system 

2. 把文件内容替换如下(XXXX表示python 3的安装路径, 路径包括python.exe, 并且斜杠\要换成反斜杠/):

{
"cmd": ["XXXX","-u","$file"],
"file_regex": "^[ ]*File \"(...*?)\", line ([0-9]*)",
"selector": "source.python",
}

3.  file--save ,命名为python3, 使用默认路径和文件类型保存

     tools--build system,选择python3

4.  设置左边工具栏显示打开的文件, view--side bar--show open files

猜你喜欢

转载自www.cnblogs.com/zpf1092841490/p/10426095.html