![](https://img-blog.csdnimg.cn/20201014180756930.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
python
卡卡罗特hktk
这个作者很懒,什么都没留下…
展开
-
python模式-lazy-evaluation
lazy-evaluation """ Lazily-evaluated property pattern in Python. https://en.wikipedia.org/wiki/Lazy_evaluation *References: bottle https://github.com/bottlepy/bottle/blob/cafc15419cbb4a6cb748e6ecdccf9...翻译 2020-03-04 13:08:42 · 816 阅读 · 0 评论 -
python模式-工厂模式
工厂模式 """*What is this pattern about? A Factory is an object for creating other objects. *What does this example do? The code shows a way to localize words in two languages: English and Greek. "get_loc...翻译 2020-03-04 09:40:39 · 114 阅读 · 0 评论 -
python模式-builder
builder模式 """ *What is this pattern about? It decouples the creation of a complex object and its representation, so that the same process can be reused to build objects from the same family. This is u...翻译 2020-03-03 19:17:17 · 349 阅读 · 0 评论 -
python模式-单态
单态模式 """ *What is this pattern about? The Borg pattern (also known as the Monostate pattern) is a way to implement singleton behavior, but instead of having only one instance of a class, there are mul...翻译 2020-03-03 18:20:12 · 177 阅读 · 0 评论