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 · 930 阅读 · 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 · 175 阅读 · 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 · 411 阅读 · 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 · 230 阅读 · 0 评论
分享