The following tutorial column ofsublimewill introduce you to the shortcut keys for running Python code in sublime. I hope it will be helpful to friends in need!
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” }
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!