摘要:
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace GeovinduDu { [AttributeU 阅读全文
posted @ 2022-10-29 21:36
®Geovin Du Dream Park™
阅读(29)评论(0)推荐(0)
编辑
摘要:
Single Responsibility Principle SOLID Design Patterns SOLID is an acronym for five principles of architecture.S – Single Responsibility PrincipleO – O 阅读全文
posted @ 2022-10-28 22:30
®Geovin Du Dream Park™
阅读(18)评论(0)推荐(0)
编辑
摘要:
GeovinDuState.py #状态模式 State Pattern class ComputerState(object): name = "state" allowed = [] def switch(self, state): """ Switch to new state """ if 阅读全文
posted @ 2022-10-26 23:43
®Geovin Du Dream Park™
阅读(19)评论(0)推荐(0)
编辑
摘要:
GeovinDuTemplate.py # 模板方法模式 Template Method Pattern def get_text(): return "text 文件" """ method to get the xml version of file""" def get_xml(): retu 阅读全文
posted @ 2022-10-26 22:49
®Geovin Du Dream Park™
阅读(17)评论(0)推荐(0)
编辑
摘要:
GeovinDuObserver.py # 观察者模式 Observer Pattern # The Observer class that recieves updates from the ticker on a specific symbol: class TickerObserver(obj 阅读全文
posted @ 2022-10-24 22:05
®Geovin Du Dream Park™
阅读(20)评论(0)推荐(0)
编辑