# 单例模式
class Singleton(object):
    # 重写
    def __call__(cls, *args, **kwargs):
        if not hasattr(cls,'_instance'):
            cls._instance=super().__call__(*args,**kwargs)
        return cls._instance

