Sumbline text 3

1. Tools–>>Build System–>>New Build System

在右侧输入如下代码:

{
  "cmd": ["D:/Python/Python37-32/python.exe", "-u", "$file"],
  "file_regex": "^[ ]*File \"(...*?)\", line ([0-9]*)",
  "selector": "source.pythona",
  "encoding": "cp936"
}

并将文件另存为 Python3.sublime-build 文件。

 

说明:

cmd:指定python.exe的位置,

"encoding": "cp936" :设置 print('你好') 可以正常输出中文。

 

2. Tools–>>Build System下会发现有Python3存在,选择它即可。

3. Ctrl+B 运行程序。

 

[参考]
https://blog.csdn.net/u012654847/article/details/78023845

https://www.jianshu.com/p/406e45259f53

 

posted on 2022-07-29 22:49  雨点点  阅读(371)  评论(0编辑  收藏  举报