使用创建函数__new__()
class xxxx(object): def __new__(cls,*args,**kwargs): if not hasattr(cls,'_a') cls._a = super(xxxx,cls).__new__(cls) return cls._a