本节内容:
在windows中安装与使用python。
0. 下载
官网链接:http://www.python.org/getit/
1. 启动python --交互模式
 
2. 编写python --文本模式
 
E:desktoppythonpy_src>gvim hello.py
 E:desktoppythonpy_src>type hello.py
 print 'hello world, python!'
 E:desktoppythonpy_src>python hello.py
 hello world, python!
3. 三种可执行文件类型
 (1) .py 
 (2) .pyc
    字节代码, 源文件 编译后 形成的字节码文件
    
 (3) .pyo
    经过优化的源文件
   
python -O -m py_compile hello.py
        ==> hello.pyo
--------------------------------------------
    E:desktoppythonpy_src>dir /b
    compile.py
    hello.py
    hello.pyc
    hello.pyo
    E:desktoppythonpy_src>python hello.py
    hello world, python!
    E:desktoppythonpy_src>hello.py
    hello world, python!
    E:desktoppythonpy_src>python hello.pyc
    hello world, python!
    E:desktoppythonpy_src>hello.pyc
    hello world, python!
    E:desktoppythonpy_src>python hello.pyo
    hello world, python!
    E:desktoppythonpy_src>hello.pyo
    hello world, python!