Fluent Python: Clear, Concise, and Effective Programming, 2/e (Paperback)
暫譯: 流暢的 Python:清晰、簡潔且有效的程式設計,第二版(平裝本)

Ramalho, Luciano

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

商品描述

Python's simplicity lets you become productive quickly, but often this means you aren't using everything it has to offer. With the updated edition of this hands-on guide, you'll learn how to write effective, modern Python 3 code by leveraging its best ideas.

Don't waste time bending Python to fit patterns you learned in other languages. Discover and apply idiomatic Python 3 features beyond your past experience. Author Luciano Ramalho guides you through Python's core language features and libraries and teaches you how to make your code shorter, faster, and more readable.

Featuring major updates throughout the book, Fluent Python, second edition, covers:

  • Special methods: The key to the consistent behavior of Python objects
  • Data structures: Sequences, dicts, sets, Unicode, and data classes
  • Functions as objects: First-class functions, related design patterns, and type hints in function declarations
  • Object-oriented idioms: Composition, inheritance, mixins, interfaces, operator overloading, static typing and protocols
  • Control flow: Context managers, generators, coroutines, async/await, and thread/process pools
  • Metaprogramming: Properties, attribute descriptors, class decorators, and new class metaprogramming hooks that are simpler than metaclasses

商品描述(中文翻譯)

Python 的簡單性讓你能夠快速提高生產力,但這通常意味著你沒有充分利用它所提供的一切。透過這本更新版的實用指南,你將學會如何利用 Python 3 的最佳理念來編寫有效且現代的程式碼。

不要浪費時間將 Python 強行調整為你在其他語言中學到的模式。發現並應用超越你過去經驗的慣用 Python 3 特性。作者 Luciano Ramalho 將引導你了解 Python 的核心語言特性和庫,並教你如何使你的程式碼更短、更快且更具可讀性。

這本書的第二版《Fluent Python》包含了全書的重大更新,涵蓋了以下內容:

- **特殊方法:** Python 物件一致行為的關鍵
- **資料結構:** 序列、字典、集合、Unicode 和資料類別
- **函數作為物件:** 一級函數、相關設計模式,以及函數宣告中的類型提示
- **物件導向慣用法:** 組合、繼承、混入、介面、運算子重載、靜態類型和協定
- **控制流程:** 上下文管理器、生成器、協程、async/await,以及執行緒/進程池
- **元編程:** 屬性、屬性描述符、類別裝飾器,以及比元類別更簡單的新類別元編程鉤子