Sublime Text 3 預設是python2.7版本,有的子產品是隻支援python3的,是以要建立一個python3.5(建立一個Build System)
Tools---Build System -------New Build System
然後輸入{
"cmd": ["/usr/bin/python3.5", "-u", "$file"],
"file_regex": "^[ ]*File \"(...*?)\", line ([0-9]*)",
"selector": "source.python"
}
再儲存,命名為:python3
Linux可以用指令:which python3.5 可查到目錄