#!/usr/bin/env Python
#coding=utf-8
#=================================
#SuperClass,实例化一个AAA#供其它类库继承
#=================================
from AAA import AAA
########################################################################
class AAA(object):
A = AAA()
#----------------------------------------------------------------------
def __new__(self,*agrs,**kw):
"""单例化的方式"""
if not hasattr(self, '_instance'):
orig = super(AAA, self)
self._instance = orig.__new__(self, *agrs, **kw)
return self._instance