python-patterns 则是使用 python 实现设计模式的集合
开源项目的地址是:https://github.com/faif/python-patterns
支持的设计模式
创建型模式
抽象工厂模式(abstract_factory)
单例模式(brog)
建造者模式(builder)
工厂模式(factory)
惰性评价模式(lazy_evaluation)
对象池模式(pool)
原型模式(prototype)
结构型模式
3层模式(3-tier)
适配器模式(adapter)
桥接模式(bridge)
组合模式(composite)
装饰器模式(decorator)
外观模式(facade)
享元模式(flyweight)
前端控制器模式(front_controller)
MVC模式(mvc)
代理模式(proxy)
行为型模式
责任链模式(chain_of_responsibility)
目录模式(catelog)
方法链模式(chaining_method)
命令模式(command)
迭代器模式(iterator)
中介者模式(mediator)
备忘录模式(memento)
观察者模式(observer)
发布订阅模式(publish_subscribe)
注册模式(registry)
规格模式(specification)
状态模式(state)
策略模式(strategy)
模板模式(template)
访问者模式(visitor)
可测试型模式
依赖注入模式(dependency_injection)
基础模式
委托模式(delegation_pattern)
其他模式
黑板模式(blackboard)
图搜索模式(graph_search)
hsm模式(hsm)








网友评论