Python 3 面向对象编程(第2版) 🔍
Dusty Phillips
电子工业出版社 Dian zi gong ye chu ban she, 2, 2015-08-20
中文 [zh] · 英语 [en] · PDF · 3.7MB · 2015 · 📘 非小说类图书 · 🚀/lgli/lgrs/zlib · Save
描述
《Python 3 面向对象编程(第2版)》主要介绍如何使用Python 3进行面向对象编程。第1~4章介绍面向对象这一编程范式的基本准则,以及Python是如何运用这些准则实现面向对象编程的;第5~8章介绍如何利用Python中的内置函数快速、简单地实现面向对象编程;第9~11章介绍许多面向对象编程中常用的设计模式,以及如何使用符合Python语言习惯的方式来实现这些设计模式;最后,第12、13章介绍Python 3中与并发编程相关的主题。
《Python 3 面向对象编程(第2版)》中的每一章都会包含一节案例学习的内容,通过一个实践相关的案例将本章介绍的主要内容以及前面章节中介绍过的内容串联起来。除此之外,每一章最后的练习旨在指导你利用本章学习到的知识,使用面向对象编程改善以往项目中的代码,并进一步掌握如何在合适的时机使用Python 3进行面向对象编程。
《Python 3 面向对象编程(第2版)》中的每一章都会包含一节案例学习的内容,通过一个实践相关的案例将本章介绍的主要内容以及前面章节中介绍过的内容串联起来。除此之外,每一章最后的练习旨在指导你利用本章学习到的知识,使用面向对象编程改善以往项目中的代码,并进一步掌握如何在合适的时机使用Python 3进行面向对象编程。
备用文件名
lgrsnf/《Python 3 面向对象编程(第2版)》.pdf
备用文件名
zlib/Engineering/Computer Technology/Dusty Phillips/Python 3 面向对象编程(第2版)_21397462.pdf
备选标题
Python 3 Object-oriented Programming: Building robust and maintainable software with object oriented design patterns in Python, 2nd Edition
备选标题
Python 3面向对象编程 Python 3 object-oriented programming Python 3 mian xiang dui xiang bian cheng Python 3 object-oriented programming
备选标题
Unleash the Power of Python 3 Objects
备选作者
(加) 菲利普斯, (Phillips, Dusty)
备用出版商
Publishing House of Electronics Industry
备用出版商
Packt Publishing Limited
备用版本
Community experience distilled, Second edition, Birmingham, UK, 2015
备用版本
United Kingdom and Ireland, United Kingdom
备用版本
Packt Publishing, Birmingham, 2015
备用版本
China, People's Republic, China
备用版本
Birmingham, England, 2015
备用版本
2 ban, 北京 Beijing, 2018
备用版本
Di 2 ban, Beijing, 2018
备用版本
Aug 20, 2015
元数据中的注释
Source title: Python 3 Object-oriented Programming: Building robust and maintainable software with object oriented design patterns in Python, 2nd Edition
备用描述
Unleash the power of Python 3 objectsAbout This Book Stop writing scripts and start architecting programs Learn the latest Python syntax and libraries A practical, hands-on tutorial that teaches you all about abstract design patterns and how to implement them in Python 3Who This Book Is For If you're new to object-oriented programming techniques, or if you have basic Python skills and wish to learn in depth how and when to correctly apply object-oriented programming in Python to design software, this is the book for you. What You Will Learn Implement objects in Python by creating classes and defining methods Separate related objects into a taxonomy of classes and describe the properties and behaviors of those objects via the class interface Extend class functionality using inheritance Understand when to use object-oriented features, and more importantly when not to use them Discover what design patterns are and why they are different in Python Uncover the simplicity of unit testing and why it's so important in Python Grasp common concurrency techniques and pitfalls in Python 3 Exploit object-oriented programming in key Python technologies such as Kivy and Django. Object-oriented programming concurrently with asyncioIn Detail Python 3 is more versatile and easier to use than ever. It runs on all major platforms in a huge array of use cases. Coding in Python minimizes development time and increases productivity in comparison to other languages. Clean, maintainable code is easy to both read and write using Python's clear, concise syntax. Object-oriented programming is a popular design paradigm in which data and behaviors are encapsulated in such a way that they can be manipulated together. Many modern programming languages utilize the powerful concepts behind object-oriented programming and Python is no exception. Starting with a detailed analysis of object-oriented analysis and design, you will use the Python programming language to clearly grasp key concepts from the object-oriented paradigm. This book fully explains classes, data encapsulation, inheritance, polymorphism, abstraction, and exceptions with an emphasis on when you can use each principle to develop well-designed software. You'll get an in-depth analysis of many common object-oriented design patterns that are more suitable to Python's unique style. This book will not just teach Python syntax, but will also build your confidence in how to program. You will also learn how to create maintainable applications by studying higher level design patterns. Following this, you'll learn the complexities of string and file manipulation, and how Python distinguishes between binary and textual data. Not one, but two very powerful automated testing systems will be introduced in the book. After you discover the joy of unit testing and just how easy it can be, you'll study higher level libraries such as database connectors and GUI toolkits and learn how they uniquely apply object-oriented principles. You'll learn how these principles will allow you to make greater use of key members of the Python eco-system such as Django and Kivy. This new edition includes all the topics that made Python 3 Object-oriented Programming an instant Packt classic. It's also packed with updated content to reflect recent changes in the core Python library and covers modern third-party packages that were not available on the Python 3 platform when the book was first published. Style and approach Throughout the book you will learn key object-oriented programming techniques demonstrated by comprehensive case studies in the context of a larger project
备用描述
Unleash the power of Python 3 objectsKey FeaturesStop writing scripts and start architecting programsLearn the latest Python syntax and librariesA practical, hands-on tutorial that teaches you all about abstract design patterns and how to implement them in Python 3Book DescriptionPython 3 is more versatile and easier to use than ever. It runs on all major platforms in a huge array of use cases. Coding in Python minimizes development time and increases productivity in comparison to other languages. Clean, maintainable code is easy to both read and write using Python's clear, concise syntax. Object-oriented programming is a popular design paradigm in which data and behaviors are encapsulated in such a way that they can be manipulated together. Many modern programming languages utilize the powerful concepts behind object-oriented programming and Python is no exception. Starting with a detailed analysis of object-oriented analysis and design, you will use the Python programming language to clearly grasp key concepts from the object-oriented paradigm. This book fully explains classes, data encapsulation, inheritance, polymorphism, abstraction, and exceptions with an emphasis on when you can use each principle to develop well-designed software. You'll get an in-depth analysis of many common object-oriented design patterns that are more suitable to Python's unique style. This book will not just teach Python syntax, but will also build your confidence in how to program. You will also learn how to create maintainable applications by studying higher level design patterns. Following this, you'll learn the complexities of string and file manipulation, and how Python distinguishes between binary and textual data. Not one, but two very powerful automated testing systems will be introduced in the book. After you discover the joy of unit testing and just how easy it can be, you'll study higher level libraries such as database connectors and GUI toolkits and learn how they uniquely apply object-oriented principles. You'll learn how these principles will allow you to make greater use of key members of the Python eco-system such as Django and Kivy. This new edition includes all the topics that made Python 3 Object-oriented Programming an instant Packt classic. It's also packed with updated content to reflect recent changes in the core Python library and covers modern third-party packages that were not available on the Python 3 platform when the book was first published. What you will learnImplement objects in Python by creating classes and defining methodsSeparate related objects into a taxonomy of classes and describe the properties and behaviors of those objects via the class interfaceExtend class functionality using inheritanceUnderstand when to use object-oriented features, and more importantly when not to use themDiscover what design patterns are and why they are different in PythonUncover the simplicity of unit testing and why it s so important in PythonGrasp common concurrency techniques and pitfalls in Python 3Exploit object-oriented programming in key Python technologies such as Kivy and Django.Object-oriented programming concurrently with asyncioWho this book is forIf you're new to object-oriented programming techniques, or if you have basic Python skills and wish to learn in depth how and when to correctly apply object-oriented programming in Python to design software, this is the book for you.
备用描述
扉页
版权页
关于作者
关于审校人员
译者序
第2 版序
前言
目录
第1章 面向对象设计
面向对象
对象和类
指定属性和行为
数据描述对象
行为就是动作
隐藏细节并创建公共接口
组合
继承
继承提供抽象
多重继承
案例学习
练习
总结
第2章 Python对象
创建Python类
添加属性
让它做点什么
初始化对象
自我解释
模块和包
组织模块
组织模块内容
谁可以访问我的数据
第三方库
案例学习
练习
总结
第3章 对象相似时
基本的继承
扩展内置对象
重写和super
多重继承
钻石型继承问题
不同集合的参数
多态
抽象基类
使用抽象基类
创建抽象基类
魔术揭秘
案例学习
练习
总结
第4章 异常捕获
抛出异常
抛出一个异常
异常的作用
处理异常
异常的层级
定义我们自己的异常
案例学习
练习
总结
第5章 何时使用面向对象编程
将对象看作对象
通过属性向类数据添加行为
属性的细节
装饰器——另一种创建属性的方法
决定何时使用属性
管理员对象
移除重复代码
实践
案例学习
练习
总结
第6章 Python数据结构
空对象
元组和命名元组
命名元组
字典
字典用例
使用defaultdict
列表
列表排序
集合
扩展内置类型
队列
FIFO队列
LIFO队列
优先级队列
案例学习
练习
总结
第7章 Python面向对象的捷径
Python内置函数
len()函数
反转函数
枚举
文件I/O
放在上下文管理器中
方法重载的另一种方式
默认参数
变量参数列表
参数解包
函数也是对象
将函数作为属性
可调用对象
案例学习
练习
总结
第8章 字符串与序列化
字符串
字符串操作
字符串格式化
字符串是Unicode
可变字节字符串
正则表达式
匹配模式
从正则表达式中获取信息
序列化对象
自定义序列化
序列化Web对象
案例学习
练习
总结
第9章 迭代器模式
设计模式简介
迭代器
迭代器协议
推导
列表推导
集合与字典推导
生成器表达式
生成器
从另一个可迭代对象中产生
协程
回到日志解析
关闭协程并抛出异常
协程、生成器与函数的关系
案例学习
练习
总结
第10章 Python设计模式I
装饰器模式
装饰器的例子
Python中的装饰器
观察者模式
观察者模式的例子
策略模式
策略模式的例子
Python中的策略
状态模式
状态模式的例子
状态与策略
状态转换作为协程
单例模式
单例模式的实现
模板模式
模板模式的例子
练习
总结
第11章 Python设计模式II
适配器模式
门面模式
享元模式
命令模式
抽象工厂模式
复合模式
练习
总结
第12章 测试面向对象程序
为什么要测试
测试驱动开发
单元测试
断言方法
减少模板代码并进行清理
组织和运行测试
忽略失败的测试
用py.test进行测试
一种完成设置和清理的方式
一种完全不同的设置变量的方式
在py.test中跳过测试
模拟昂贵的对象
多少测试才足够
案例学习
实现它
练习
总结
第13章 并发
线程
线程的诸多问题
线程的超常开支
多进程
多进程池
队列
多进程的问题
Future对象
AsyncIO
AsyncIO实践
读取AsyncIO中的Future对象
在网络编程中使用AsyncIO
用executor封装阻塞代码
流
案例学习
练习
总结
版权页
关于作者
关于审校人员
译者序
第2 版序
前言
目录
第1章 面向对象设计
面向对象
对象和类
指定属性和行为
数据描述对象
行为就是动作
隐藏细节并创建公共接口
组合
继承
继承提供抽象
多重继承
案例学习
练习
总结
第2章 Python对象
创建Python类
添加属性
让它做点什么
初始化对象
自我解释
模块和包
组织模块
组织模块内容
谁可以访问我的数据
第三方库
案例学习
练习
总结
第3章 对象相似时
基本的继承
扩展内置对象
重写和super
多重继承
钻石型继承问题
不同集合的参数
多态
抽象基类
使用抽象基类
创建抽象基类
魔术揭秘
案例学习
练习
总结
第4章 异常捕获
抛出异常
抛出一个异常
异常的作用
处理异常
异常的层级
定义我们自己的异常
案例学习
练习
总结
第5章 何时使用面向对象编程
将对象看作对象
通过属性向类数据添加行为
属性的细节
装饰器——另一种创建属性的方法
决定何时使用属性
管理员对象
移除重复代码
实践
案例学习
练习
总结
第6章 Python数据结构
空对象
元组和命名元组
命名元组
字典
字典用例
使用defaultdict
列表
列表排序
集合
扩展内置类型
队列
FIFO队列
LIFO队列
优先级队列
案例学习
练习
总结
第7章 Python面向对象的捷径
Python内置函数
len()函数
反转函数
枚举
文件I/O
放在上下文管理器中
方法重载的另一种方式
默认参数
变量参数列表
参数解包
函数也是对象
将函数作为属性
可调用对象
案例学习
练习
总结
第8章 字符串与序列化
字符串
字符串操作
字符串格式化
字符串是Unicode
可变字节字符串
正则表达式
匹配模式
从正则表达式中获取信息
序列化对象
自定义序列化
序列化Web对象
案例学习
练习
总结
第9章 迭代器模式
设计模式简介
迭代器
迭代器协议
推导
列表推导
集合与字典推导
生成器表达式
生成器
从另一个可迭代对象中产生
协程
回到日志解析
关闭协程并抛出异常
协程、生成器与函数的关系
案例学习
练习
总结
第10章 Python设计模式I
装饰器模式
装饰器的例子
Python中的装饰器
观察者模式
观察者模式的例子
策略模式
策略模式的例子
Python中的策略
状态模式
状态模式的例子
状态与策略
状态转换作为协程
单例模式
单例模式的实现
模板模式
模板模式的例子
练习
总结
第11章 Python设计模式II
适配器模式
门面模式
享元模式
命令模式
抽象工厂模式
复合模式
练习
总结
第12章 测试面向对象程序
为什么要测试
测试驱动开发
单元测试
断言方法
减少模板代码并进行清理
组织和运行测试
忽略失败的测试
用py.test进行测试
一种完成设置和清理的方式
一种完全不同的设置变量的方式
在py.test中跳过测试
模拟昂贵的对象
多少测试才足够
案例学习
实现它
练习
总结
第13章 并发
线程
线程的诸多问题
线程的超常开支
多进程
多进程池
队列
多进程的问题
Future对象
AsyncIO
AsyncIO实践
读取AsyncIO中的Future对象
在网络编程中使用AsyncIO
用executor封装阻塞代码
流
案例学习
练习
总结
备用描述
Ben shu zhu yao jie shao ru he shi yong Python 3 jin xing mian xiang dui xiang bian cheng.Di 1-4 zhang jie shao mian xiang dui xiang zhei yi bian cheng fan shi de ji ben zhun ze,Yi ji Python shi ru he yun yong zhei xie zhun ze shi xian mian xiang dui xiang bian cheng de;Di 5-8 zhang jie shao ru he li yong Python zhong de nei zhi han shu kuai su,Jian dan di shi xian mian xiang dui xiang bian cheng;Di 9-11 zhang jie shao le xu duo mian xiang dui xiang bian cheng zhong chang yong de she ji mo shi,Yi ji ru he shi yong fu he Python yu yan xi guan de fang shi lai shi xian zhei xie she ji mo shi;Zui hou di 12-13 zhang jie shao le Python 3 zhong yu bing fa bian cheng xiang guan de zhu ti
备用描述
本书主要介绍如何使用Python 3进行面向对象编程。第1~4章介绍面向对象这一编程范式的基本准则,以及Python是如何运用这些准则实现面向对象编程的;第5~8章介绍如何利用Python中的内置函数快速、简单地实现面向对象编程;第9~11章介绍许多面向对象编程中常用的设计模式,以及如何使用符合Python语言习惯的方式来实现这些设计模式;最后,第12、13章介绍Python 3中与并发编程相关的主题。本书中的每一章都会包含一节案例学习的内容,通过一个实践相关的案例将本章介绍的主要内容以及前面章节中介绍过的内容串联起来。除此之外,每一章最后的练习旨在指导你利用本章学习到的知识,使用面向对象编程改善以往项目中的代码,并进一步掌握如何在合适的时机使用Python 3进行面向对象编程。
备用描述
本书主要介绍如何使用Python 3进行面向对象编程。第1-4章介绍面向对象这一编程范式的基本准则,以及Python是如何运用这些准则实现面向对象编程的;第5-8章介绍如何利用Python中的内置函数快速、简单地实现面向对象编程;第9-11章介绍了许多面向对象编程中常用的设计模式,以及如何使用符合Python 语言习惯的方式来实现这些设计模式;最后第12-13章介绍了Python 3中与并发编程相关的主题
开源日期
2022-04-24
🚀 快速下载
成为会员以支持书籍、论文等的长期保存。为了感谢您对我们的支持,您将获得高速下载权益。❤️
如果您在本月捐款,您将获得双倍的快速下载次数。
- 高速服务器(合作方提供) #1 (推荐)
- 高速服务器(合作方提供) #2 (推荐)
- 高速服务器(合作方提供) #3 (推荐)
- 高速服务器(合作方提供) #4 (推荐)
- 高速服务器(合作方提供) #5 (推荐)
- 高速服务器(合作方提供) #6 (推荐)
- 高速服务器(合作方提供) #7
- 高速服务器(合作方提供) #8
- 高速服务器(合作方提供) #9
- 高速服务器(合作方提供) #10
- 高速服务器(合作方提供) #11
- 高速服务器(合作方提供) #12
- 高速服务器(合作方提供) #13
- 高速服务器(合作方提供) #14
- 高速服务器(合作方提供) #15
- 高速服务器(合作方提供) #16
- 高速服务器(合作方提供) #17
- 高速服务器(合作方提供) #18
- 高速服务器(合作方提供) #19
- 高速服务器(合作方提供) #20
- 高速服务器(合作方提供) #21
- 高速服务器(合作方提供) #22
🐢 低速下载
由可信的合作方提供。 更多信息请参见常见问题解答。 (可能需要验证浏览器——无限次下载!)
- 低速服务器(合作方提供) #1 (稍快但需要排队)
- 低速服务器(合作方提供) #2 (稍快但需要排队)
- 低速服务器(合作方提供) #3 (稍快但需要排队)
- 低速服务器(合作方提供) #4 (稍快但需要排队)
- 低速服务器(合作方提供) #5 (无需排队,但可能非常慢)
- 低速服务器(合作方提供) #6 (无需排队,但可能非常慢)
- 低速服务器(合作方提供) #7 (无需排队,但可能非常慢)
- 低速服务器(合作方提供) #8 (无需排队,但可能非常慢)
- 低速服务器(合作方提供) #9 (无需排队,但可能非常慢)
- 低速服务器(合作方提供) #10 (稍快但需要排队)
- 低速服务器(合作方提供) #11 (稍快但需要排队)
- 低速服务器(合作方提供) #12 (稍快但需要排队)
- 低速服务器(合作方提供) #13 (稍快但需要排队)
- 低速服务器(合作方提供) #14 (无需排队,但可能非常慢)
- 低速服务器(合作方提供) #15 (无需排队,但可能非常慢)
- 低速服务器(合作方提供) #16 (无需排队,但可能非常慢)
- 低速服务器(合作方提供) #17 (无需排队,但可能非常慢)
- 低速服务器(合作方提供) #18 (无需排队,但可能非常慢)
- 下载后: 在我们的查看器中打开
所有选项下载的文件都相同,应该可以安全使用。即使这样,从互联网下载文件时始终要小心。例如,确保您的设备更新及时。
外部下载
-
对于大文件,我们建议使用下载管理器以防止中断。
推荐的下载管理器:JDownloader -
您将需要一个电子书或 PDF 阅读器来打开文件,具体取决于文件格式。
推荐的电子书阅读器:Anna的档案在线查看器、ReadEra和Calibre -
使用在线工具进行格式转换。
推荐的转换工具:CloudConvert和PrintFriendly -
您可以将 PDF 和 EPUB 文件发送到您的 Kindle 或 Kobo 电子阅读器。
推荐的工具:亚马逊的“发送到 Kindle”和djazz 的“发送到 Kobo/Kindle” -
支持作者和图书馆
✍️ 如果您喜欢这个并且能够负担得起,请考虑购买原版,或直接支持作者。
📚 如果您当地的图书馆有这本书,请考虑在那里免费借阅。
下面的文字仅以英文继续。
总下载量:
“文件的MD5”是根据文件内容计算出的哈希值,并且基于该内容具有相当的唯一性。我们这里索引的所有影子图书馆都主要使用MD5来标识文件。
一个文件可能会出现在多个影子图书馆中。有关我们编译的各种数据集的信息,请参见数据集页面。
有关此文件的详细信息,请查看其JSON 文件。 Live/debug JSON version. Live/debug page.