文件名称:
( [Python.in.Practice(2013.8)].Mark.Summerfield.文字版(英语)
开发工具:
文件大小: 2mb
下载次数: 0
上传时间: 2014-07-08
详细说明: Contents Foreword .......................................................... xiii Introduction ...................................................... 1 Acknowledgments................................................ 3 Chapter 1. Creational Design Patterns in Python................ 5 1.1. Abstract Factory Pattern .................................... 5 1.1.1. A Classic Abstract Factory .............................. 6 1.1.2. A More Pythonic Abstract Factory........................ 9 1.2. Builder Pattern............................ .................. 11 1.3. Factory Method Pattern ...................................... 17 1.4. Prototype Pattern............................................ 24 1.5. Singleton Pattern ............................................ 26 Chapter 2. Structural Design Patterns in Python................ 29 2.1. Adapter Pattern.............................................. 29 2.2. Bridge Pattern .............................................. 34 2.3. Composite Pattern .......................................... 40 2.3.1. A Classic Composite/Noncomposite Hierarchy ............ 41 2.3.2. A Single Class for (Non)composites ...................... 45 2.4. Decorator Pattern............................................ 48 2.4.1. Function and Method Decorators ........................ 48 2.4.2. Class Decorators........................................ 54 2.4.2.1. Using a Class Decorator to Add Properties .......... 57 2.4.2.2. Using a Class Decorator Instead of Subclassing...... 58 2.5. Façade Pattern .............................................. 59 2.6. Flyweight Pattern............................................ 64 2.7. Proxy Pattern................................................ 67 Chapter 3. Behavioral Design Patterns in Python................ 73 3.1. Chain of Responsibility Pattern .............................. 74 3.1.1. A Conventional Chain .................................. 74 3.1.2. A Coroutine-Based Chain................................ 76 3.2. Command Pattern............................................ 79 ...展开收缩
(系统自动生成,下载前可以参看下载内容)
下载文件列表
相关说明
- 本站资源为会员上传分享交流与学习,如有侵犯您的权益,请联系我们删除.
- 本站是交换下载平台,提供交流渠道,下载内容来自于网络,除下载问题外,其它问题请自行百度。
- 本站已设置防盗链,请勿用迅雷、QQ旋风等多线程下载软件下载资源,下载后用WinRAR最新版进行解压.
- 如果您发现内容无法下载,请稍后再次尝试;或者到消费记录里找到下载记录反馈给我们.
- 下载后发现下载的内容跟说明不相乎,请到消费记录里找到下载记录反馈给我们,经确认后退回积分.
- 如下载前有疑问,可以通过点击"提供者"的名字,查看对方的联系方式,联系对方咨询.