1. 程式人生 > >在Xcode開發python

在Xcode開發python

option uil sed next img system .py info tap

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語法後執行,成功技術分享圖片

在Xcode開發python