可能重复: 在Python中定义单例是否有简单,优雅的方法?
在Python中实现单例模式的最佳方法是什么?似乎不可能像通常使用Singleton模式那样声明构造函数是私有的还是受保护的......
python singleton design-patterns
design-patterns ×1
python ×1
singleton ×1