Dive Into Python 3 (Paperback)
暫譯: 深入探索 Python 3 (平裝本)

Mark Pilgrim

  • 出版商: Apress
  • 出版日期: 2009-10-21
  • 售價: $2,520
  • 貴賓價: 9.5$2,394
  • 語言: 英文
  • 頁數: 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 PilgrimDive 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,並迅速思考進階概念