Skip to Content
Python 技術手冊 第三版
book

Python 技術手冊 第三版

by lex Martelli, Anna Martelli Ravenscroft, Steve Holden
January 2018
Intermediate to advanced content levelIntermediate to advanced
856 pages
17h 17m
Chinese
GoTop Information, Inc.
Content preview from Python 技術手冊 第三版
29
2
Python 直譯器
要以 Python 開發軟體系統,你會編寫含有 Python 原始碼和說明文件的文
字檔。你可以使用任何文字編輯器(text editor),包括內含在整合式開發
環境(Integrated Development EnvironmentsIDE)中的那些。然後你以
Python 編譯器(compiler)與直譯器(interpreter)來處理原始碼檔案。你
可以直接這麼做,或在 IDE 中進行,或經由內嵌了 Python 的其他程式。
Python 直譯器也能讓你互動式地執行 Python 程式碼,IDE 也一樣。
python 程式
Python 直譯器程式是以
python
(在 Windows 上叫做
python.exe
)來執行。
python
包含直譯器本身,以及 Python 編譯器,必要時它會隱含地被調用來
處理匯入的模組。取決於你的系統,這個程式通常必須位在列於你
PATH
境變數(environment variable)中的一個目錄底下。或者是,跟其他任何
程式一樣,你可以在命令(shell)提示列或在執行它的 shell 指令稿(或捷
徑目標等)之中使用它的完整路徑名稱
1
PEP 397
Windows 上, PEP 397
https://www.python.org/dev/
peps/pep-0397/
)開始,
py.exe
這個啟動器(launcher)就安
裝在 Windows 的系統領域,禁止了你進一步的蓄意操作,
因此保證永遠都會在 PAT
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

測試驅動開發|使用 Python

測試驅動開發|使用 Python

Harry J.W. Percival
Linux 内核观测技术BPF

Linux 内核观测技术BPF

David Calavera, Lorenzo Fontana

Publisher Resources

ISBN: 9789864766819