sublime 運行 python

sublime 中 選擇菜單 Tools--> Build System-->New Build System,編輯文件以下:python

/usr/local/Cellar/python/3.7.0 修改成本身的安裝目錄
{ "cmd":["/usr/local/Cellar/python/3.7.0/bin/python3", "-u", "$file"], "path":"/usr/local/Cellar/python/3.7.0", "file_regex": "^[ ]*File \"(...*?)\", line ([0-9]*)", "selector": "source.python" }

保存爲 xxx.sublime-build文件,Tools-->Build System 選擇此構建名稱,Command+B 便可運行文件ui

相關文章
相關標籤/搜索