摘要: DuIterator.py # 迭代器模式 Iterator Pattern # Doubly Linked List class Node(object): def __init__(self, value, nextNode, prevNode): self.value = value self 阅读全文
posted @ 2022-10-23 23:49 ®Geovin Du Dream Park™ 阅读(36) 评论(0) 推荐(0)
摘要: DuChain.py # 责任链模式 Chain of Responsibility import enum # Item Types: # An enum we'll attach to every game object to specify type: # Requires Python 3. 阅读全文
posted @ 2022-10-23 08:22 ®Geovin Du Dream Park™ 阅读(41) 评论(0) 推荐(0)