Python Object-Oriented Programming : Build robust and maintainable object-oriented Python applications and libraries, 4/e (Paperback)

Lott, Steven F., Phillips, Dusty

  • 出版商: Packt Publishing
  • 出版日期: 2021-07-02
  • 售價: $1,800
  • 貴賓價: 9.5$1,710
  • 語言: 英文
  • 頁數: 714
  • 裝訂: Quality Paper - also called trade paper
  • ISBN: 1801077266
  • ISBN-13: 9781801077262
  • 相關分類: Python程式語言Object-oriented
  • 立即出貨 (庫存 < 4)

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

商品描述

A comprehensive guide to exploring modern Python through data structures, design patterns, and effective object-oriented techniques

 

Key Features:

  • Build an intuitive understanding of object-oriented design, from introductory to mature programs
  • Learn the ins and outs of Python syntax, libraries, and best practices
  • Examine a machine-learning case study at the end of each chapter

 

Book Description:

Python Object-Oriented Programming, Fourth Edition dives deep into the various aspects of OOP, Python as an OOP language, common and advanced design patterns, and hands-on data manipulation of complex design systems. These concepts are consolidated by open-ended exercises, as well as a real-world case study at the end of every chapter, newly written for this edition. All example code is now compatible with Python 3.9+ syntax and has been updated with type hints for ease of learning.

 

Steven and Dusty provide a friendly, comprehensive tour of important OOP concepts, such as inheritance, composition, and polymorphism, and explain how they work together with Python's classes and data structures to facilitate good design. UML class diagrams are generously used throughout the text for you to understand class relationships. Beyond the book's focus on OOP, it features an in-depth look at Python's exception handling and how functional programming intersects with OOP. Not one, but two very powerful automated testing systems, unittest and pytest, are introduced in this book. The final chapter provides a detailed discussion of Python's concurrent programming ecosystem.

 

By the end of the book, you will have a thorough understanding of how to think about and apply object-oriented principles using Python syntax and be able to confidently create robust and reliable programs.

 

What You Will Learn:

  • Implement objects in Python by creating classes and defining methods
  • Extend class functionality using inheritance
  • Understand when to use object-oriented features, and more importantly, when not to use them
  • Discover several widely used design patterns and how they are implemented in Python
  • Uncover the simplicity of unit and integration testing and understand why they are so important
  • Learn to statically type check your dynamic code
  • Understand concurrency with asyncio and how it speeds up programs

 

Who this book is for:

If you are new to object-oriented programming techniques, or if you have basic Python skills and wish to learn how and when to correctly apply OOP principles in Python, this is the book for you. Moreover, if you are an object-oriented programmer coming from other languages or seeking a leg up in the new world of Python, you will find this book a useful introduction to Python. Minimal previous experience with Python is necessary.

商品描述(中文翻譯)

《Python物件導向程式設計》第四版是一本全面的指南,探索現代Python的資料結構、設計模式和有效的物件導向技巧。

主要特點:
- 從初級到成熟的程式,建立對物件導向設計的直觀理解
- 學習Python語法、函式庫和最佳實踐
- 在每章結尾探討機器學習案例研究

書籍描述:
《Python物件導向程式設計》第四版深入探討了物件導向程式設計的各個方面,包括Python作為物件導向語言、常見和高級設計模式,以及複雜設計系統的實際數據操作。本版新增了開放式練習和每章結尾的實際案例研究,所有範例代碼現在都與Python 3.9+語法兼容,並添加了類型提示以便學習。

Steven和Dusty友好而全面地介紹了重要的物件導向概念,如繼承、組合和多型,並解釋了它們如何與Python的類和資料結構一起工作,以實現良好的設計。書中慷慨地使用UML類圖,幫助讀者理解類之間的關係。除了物件導向程式設計,書中還深入探討了Python的異常處理以及函數式程式設計與物件導向程式設計的交集。本書介紹了兩個非常強大的自動化測試系統:unittest和pytest。最後一章詳細討論了Python的並行程式設計生態系統。

通過閱讀本書,您將全面了解如何使用Python語法思考和應用物件導向原則,並能夠自信地創建強大可靠的程式。

學到的內容:
- 通過創建類和定義方法在Python中實現物件
- 使用繼承擴展類功能
- 理解何時使用物件導向特性,更重要的是,何時不使用它們
- 探索幾種廣泛使用的設計模式及其在Python中的實現
- 瞭解單元測試和整合測試的簡單性以及它們的重要性
- 學習對動態代碼進行靜態類型檢查
- 理解使用asyncio進行並發程式設計以及它如何加速程式

適合閱讀對象:
如果您對物件導向程式設計技術不熟悉,或者具備基本的Python技能並希望學習如何在Python中正確應用物件導向原則,那麼這本書非常適合您。此外,如果您是從其他語言轉換為物件導向程式設計,或者希望在Python的新世界中獲得優勢,這本書將是一本有用的Python入門書籍。不需要太多Python經驗。