1.新增一個專案,選擇External Build System後按Next
2.選取python的路徑,路徑可透過終端機下which python找到
3.選擇Edit Scheme修改
4.Edit Scheme的第一個Info選項下的Executable選python(剛才用which python找到的執行檔),然後Debug要選None或是Debugger executable的勾選要取消
5.Edit Scheme的第二個Arguments選項下的Arguments Passed On Launch將等下要執行的python程式列入
6.Edit Scheme的第三個Option選項下的Working Directory要勾選Use custom working directory並將放置剛上面的.py的資料夾名稱列入
7.新增一個Empty File並命名為dataPython.py,試著用python語法後執行,成功
原文:https://www.cnblogs.com/lightweilun/p/9795364.html