ZhangZhihui's Blog  
上一页 1 ··· 8 9 10 11 12 13 14 15 16 ··· 78 下一页

2024年8月16日

摘要: A structural design pattern proposes a way of composing objects to provide new functionality. • The adapter pattern The adapter pattern is a structura 阅读全文
posted @ 2024-08-16 16:02 ZhangZhihuiAAA 阅读(9) 评论(0) 推荐(0) 编辑
 
摘要: Creational design patterns deal with different aspects of object creation. Their goal is to provide better alternatives for situations where direct ob 阅读全文
posted @ 2024-08-16 09:26 ZhangZhihuiAAA 阅读(3) 评论(0) 推荐(0) 编辑
 
摘要: • Single responsibility principle (SRP) • Open-closed principle (OCP) It emphasizes that software entities, such as classes and modules, should be ope 阅读全文
posted @ 2024-08-16 09:18 ZhangZhihuiAAA 阅读(4) 评论(0) 推荐(0) 编辑

2024年8月15日

摘要: Introduced in Python 3.8 via the typing module, Protocols offer a more flexible approach than ABCs, known as structural duck typing, where an object i 阅读全文
posted @ 2024-08-15 22:03 ZhangZhihuiAAA 阅读(7) 评论(0) 推荐(0) 编辑
 
摘要: Encapsulate What Varies One of the most common challenges in software development is dealing with change. Requirements evolve, technologies advance, a 阅读全文
posted @ 2024-08-15 21:40 ZhangZhihuiAAA 阅读(13) 评论(0) 推荐(0) 编辑
 
摘要: A natural way to deal with uncertainty is to introduce probabilistic rules. In the simplest case, we can imagine an FSM-like device having no commands 阅读全文
posted @ 2024-08-15 19:53 ZhangZhihuiAAA 阅读(6) 评论(0) 推荐(0) 编辑

2024年8月13日

摘要: Finite state machines (FSMs) serve as a great example of an important theoretical construction that also turns out to be a useful tool for everyday pr 阅读全文
posted @ 2024-08-13 21:23 ZhangZhihuiAAA 阅读(14) 评论(0) 推荐(0) 编辑
 
摘要: A virtual ant lives on an infinite board, divided into square cells. Each cell can be either black or white. For starters, we can consider an empty (a 阅读全文
posted @ 2024-08-13 16:16 ZhangZhihuiAAA 阅读(4) 评论(0) 推荐(0) 编辑

2024年8月11日

摘要: >>> bugs = ["bug1", "bug2"] >>> sum(bugs, []) Traceback (most recent call last): File "<stdin>", line 1, in <module> TypeError: can only concatenate l 阅读全文
posted @ 2024-08-11 19:52 ZhangZhihuiAAA 阅读(7) 评论(0) 推荐(0) 编辑

2024年8月9日

摘要: Among the most conspicuous properties of a plant shape are symmetry and self-similarity. In a nutshell, L-systems are based on three foundational idea 阅读全文
posted @ 2024-08-09 16:08 ZhangZhihuiAAA 阅读(3) 评论(0) 推荐(0) 编辑
上一页 1 ··· 8 9 10 11 12 13 14 15 16 ··· 78 下一页