zoukankan      html  css  js  c++  java
  • Xcode搭建Python编译环境

    Xcode搭建Python编译环境

    1. 确认安装了python
    zx:~ zx$ which python
    /usr/bin/python

    2.打开Xcode,新建工程,选择 "Other"| "Externail Building System".

    3.BuildTool填入 "/usr/bin/python"

    4.先建一个test.py文件,输入

    print "hello,world";

    5.EditScheme中,选中Run后需要做三件事情:

    5.1 Info中,BuildConfiguration选择Debug; Executable选择/usr/bin/python文件;不勾选"Debug Executable"

    5.2 Arguments中,启动参数添加文件名"test.py"

    5.3 Options中,勾选Working Directory下的自定义目录,然后选择test.py所在的目录.

    1. over,运行就可以得到 hello,world.

    参考资料: https://www.youtube.com/watch?v=d6VRvLjcPfU

  • 相关阅读:
    阿里云 linux centos7安装tomcat
    定义全局的输入框获取焦点指令vfocus
    vue按enter键刷新页面 使用@submit.native.prevent阻止表单默认提交,添加在form标签上
    vue按键修饰符@keyup.enter.native
    阿里云 linux centos7中安装redis
    CRON表达式
    python定时执行nutch爬取任务
    Spring中设置bean作用域
    Cassandra 安装
    cassandra入门
  • 原文地址:https://www.cnblogs.com/xilifeng/p/5027804.html
Copyright © 2011-2022 走看看