深刻浅出设计模式python版——观察者模式(observer)

书中第二个设计模式——观察者模式java 首先,祭出类图python 书中举得例子:设计模式 通常方式app 使用java内置模块的方式设计 python代码:3d 主题/可观察者:code # -*- coding:utf-8 -*- #Subject.py import Observer class Subject: def __init__(self): self._
相关文章
相关标签/搜索