Dive Into Python 3 (Paperback)

Mark Pilgrim

  • 出版商: Apress
  • 出版日期: 2009-10-21
  • 售價: $2,120
  • 貴賓價: 9.5$2,014
  • 語言: 英文
  • 頁數: 360
  • 裝訂: Paperback
  • ISBN: 1430224150
  • ISBN-13: 9781430224150
  • 相關分類: Python程式語言
  • 海外代購書籍(需單獨結帳)

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

商品描述

Mark Pilgrim's Dive Into Python 3 is a hands-on guide to Python 3 (the latest version of the Python language) and its differences from Python 2. As in the original book, Dive Into Python, each chapter starts with a real, complete code sample, proceeds to pick it apart and explain the pieces, and then puts it all back together in a summary at the end.

This book includes:

  • Example programs completely rewritten to illustrate powerful new concepts now available in Python 3: sets, iterators, generators, closures, comprehensions, and much more
  • A detailed case study of porting a major library from Python 2 to Python 3
  • A comprehensive appendix of all the syntactic and semantic changes in Python 3

This is the perfect resource for you if you need to port applications to Python 3, or if you like to jump into languages fast and get going right away.

 

What you'll learn

 

  • Understand Python 3 code by seeing it broken down and explained
  • Make full use of the latest Python features such as iterators, generators, closures, classes and comprehensions
  • Refactor existing code to improve maintainability
  • Learn how to serialize Python objects with the pickle protocol and JSON format
  • Learn how to package your own Python libraries and upload them to the Python Package Index to share your projects with Python developers worldwide
  • Use Python 3 to consume HTTP web services
  • Port existing Python applications to Python 3 by following a case study for a major library

 

Who is this book for?

 

  • Anyone who wants to learn the latest version of Python in a fast, hands-on fashion
  • Existing Python programmers who want to learn quickly how to make the most of the features of the latest version of Python and port their code to it
  • Programmers coming from other languages wanting a fast introduction to Python that gets them thinking about advanced concepts quickly

商品描述(中文翻譯)

Mark Pilgrim的《Dive Into Python 3》是一本關於Python 3(Python語言的最新版本)及其與Python 2的差異的實踐指南。與原書《Dive Into Python》一樣,每一章都以一個真實的完整代碼示例開始,然後逐步解析並解釋其中的部分,最後在摘要中將其整合起來。

本書包括以下內容:
- 完全重寫的示例程序,以展示Python 3中現有的強大新概念:集合、迭代器、生成器、閉包、推導式等等。
- 將一個重要庫從Python 2移植到Python 3的詳細案例研究。
- 包含所有Python 3中的語法和語義變化的詳細附錄。

如果您需要將應用程序移植到Python 3,或者您喜歡快速學習並立即開始使用新語言,這本書是您的完美資源。

您將學到以下內容:
- 通過對Python 3代碼的解析和解釋來理解它。
- 充分利用最新的Python功能,如迭代器、生成器、閉包、類和推導式。
- 重構現有代碼以提高可維護性。
- 學習如何使用pickle協議和JSON格式對Python對象進行序列化。
- 學習如何打包自己的Python庫並上傳到Python Package Index,與全球的Python開發人員分享您的項目。
- 使用Python 3消耗HTTP網絡服務。
- 通過一個重要庫的案例研究,將現有的Python應用程序移植到Python 3。

這本書適合以下讀者:
- 希望以快速、實踐的方式學習最新版本Python的任何人。
- 現有的Python程序員,希望快速了解如何充分利用最新版本Python的功能並將其代碼移植到該版本。
- 從其他語言轉換而來的程序員,希望快速入門Python並迅速思考高級概念。