## 第一個 Python 程序
### 交互式編程
交互式編程不需要創建腳本文件,是通過 Python 解釋器的交互模式進來編寫代碼。
linux上你只需要在命令行中輸入 Python 命令即可啟動交互式編程,提示窗口如下:
~~~
$ python
Python 2.7.6 (default, Sep 9 2014, 15:04:36)
[GCC 4.2.1 Compatible Apple LLVM 6.0 (clang-600.0.39)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>>
~~~
Window 上在安裝 Python 時已經安裝了交互式編程客戶端,提示窗口如下:

在 python 提示符中輸入以下文本信息,然后按 Enter 鍵查看運行效果:
~~~
>>> print "Hello, Python!"
~~~
在 Python 2.7.6 版本中,以上實例輸出結果如下:
~~~
Hello, Python!
~~~