Python Programming Patterns
暫譯: Python 程式設計模式
Thomas W. Christopher
- 出版商: Prentice Hall
- 出版日期: 2001-10-23
- 定價: $1,500
- 售價: 5.0 折 $750
- 語言: 英文
- 頁數: 560
- 裝訂: Paperback
- ISBN: 0130409561
- ISBN-13: 9780130409560
-
相關分類:
Python、程式語言
立即出貨(限量) (庫存=1)
買這商品的人也買了...
-
$2,540$2,413 -
$2,190$2,081 -
$2,190$2,081 -
$630Python Standard Library (Paperback)
-
$970Introduction to Algorithms, 2/e
-
$1,425Lessons Learned in Software Testing (Paperback)
-
$580$458 -
$700$686 -
$1,570$1,492 -
$420$328 -
$590$466 -
$980$774 -
$690$538 -
$1,530$1,454 -
$880$695 -
$650$507 -
$550$468 -
$980$774 -
$640$506 -
$600$480 -
$480$408 -
$399$339 -
$399$339 -
$399$339 -
$500$390
相關主題
商品描述
The real-world guide to enterprise-class Python development!
- Enterprise development with Python!
- 20+ object-oriented patterns for large-scale Python development
- Maximizing scalability, robustness, and reuse
- Leveraging modularization, toolkits, frameworks, metaprogramming, and more
Python isn't just a tool for creating short Web scripts and simple prototypes: its advantages are equally compelling in large-scale development. In Python Programming Patterns, Thomas Christopher shows developers the best ways to write large programs with Python, introducing powerful design patterns that deliver unprecedented levels of robustness, scalability, and reuse. Christopher teaches both the Python programming language and how to "program in the large" with Python, using objects, modularization, toolkits, frameworks, and other powerful tools and techniques.
- 20+ proven object-oriented patterns for large-scale Python development: creational, structural, and behavioral
- Leverage the skills you've mastered in other object-oriented languages
- Design Python systems for maximum reuse
- Create cleaner, more comprehensible software systems
- Make the most of persistence, concurrent programming, functional programming, and metaprogramming
- Includes extensive working code and meaningful examples
If you've ever thought it would be great to use Python in real enterprise development, you're about to learn how—with Python Programming Patterns!
Table of
Contents
Introduction.
Acknowledgments.
1.
Getting Started.
2. Statements.
3. Modules and Packages.
4. Objects and Classes.
5. Object-Oriented Patterns.
6. Functions.
7. Input/Output.
8. Sequences.
9. Strings.
10. Dictionaries.
11. Exceptions.
12. Types.
13. Programs and Run-Time Compilation.
14. Abstract Data Types and Special Methods.
15. Abstract Container Data Types.
16. Priority Queues.
17. Sets.
18. Concurrency.
19. Transactions.
20. Run Queues.
21. Regular Expressions.
22. Parser.
23. Wrap-Up.
Appendix A.
Index.
商品描述(中文翻譯)
企業級 Python 開發的實用指南!
- 使用 Python 進行企業開發!
- 20 多種大型 Python 開發的物件導向模式
- 最大化可擴展性、穩健性和重用性
- 利用模組化、工具包、框架、元程式設計等更多技術
Python 不僅僅是用來創建簡短的 Web 腳本和簡單的原型:在大型開發中,它的優勢同樣引人注目。在《Python 程式設計模式》中,Thomas Christopher 向開發者展示了使用 Python 編寫大型程式的最佳方法,介紹了能夠提供前所未有的穩健性、可擴展性和重用性的強大設計模式。Christopher 教授 Python 程式語言以及如何使用 Python 進行「大型程式設計」,利用物件、模組化、工具包、框架和其他強大的工具和技術。
- 20 多種經過驗證的大型 Python 開發的物件導向模式:創建型、結構型和行為型
- 利用您在其他物件導向語言中掌握的技能
- 設計 Python 系統以實現最大重用
- 創建更乾淨、更易理解的軟體系統
- 充分利用持久性、並行程式設計、函數式程式設計和元程式設計
- 包含大量可運行的程式碼和有意義的範例
如果您曾經想過在真正的企業開發中使用 Python,那麼您即將學會如何做到這一點——透過《Python 程式設計模式》!
目錄
引言。
致謝。
1. 開始使用。
為什麼要在 Python 中編寫大型程式?運行 Python。數字。列表、字串和元組。邏輯值。字典。賦值。垃圾回收。運算符。總結。
2. 語句。
Python 語句。範例:字數計算。總結。練習。
3. 模組和包。
導入模組。從模組導入名稱。避免命名空間污染。重新加載模組。搜索路徑。包。範例堆疊模組。模組的評析。總結。練習。
4. 物件和類別。
實例和類別。類別聲明。實例。方法。單一繼承。可見性。顯式初始化鏈。範例:集合實現。評析。範例:BaseTimer。繼承作為分類。多重繼承。名稱範圍的回顧。測試物件和類別。總結。練習。
5. 物件導向模式。
設計模式的概念。創建型模式。結構型模式。行為型模式。總結。練習。
6. 函數。
參數和引數列表。三層範圍。函數式程式設計。函數物件。內建函數。總結。練習。
7. 輸入/輸出。
檔案物件。執行環境。其他有用的模組。總結。練習。
8. 序列。
常見序列操作。元組。列表。總結。練習。
9. 字串。
字串字面量。字串作為序列。字串方法。範例:分割器。字串格式化:% 運算符。總結。練習。
10. 字典。
字典操作。範例:聯集-查找演算法。持久性和資料庫。總結。練習。
11. 異常。
異常類別。最小異常處理。檢查異常。引發異常。追蹤。重新引發異常。使用字串引發。嘗試-例外-其他。嘗試-最終語句。總結。練習。
12. 類型。
類型物件。成員和方法。數字、字串、元組、列表和字典。模組。使用者定義函數。程式碼物件。類別。類別實例。使用者定義方法。內建函數和方法。切片。Xrange。檔案。框架。追蹤。範例:範圍。總結。練習。
13. 程式和執行時編譯。
Python 解譯器啟動。執行時編譯。總結。練習。
14. 抽象資料類型和特殊方法。
特殊方法。所有物件的方法。運算符。算術運算符。增強賦值。豐富比較。屬性訪問。函數調用方法。總結。練習。
15. 抽象容器資料類型。
容器 ADT 的特殊方法。雙端佇列。多維陣列。內建資料類型的類別版本。總結。練習。
16. 優先佇列。
優先佇列操作。優先佇列實現。唯一元素。評析。總結。練習。
17. 集合。
集合操作。實現。PureSet:保護代理。集合列舉。總結。練習。
18. 並發。
執行緒。競爭條件。鎖和互斥。監視器模式。生產者-消費者。死鎖。範例:Future。總結。練習。
19. 交易。
共享資料庫操作。範例:用餐哲學家。共享資料庫的實現。總結。練習。
20. 執行佇列。
簡單執行佇列。實現執行佇列。檢測執行佇列上物件的終止。交易佇列。交易佇列的範例:用餐哲學家。總結。練習。
21. 正規表達式。
re 模組的整體行為。re 語法。re 模組中的函數。模式物件。匹配物件。其他模式。其他方法和函數。範例:掃描器。總結。練習。
22. 解析器。
過程概述。實現計算器。構建樹。總結。練習。
23. 總結。
內容。軟體。給讀者的建議。
附錄 A。
索引。