Fluent Python: Clear, Concise, and Effective Programming, 2/e (Paperback)

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 3代碼。

不要浪費時間將Python彎曲成符合您在其他語言中學到的模式。發現並應用超越您過去經驗的慣用Python 3功能。作者Luciano Ramalho將引導您深入了解Python的核心語言特性和庫,並教您如何使代碼更短、更快、更易讀。

第二版的《流暢的Python》全書進行了重大更新,涵蓋了以下內容:

- 特殊方法:Python對象一致行為的關鍵
- 數據結構:序列、字典、集合、Unicode和數據類
- 函數作為對象:一級函數、相關設計模式和函數聲明中的類型提示
- 面向對象的慣用語法:組合、繼承、混入、接口、運算符重載、靜態類型和協議
- 控制流:上下文管理器、生成器、協程、async/await和線程/進程池
- 元編程:屬性、屬性描述符、類裝飾器和比元類更簡單的新類元編程鉤子