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 技術手冊 第三版
Python 標準程式庫和擴充模組
|
5
Python
以語言的層級來說,Python 能與其他強大的VHLL 相比,像是
JavaScriptRuby Perl。然而,簡單性和規律性所帶來的優勢,仍在
Python 這一邊。
Python 是一個物件導向(object-oriented)的程式語言,但能讓你同時以
物件導向和程序性(procedural)風格開發程式碼,還觸及函式型程式設
計(functional programming),可依照你的應用程式所需混合搭配使用它
們。Python 的物件導向功能在概念上類似 C++ 所提供的,但用起來較為
簡單。
Python 標準程式庫和擴充模組
Python 程式設計的內涵不僅限於 Python 語言:對於有效運用 Python
言,標準程式庫和其他擴充模組的重要性堪比語言本身。Python 標準程式
庫(standard library)提供許多設計良好、穩固、百分之百純 Python 的模
組,便於重複使用。它所包含的模組可用於像是表示資料、處理文字、與
作業系統和檔案系統互動,以及 web 程式設計等工作。因為這些模組都是
Python 撰寫的,所以在 Python 支援的所有平台上它們都能運作。
擴充模組(extension modules),不管是來自於標準程式庫或其他地方的,
能讓 Python 程式碼取用底層作業系統或其他軟體元件所提供的功能,例如
圖形使用者介面(GUI)、資料庫和網路。擴充功能也能在計算密集的任
務(computationally ...
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