Home  >  Article  >  Development Tools  >  Sublime shortcut keys for running Python code

Sublime shortcut keys for running Python code

藏色散人
藏色散人forward
2020-09-02 11:54:205853browse

The following tutorial column of sublime will introduce you to the shortcut keys for running Python code in sublime. I hope it will be helpful to friends in need!

Sublime shortcut keys for running Python code

To configure the python environment variables first, open sublime text, click tools, then select build system, select new build system, and write

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

Change the file name: python.sublime-build, save it directly, and then Ctrl B to run it

The above is the detailed content of Sublime shortcut keys for running Python code. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:zhihu.com. If there is any infringement, please contact admin@php.cn delete