摘要:
# 方法一: 使用一个类方法实现单例模式 import settings class Mysql: __instance = None def __init__(self, host,port): self.host = host self.port = port @classmethod def singleton(cls)... 阅读全文
posted @ 2018-07-17 21:22
muzinianhua
阅读(123)
评论(0)
推荐(0)
浙公网安备 33010602011771号