要先配置好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即可运行
上一篇:小程序中滚动消息通知的实现示例