sublime text 3配置使用python操作方法
作者:jingxian 时间:2023-01-21 20:30:14
1、 在sublime text的官网下载,是适合自己系统的版本。官网地址:https://www.sublimetext.com/3
2、安装好后,在菜单栏打开:Preferences--->Settings(这是写这个的时候,当前最新版的)
3、打开后我们会看到这样两个文件,一个Preferences.sublime-settings--Default和Preferences.sublime-settings--User
那么这个User的文件就是我们要编辑的了
4、在文件的大括号中写入这么一段配置信息/代码,之后保存:
// Settings in here override those in "Default/Preferences.sublime-settings",
// and are overridden in turn by syntax-specific settings.
{
"python":{
"Python":"D:/Python27/python.exe",
"pythonExtraPaths":
[
"D:/Python27",
"D:/Python27/DLLS",
"D:/Python27/Lib",
"D:/Python27/Lib/site_packages"
]
},
}
5、这样配置完成后,执行Ctrl-B应该是可以执行了,但是发现没有输出信息,那么就需要下面的这段配置了
File--->New File 新建一个文件,保存名称为Python.sublime-build(Python也可以写其他想些的比如 My_Python)
在里面同样需要写一段配置信息/代码,保存:
{
"shell_cmd": "d:/python27/python.exe -u \"$file\"",
"file_regex": "^[ ]*File \"(...*?)\", line ([0-9]*)",
"selector": "source.python",
"encoding":"cp936"
}
6、再次执行 Ctrl-B,是不是就可以正常运行,并看到输出了(前提是你得有输出)
标签:python,sublime,text3
![](/images/zang.png)
![](/images/jiucuo.png)
猜你喜欢
Python采集C站热榜数据实战示例
2022-05-03 13:13:13
使用python搭建Django应用程序步骤及版本冲突问题解决
2023-01-29 07:36:34
![](https://img.aspxhome.com/file/2023/1/63891_0s.jpg)
Python 数据结构之树的概念详解
2021-06-24 17:08:25
![](https://img.aspxhome.com/file/2023/8/78798_0s.png)
python将pandas datarame保存为txt文件的实例
2021-11-17 06:21:51
详解npm 配置项registry修改为淘宝镜像
2024-05-08 09:37:55
![](https://img.aspxhome.com/file/2023/6/129456_0s.jpg)
mysql存储过程 在动态SQL内获取返回值的方法详解
2024-01-19 01:22:53
mysql5.6.8源码安装过程
2024-01-22 02:53:41
为什么mysql自增主键不是连续的
2024-01-19 06:59:53
![](https://img.aspxhome.com/file/2023/9/124869_0s.png)
记录模型训练时loss值的变化情况
2022-03-22 23:39:48
![](https://img.aspxhome.com/file/2023/9/105249_0s.jpg)
Go语言LeetCode题解1046最后一块石头的重量
2024-05-29 22:08:19
vue3获取当前路由地址
2024-05-09 15:13:36
![](https://img.aspxhome.com/file/2023/6/126546_0s.jpg)
Python使用jpype模块调用jar包过程解析
2023-04-12 03:07:12
python中创建一个包并引用使用的操作方法
2023-05-19 03:06:09
![](https://img.aspxhome.com/file/2023/2/115662_0s.png)
使用post方法实现json往返传输数据的方法
2024-04-18 09:28:23
![](https://img.aspxhome.com/file/2023/5/136615_0s.png)
Python使用Requests请求网页方式
2022-10-08 06:01:09
js实现简单选项卡功能
2024-04-22 13:05:47
![](https://img.aspxhome.com/file/2023/3/135803_0s.png)
MySQL插入emoji表情失败问题的解决方法
2024-01-24 05:26:05
新手如何安装Mysql(亲测有效)
2024-01-17 00:21:01
![](https://img.aspxhome.com/file/2023/6/105216_0s.jpg)
Sub-Pixel Bug?!
2010-03-24 18:09:00
![](https://img.aspxhome.com/file/UploadPic/20103/24/1749_001-51s.jpg)
CSS Position
2009-05-17 14:27:00
![](https://img.aspxhome.com/file/UploadPic/20095/17/static-15s.png)