begin Python

来源:互联网 发布:大数据课程学生服务站 编辑:程序博客网 时间:2024/06/06 17:31

s

安装包:

http://www.python.org/download/releases/

下载安装python-2.7.3.msi,配置path"D:\Python27"

IDE:Aptana 

也可以写ruby ror css xml js

http://www.aptana.com/products/studio3/download


安装IPython 

ipython-0.13.py2-win32.exe (md5)

from:http://ipython.org/ipython-doc/stable/install/install.html#installing-ipython-itself

on Windows, IPython requires distribute,  PyReadline

  • Install distribute.(Download distribute_setup.py and execute it like this"
    python distribute_setup.py
    ")
  • Install pyreadline. You can use the command easy_install pyreadline from a terminal, or the binary installer appropriate for your platform from the PyPI page.(pyreadline-1.7.1.win32.exe (md5))
  • Install IPythonitself, which you can download from PyPI or from our site. Note that on Windows 7, you must right-click and ‘Run as administrator’ for the Start menu shortcuts to be created.


    安装wxpython
    wxpython官网

    wxPython2.8-win32-unicode-py27 
    32-bit Python 2.7

    wxPython Demo
    This installer contains the infamous wxPython demo, other samples, and wxWidgets documentation.

    wxPython2.8-win32-docs-demos

    Mac OSX Binaries
    The file with "cocoa" in the name use the Cocoa API for implementing the GUI, requires at least OSX 10.5, and supports either 32-bit or 64-bit architectures. If you would like to have both the Carbon and Cocoa versions installed you will need to do something like install the Carbon build for Python 2.6 and install the Cocoa build for Python 2.7.
  • wxPython2.9-osx-cocoa-py2.7
  • wxPython2.9-osx-docs-demos-cocoa-py2.7

    设置Aptana Studio 3,不然找不到代码提示
    Window -> Preferences -> Pydev -> Interpreter - Python

    D:\Python27\Lib\site-packages\wx-2.8-msw-unicode

    mac os是这样:/usr/local/lib/wxPython/lib/python2.7/site-packages/wx-2.9.4-osx_cocoa

    然后重启Aptana


    Python集成开发环境——Boa Constructor
    boa-constructor是一个跨平台的Python集成开发环境和wxPython图形用户界面构建器。它提供了可视化方式的框架(窗口) 的创建 和处理、对象检视器(object inspector)、编辑器、继承的等级、html文档字符串、高级的调试器和集成化的帮助系统。俨然一个用于 Python的Delphi(没用过Delphi,不过倒是和MFC的感觉挺像,用过MFC的同学学习Boa Constructor应该会轻松许多)。


    boa- constructor是用Python和wxPython库写成的。使用它之前,你必须安装了wxPython 2.4.0.7或wxPython更高 的版本以及Python 2.1或Python的更高的版本。



    学习教程:

    笨方法学python(中文版)

    http://learn-python-the-hard-way-zh_cn-translation.readthedocs.org/en/1.0/index.html

    深入 Python :Dive Into Python 中文版

    http://woodpecker.org.cn/diveintopython/toc/index.html(翻墙)


    笔记:

    pydoc在windows下的配置

    1、将“ .PY”加入到环境变量PATHEXT的末尾

    2、将“D:\Python27\Lib”加入到 PATH的末尾

    验证:pydoc raw_input


    s


    s