使用Xcode运行python

1.创建运行脚本项目

image

选择工程项目


image

工具目录就是python安装目录,可在终端使用 which python 命令查找,一般都为/usr/bin/python

2.配置

image

根据python路径选择python


image

新建一个与python文件名一致的argument


image

选择工程目录,也就是python文件目录

3.创建python可编辑文件

image



image


你可能感兴趣的:(使用Xcode运行python)