全部
|
电子书
|
课件
|
问答
|
代码
|
主题讨论
|
视频
登录
|
注册
|
帮助
|
语言
汉语
英文
日文
首 页
电子书
课 件
问答集
主题讨论
在线教育
试读
我要上传
MSN机器人
Python 3 Patterns Recipes and Idioms
前言
(1)
Contributors
(7)
Thanks To
(7)
ToDo List
(9)
The remainder are from context, from the book.
(11)
A Note To Readers
(13)
Introduction
(15)
A Team Effort
(15)
Not an Introductory Book
(15)
The License
(16)
The Printed Book
(16)
Translations
(16)
My Motives
(16)
Teaching Support
(19)
Book Development Rules
(21)
Contribute What You Can
(21)
Don't Get Attached
(21)
Credit
(22)
Mechanics
(22)
Diagrams
(22)
Developer Guide
(25)
Getting Started: The Easiest Approach
(25)
For Windows Users
(25)
Installing Sphinx
(26)
Getting the Development Branch of the Book
(26)
Building the Book
(26)
Part I: Foundations
(29)
Quick Python for Programmers
(31)
Scripting vs. Programming
(31)
Built-In Containers
(32)
Functions
(32)
Strings
(33)
Classes
(34)
Unit Testing & Test-Driven Development
(39)
Write Tests First
(40)
Simple Python Testing
(40)
A Very Simple Framework
(41)
Writing Tests
(42)
White-Box & Black-Box Tests
(44)
Running tests
(45)
Automatically Executing Tests
(47)
Exercises
(47)
Python 3 Language Changes
(49)
Decorators
(51)
Decorators vs. the Decorator Pattern
(51)
History of Macros
(51)
The Goal of Macros
(52)
What Can You Do With Decorators?
(52)
Function Decorators
(52)
Slightly More Useful
(54)
Using Functions as Decorators
(54)
Review: Decorators without Arguments
(55)
Decorators with Arguments
(56)
Decorator Functions with Decorator Arguments
(57)
Further Reading
(58)
Generators, Iterators, and Itertools
(61)
Comprehensions
(63)
A More Complex Example
(63)
Coroutines & Concurrency
(67)
Jython
(69)
Interpreter Motivation
(69)
Creating a Language
(70)
Controlling the Interpreter
(72)
Controlling Java from Jython
(80)
Using Java libraries
(83)
Creating Java classes with Jython
(84)
Summary
(89)
Exercises
(89)
Part II: Idioms
(91)
Discovering the Details About Your Platform
(93)
A Canonical Form for Command-Line Programs
(95)
Part III: Patterns
(97)
The Pattern Concept
(99)
What is a Pattern?
(99)
Classifying Patterns
(100)
Pattern Taxonomy
(100)
Design Structures
(101)
Design Principles
(102)
The Singleton
(105)
Exercises
(109)
Building Application Frameworks
(111)
Template Method
(111)
Exercises
(112)
Fronting for an Implementation
(113)
Proxy
(113)
State
(114)
StateMachine
(117)
Table-Driven State Machine
(122)
Tools
(129)
Exercises
(129)
Decorator: Dynamic Type Selection
(131)
Basic Decorator Structure
(132)
A Coffee Example
(132)
Class for Each Combination
(132)
The Decorator Approach
(134)
Compromise
(136)
Other Considerations
(138)
Exercises
(139)
Iterators: Decoupling Algorithms from Containers
(141)
Type-Safe Iterators
(141)
Factory: Encapsulating Object Creation
(143)
Simple Factory Method
(143)
Polymorphic Factories
(145)
Abstract Factories
(147)
Exercises
(149)
Function Objects
(151)
Command: Choosing the Operation at Runtime
(151)
Strategy: Choosing the Algorithm at Runtime
(152)
Chain of Responsibility
(153)
Exercises
(155)
Changing the Interface
(157)
Adapter
(157)
Façade
(158)
Exercises
(159)
Table-Driven Code: Configuration Flexibility
(161)
Table-Driven Code Using Anonymous Inner Classes
(161)
Observer
(163)
Observing Flowers
(164)
Multiple Dispatching
(175)
Visitor
(179)
Exercises
(180)
Pattern Refactoring
(181)
Simulating the Trash Recycler
(181)
Improving the Design
(184)
A Pattern for Prototyping Creation
(186)
Abstracting Usage
(192)
Multiple Dispatching
(194)
The Visitor Pattern
(200)
RTTI Considered Harmful?
(206)
Summary
(208)
Exercises
(209)
Projects
(211)
Rats & Mazes
(211)
Indices and tables
(217)
Index
(219)
相关书籍
Matplotlib for Pytho…
正在阅读(3人)
收藏(0人)
人气(458人)
Head First Programmi…
正在阅读(8人)
收藏(0人)
人气(676人)
Python & XMLly - Pyt…
正在阅读(6人)
收藏(0人)
人气(932人)
Python 3 for Absolut…
正在阅读(7人)
收藏(0人)
人气(742人)
Python Pocket Refere…
正在阅读(6人)
收藏(0人)
人气(696人)