首页 技术 正文
技术 2022年11月17日
0 收藏 513 点赞 4,148 浏览 890 个字

1.下载sublime3和python3(在腾讯软件中心下载较快)

2.安装

3.打开sublime ,tools->build system->new build system,在文件中写入:

{
"encoding": "utf-8",
"working_dir": "$file_path",
"shell_cmd": "C:\\python36\\python.exe -u \"$file\"",
"file_regex": "^[ ]*File \"(...*?)\", line ([0-9]*)",
"selector": "source.python"
}

  shell_cmd是python的安装路径,注意按照格式来,然后ctrl+s,保存文件,去取名为python3.6

4.点击build system 可以看到python3.6,选择它,然后新建一个文件,ctrl+s把文件命名为hello.py,在文件输入代码:

print('hello world!')

  然后ctrl+b运行,正常运行,至此第一步大功告成!

5.但是这样的是没有交互功能的,比如出现提示输入,然后键盘输入一个数,目前这个配置是无法做到的,我们要安装一个插件

6.选择tools->install package control,等待安装成功

7.在pereference可以看到package control,然后点击package control,在搜索框输入install package

8.可能出现问题:https://www.jianshu.com/p/ceb68e69f1ad

9.搜索sublimeREPL

10.key blindings绑定F5

{
"keys":["f5"],
"caption": "SublimeREPL: Python - RUN current file",
"command": "run_existing_window_command", "args": {"id": "repl_python_run",
"file": "config/Python/Main.sublime-menu"}
}

11.代码补全插件:sublimecodeINTEL

相关推荐
python开发_常用的python模块及安装方法
adodb:我们领导推荐的数据库连接组件bsddb3:BerkeleyDB的连接组件Cheetah-1.0:我比较喜欢这个版本的cheeta…
日期:2022-11-24 点赞:878 阅读:9,086
Educational Codeforces Round 11 C. Hard Process 二分
C. Hard Process题目连接:http://www.codeforces.com/contest/660/problem/CDes…
日期:2022-11-24 点赞:807 阅读:5,561
下载Ubuntn 17.04 内核源代码
zengkefu@server1:/usr/src$ uname -aLinux server1 4.10.0-19-generic #21…
日期:2022-11-24 点赞:569 阅读:6,410
可用Active Desktop Calendar V7.86 注册码序列号
可用Active Desktop Calendar V7.86 注册码序列号Name: www.greendown.cn Code: &nb…
日期:2022-11-24 点赞:733 阅读:6,183
Android调用系统相机、自定义相机、处理大图片
Android调用系统相机和自定义相机实例本博文主要是介绍了android上使用相机进行拍照并显示的两种方式,并且由于涉及到要把拍到的照片显…
日期:2022-11-24 点赞:512 阅读:7,820
Struts的使用
一、Struts2的获取  Struts的官方网站为:http://struts.apache.org/  下载完Struts2的jar包,…
日期:2022-11-24 点赞:671 阅读:4,903