zoukankan      html  css  js  c++  java
  • xcode5 python 开发环境

    在xcode5 下配置 python开发环境

    1:默认mac下已经集成了python的开发库,先找到集成的python库的目录

        终端 which python

     记下当前的python 路径 /usr/bin/python

    2: xcode 新建工程  ----OSX-----Other -----External Build System---Next

      填入工程名,并在 Build Tool 里面填入刚才找到的python 路径--Next

    3:新建程序文件;

       Xcode---File----New-------OSX----Other----Empty----Next

       Save As  填入 hi.py 完成

    4:配置 项目 Scheme

        打开项目 Edit Scheme

        Info栏修改如下:

        Executable 把 None 改为 Other 并在打开的框中,Command + Shift + G 调出填入路径框,输入上面的 python路径  /usr/bin/python   找到python Go 保存

        Debugger 由 LLDB 改为 None

     Arguments 栏目 Arguments Passed On Lanuch 点击 + 号添加,上面创建的 hi.py文件;

     Options 栏目里面的 Working Directory   勾选 Use Custom working directory 并在下面目录选择刚才创建hi.py所在的目录,其他就是 helloWorld工程目录

    5:编辑 hi.py 开始写测试程序

     先来个 hello world

     print 'hello world'

    commang + r 运行,就可以看到控制台的log输出了

  • 相关阅读:
    Ocelot(一)- .Net Core开源网关
    Extensions for Vue
    Vue Study [2]: Vue Router
    Vue Study [1]: Vue Setup
    获取当月的第一天和最后一天示例
    常规正则验证表达式
    当需要向数据库插入空值时,sql语句的判断
    让 IE支持圆角的方法
    服务器上传图片案例
    validatebox相关验证
  • 原文地址:https://www.cnblogs.com/cocoajin/p/3948774.html
Copyright © 2011-2022 走看看