摘要:
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™
阅读(27)
评论(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™
阅读(22)
评论(0)
推荐(0)
浙公网安备 33010602011771号