├── AbstractFactory ├── AbstractFactory.py └── README.md ├── Adapter ├── README.md └── adapter.py ├── Bridge ├── Bridge.py └── README.md ├── Builder ├── BuilderPattern.py └── README.md ├── Command ├── README.md └── command_pattern.py ├── Composite ├── CompositePattern.py └── README.md ├── Decorator ├── DecoratorPattern.py └── README.md ├── Facade ├── README.md └── facade.py ├── FactoryMethod ├── FactoryMethod.py └── README.md ├── FlyWeight ├── FlyWeightPattern.py └── README.md ├── Interpreter ├── InterpreterPattern.py └── README.md ├── Iterator ├── IteratorPattern.py └── README.md ├── Mediator ├── MediatorPattern.py └── README.md ├── Memento ├── MementoPattern.py └── README.md ├── Observer ├── ObserverPattern.py └── README.md ├── ProtoType ├── ProtoType.py └── README.md ├── Proxy ├── README.md └── proxy.py ├── README.md ├── ResponsibilityChain ├── README.md └── ResponsibilityChainPattern.py ├── SimpleFactory ├── README.md └── SimpleFactory.py ├── Singleton ├── README.md └── SingletonPattern.py ├── State ├── README.md └── StatePattern.py ├── Strategy ├── README.md └── StrategyPattern.py ├── TemplateMethod ├── README.md └── TemplateMethodPattern.py └── Visitor ├── README.md └── VisitorPattern.py /AbstractFactory/AbstractFactory.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tim-chow/DesignPattern/HEAD/AbstractFactory/AbstractFactory.py -------------------------------------------------------------------------------- /AbstractFactory/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tim-chow/DesignPattern/HEAD/AbstractFactory/README.md -------------------------------------------------------------------------------- /Adapter/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tim-chow/DesignPattern/HEAD/Adapter/README.md -------------------------------------------------------------------------------- /Adapter/adapter.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tim-chow/DesignPattern/HEAD/Adapter/adapter.py -------------------------------------------------------------------------------- /Bridge/Bridge.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tim-chow/DesignPattern/HEAD/Bridge/Bridge.py -------------------------------------------------------------------------------- /Bridge/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tim-chow/DesignPattern/HEAD/Bridge/README.md -------------------------------------------------------------------------------- /Builder/BuilderPattern.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tim-chow/DesignPattern/HEAD/Builder/BuilderPattern.py -------------------------------------------------------------------------------- /Builder/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tim-chow/DesignPattern/HEAD/Builder/README.md -------------------------------------------------------------------------------- /Command/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tim-chow/DesignPattern/HEAD/Command/README.md -------------------------------------------------------------------------------- /Command/command_pattern.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tim-chow/DesignPattern/HEAD/Command/command_pattern.py -------------------------------------------------------------------------------- /Composite/CompositePattern.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tim-chow/DesignPattern/HEAD/Composite/CompositePattern.py -------------------------------------------------------------------------------- /Composite/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tim-chow/DesignPattern/HEAD/Composite/README.md -------------------------------------------------------------------------------- /Decorator/DecoratorPattern.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tim-chow/DesignPattern/HEAD/Decorator/DecoratorPattern.py -------------------------------------------------------------------------------- /Decorator/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tim-chow/DesignPattern/HEAD/Decorator/README.md -------------------------------------------------------------------------------- /Facade/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tim-chow/DesignPattern/HEAD/Facade/README.md -------------------------------------------------------------------------------- /Facade/facade.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tim-chow/DesignPattern/HEAD/Facade/facade.py -------------------------------------------------------------------------------- /FactoryMethod/FactoryMethod.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tim-chow/DesignPattern/HEAD/FactoryMethod/FactoryMethod.py -------------------------------------------------------------------------------- /FactoryMethod/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tim-chow/DesignPattern/HEAD/FactoryMethod/README.md -------------------------------------------------------------------------------- /FlyWeight/FlyWeightPattern.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tim-chow/DesignPattern/HEAD/FlyWeight/FlyWeightPattern.py -------------------------------------------------------------------------------- /FlyWeight/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tim-chow/DesignPattern/HEAD/FlyWeight/README.md -------------------------------------------------------------------------------- /Interpreter/InterpreterPattern.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tim-chow/DesignPattern/HEAD/Interpreter/InterpreterPattern.py -------------------------------------------------------------------------------- /Interpreter/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tim-chow/DesignPattern/HEAD/Interpreter/README.md -------------------------------------------------------------------------------- /Iterator/IteratorPattern.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tim-chow/DesignPattern/HEAD/Iterator/IteratorPattern.py -------------------------------------------------------------------------------- /Iterator/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tim-chow/DesignPattern/HEAD/Iterator/README.md -------------------------------------------------------------------------------- /Mediator/MediatorPattern.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tim-chow/DesignPattern/HEAD/Mediator/MediatorPattern.py -------------------------------------------------------------------------------- /Mediator/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tim-chow/DesignPattern/HEAD/Mediator/README.md -------------------------------------------------------------------------------- /Memento/MementoPattern.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tim-chow/DesignPattern/HEAD/Memento/MementoPattern.py -------------------------------------------------------------------------------- /Memento/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tim-chow/DesignPattern/HEAD/Memento/README.md -------------------------------------------------------------------------------- /Observer/ObserverPattern.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tim-chow/DesignPattern/HEAD/Observer/ObserverPattern.py -------------------------------------------------------------------------------- /Observer/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tim-chow/DesignPattern/HEAD/Observer/README.md -------------------------------------------------------------------------------- /ProtoType/ProtoType.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tim-chow/DesignPattern/HEAD/ProtoType/ProtoType.py -------------------------------------------------------------------------------- /ProtoType/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tim-chow/DesignPattern/HEAD/ProtoType/README.md -------------------------------------------------------------------------------- /Proxy/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tim-chow/DesignPattern/HEAD/Proxy/README.md -------------------------------------------------------------------------------- /Proxy/proxy.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tim-chow/DesignPattern/HEAD/Proxy/proxy.py -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tim-chow/DesignPattern/HEAD/README.md -------------------------------------------------------------------------------- /ResponsibilityChain/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tim-chow/DesignPattern/HEAD/ResponsibilityChain/README.md -------------------------------------------------------------------------------- /ResponsibilityChain/ResponsibilityChainPattern.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tim-chow/DesignPattern/HEAD/ResponsibilityChain/ResponsibilityChainPattern.py -------------------------------------------------------------------------------- /SimpleFactory/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tim-chow/DesignPattern/HEAD/SimpleFactory/README.md -------------------------------------------------------------------------------- /SimpleFactory/SimpleFactory.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tim-chow/DesignPattern/HEAD/SimpleFactory/SimpleFactory.py -------------------------------------------------------------------------------- /Singleton/README.md: -------------------------------------------------------------------------------- 1 | ### 单例模式 2 | 3 | 在程序运行期间,单例类只有一个实例 4 | -------------------------------------------------------------------------------- /Singleton/SingletonPattern.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tim-chow/DesignPattern/HEAD/Singleton/SingletonPattern.py -------------------------------------------------------------------------------- /State/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tim-chow/DesignPattern/HEAD/State/README.md -------------------------------------------------------------------------------- /State/StatePattern.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tim-chow/DesignPattern/HEAD/State/StatePattern.py -------------------------------------------------------------------------------- /Strategy/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tim-chow/DesignPattern/HEAD/Strategy/README.md -------------------------------------------------------------------------------- /Strategy/StrategyPattern.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tim-chow/DesignPattern/HEAD/Strategy/StrategyPattern.py -------------------------------------------------------------------------------- /TemplateMethod/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tim-chow/DesignPattern/HEAD/TemplateMethod/README.md -------------------------------------------------------------------------------- /TemplateMethod/TemplateMethodPattern.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tim-chow/DesignPattern/HEAD/TemplateMethod/TemplateMethodPattern.py -------------------------------------------------------------------------------- /Visitor/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tim-chow/DesignPattern/HEAD/Visitor/README.md -------------------------------------------------------------------------------- /Visitor/VisitorPattern.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tim-chow/DesignPattern/HEAD/Visitor/VisitorPattern.py --------------------------------------------------------------------------------