(self,child)
添加一个child节点\n
        @param child: Child object
添加一个child节点\n
添加一个child节点 \ n
def addChild(self,child):
        '''添加一个child节点\n
        @param child: Child object
        '''
        key = child.getName()
        if self._childs.has_key(key):
            raise "child node %s exists"% key
        self._childs[key] = child
def addChild ( self , child ) : key = child . getName ( ) if self . _childs . has_key ( key ) : raise "child node %s exists" % key self . _childs [ key ] = child