Programming in Python 3: A Complete Introduction to the Python Language (Paperback) (Python 3 程式設計:完整介紹 Python 語言)

Mark Summerfield

  • 出版商: Addison Wesley
  • 出版日期: 2008-12-26
  • 定價: $1,575
  • 售價: 6.0$945
  • 語言: 英文
  • 頁數: 552
  • 裝訂: Paperback
  • ISBN: 0137129297
  • ISBN-13: 9780137129294
  • 相關分類: Python程式語言
  • 立即出貨(限量)

買這商品的人也買了...

相關主題

商品描述

This edition has been superceded by the second edition! The two editions have mostly the same material, apart from corrections and a couple of new chapters in the second edition (which is why it is bigger). They are both around the same price, so the second edition is much better value. This first edition covers Python 3.0; the second edition covers both Python 3.0 and 3.1 (clearly marking the differences.) Keep in mind that 3.1 is the minimum 3.x edition that Python's developers recommend (3.0 won't even get security fixes). Also, thanks to the language moratorium, the Python 3.1 language will be unchanged in Python 3.2 (which will have bugfixes & improvements to the library & many other under the hood improvements of course), so the second edition is good for Python 3.0, 3.1, and 3.2.

Python 3 is the best version of the language yet: It is more powerful, convenient, consistent, and expressive than ever before. Now, Mark Summerfield demonstrates how to write code that takes full advantage of Python 3's features and idioms. The first book written from a completely "Python 3" viewpoint, Programming in Python 3 brings together all the knowledge you need to write any program, use any standard or third-party Python 3 library, and create new library modules of your own.

 

Summerfield draws on his many years of Python experience to share deep insights into Python 3 development you won't find anywhere else. This book's coverage includes

 

  • Developing in Python using procedural, object-oriented, and functional programming paradigms
  • Creating custom packages and modules
  • Writing and reading binary, text, and XML files, including optional compression, random access, and text and XML parsing
  • Leveraging advanced data types, collections, control structures, and functions
  • Spreading program workloads across multiple processes and threads
  • Programming SQL databases and key-value DBM files
  • Utilizing Python's regular expression mini-language and module
  • Building usable, efficient, GUI-based applications
  • Advanced programming techniques, including generators, function and class decorators, context managers, descriptors, abstract base classes, metaclasses, and more

 

Programming in Python 3 serves as both tutorial and language reference, with all the examples tested on Windows, Linux, and Mac OS X, and downloadable from the author's website.

商品描述(中文翻譯)

這個版本已被第二版取代!這兩個版本大部分的內容都相同,除了第二版有一些修正和幾個新章節(這也是為什麼它比較大的原因)。它們的價格差不多,所以第二版的價值更高。第一版涵蓋了Python 3.0;第二版則涵蓋了Python 3.0和3.1(明確標示了差異)。請記住,3.1是Python開發者推薦的最低3.x版本(3.0甚至不會獲得安全修補程式)。此外,由於語言禁令,Python 3.1的語言在Python 3.2中將不會改變(當然,Python 3.2會有錯誤修正和庫以及其他許多底層改進),所以第二版適用於Python 3.0、3.1和3.2。

Python 3是迄今為止最好的版本:它比以往任何時候都更強大、方便、一致和表達性更好。現在,Mark Summerfield展示了如何充分利用Python 3的功能和慣用法來編寫代碼。這是第一本完全從“Python 3”觀點撰寫的書籍,《Python 3編程》將所有你需要的知識集結在一起,讓你能夠編寫任何程序,使用任何標準或第三方Python 3庫,並創建自己的庫模塊。

Summerfield根據他多年的Python經驗分享了關於Python 3開發的深入見解,這些見解在其他地方找不到。本書的內容包括:

- 使用程序化、面向對象和函數式編程範式在Python中進行開發
- 創建自定義的包和模塊
- 編寫和讀取二進制、文本和XML文件,包括可選的壓縮、隨機訪問以及文本和XML解析
- 利用高級數據類型、集合、控制結構和函數
- 在多個進程和線程之間分散程序工作負載
- 編程SQL數據庫和鍵值DBM文件
- 利用Python的正則表達式迷你語言和模塊
- 構建可用、高效的基於GUI的應用程序
- 高級編程技巧,包括生成器、函數和類裝飾器、上下文管理器、描述符、抽象基類、元類等

《Python 3編程》既是教程又是語言參考,所有示例都在Windows、Linux和Mac OS X上進行了測試,並可從作者的網站上下載。