在xcode中编辑运行python代码
来源:互联网 发布:腾讯云服务器数据库 编辑:程序博客网 时间:2024/05/02 19:50
http://www.douban.com/group/topic/22765904/
http://www.zhihu.com/question/19872198
In the menu bar, click "File" → "New" → "New Project…".
- Select "Other" under "Mac OS X".
- Select "External Build System" and click "Next".
- Enter the product name.
- For the "Build Tool" field, type in FULL path of your python and then click "Next".
Choose where to save it and click "Create".
- In the menu bar, click "File" → "New" → "New File…".
- Select "Other" under "Mac OS X".
- Select "Empty" and click "Next".
- Navigate to the project folder (it will not work, otherwise)
- Enter the name of the Python file (include the ".py" extension), and click "Save".
- In the menu bar, click "Product" → "Edit Scheme…".
- Click "Run" in the left column.
- In the "Info" tab, click the "Executable" field and then click "Other…".
- Navigate to the executable of your python. You may need to use ⇧⌘G to type in the directory if it is hidden.
- Select the executable and click "Choose".
- For the "Debugger" field, select "None".
- In the "Arguments" tab, click the "Base Expansions On" field and select the target you created earlier.
- Click the "+" icon under "Arguments Passed On Launch". You may have to expand that section by clicking on the triangle pointing to the right.
Type in "$(SOURCE_ROOT)/" and then the name of the Python file you want to test.
- Remember, the Python program must be in the project folder. Otherwise, you will have to type out the full path here.
- Click "OK".
- Start coding.
- 在xcode中编辑运行python代码
- 在 Xcode 里编译运行 Python 代码
- 在Code::Blocks中编辑并运行python程序
- 在Code::Blocks中编辑并运行python程序
- 在notepad++中直接运行python代码
- Xcode 4 中如何运行 Python 脚本?
- 在notepad++中直接运行python代码快捷方式设置
- Python 代码放在函数中运行比放在全局中运行快
- 如何将用Xcode编写的Cocos2d-x项目代码在Android Studio中运行
- Xcode 中代码编辑和删除的一些技巧
- Xcode运行HTML5代码
- 在Notepad++中运行python代码以及 运行后只是一闪而过
- 在xcode中编译APUE代码
- 在Xcode中自定义代码块
- ue4在Xcode中没有代码提示
- VS2010在程序运行状态下无法编辑代码
- Xcode使用Code Snippet在Xcode中添加代码段
- [python]在shell中运行
- java中复用技术(继承和组合)
- c/c++优先级列表
- cocostudio 及 cocos2d-x最新版下载地址,会自动更新,屌伐?
- window.location.href使用方法详解
- ZOJ_2710_ Two Pipelines(贪心)
- 在xcode中编辑运行python代码
- gcc学习
- Java--计算文件md5值
- 如何在Windows服务器上实现最佳文件访问监控
- 小感悟
- 命令整理
- 机器语言、汇编语言和高级语言之间的关系
- Android4.0 多点触摸屏新手入门指南
- 在电脑上开启网络校时服务