在上一章中介绍了安装python3的安装。这里我们介绍一下配置Sublime Text
首先我们需要去下载sublime text3 下载地址
1、我们需要获取python的解析器的完整路径,在终端输入:
$ type -a python3
![](https://img.haomeiwen.com/i5892667/cc29e741e6b7e343.png)
2、配置你下载安装好的sublime text3
![](https://img.haomeiwen.com/i5892667/3e38edcf7926bf00.png)
![](https://img.haomeiwen.com/i5892667/3e7a21cf7d290e31.png)
"cmd" : ["/usr/local/bin/python3", "-u", "$file"]
保存命令如图。
配置完之后你就可以看到如图,勾选python3
![](https://img.haomeiwen.com/i5892667/93236c0ef6fd7b9d.png)
在使用sublime text3 新建一个py后缀的文件如图
![](https://img.haomeiwen.com/i5892667/ea94c470178da216.png)
这个时候你就可以使用command + b 来运行程序了如图
![](https://img.haomeiwen.com/i5892667/cc4c69808db006aa.png)
希望你能在python里面愉快的畅游。
网友评论