运维网's Archiver
论坛
›
Python
› python单例设计模式
十二12
发表于 2018-8-16 06:07:51
python单例设计模式
()instance (,).name ().instance.instance
obj ()
.instance obj
obj
duoceshi1 Singleton.get_instance()
duoceshi2 Singleton.get_instance()
(duoceshi1)
(duoceshi2)
页:
[1]
查看完整版本:
python单例设计模式