sublime运行Python代码的快捷键

  • 时间:
  • 来源:网络

    下面由sublime教程栏目给大家介绍sublime运行Python代码的快捷键,希望对需要的朋友有所帮助!

要先配置好python的环境变量,打开sublime text ,点击tools,然后选择build system,选择new build system,在文件中写入

{ 
“cmd”: [“D:/Python34/python.exe(ps:你的python安装路径)”, “-u”, “$file”], 
“file_regex”: “^[ ]File \\”(…?)\\”, line ([0-9]*)”, 
“selector”: “source.python”
 }

修改文件名为:python.sublime-build,直接保存,然后Ctrl+B即可运行