(self, head)
Init a tree
Init a tree
Init a tree
def __init__(self, head):
        """ Init a tree """
        super(Tree, self).__init__()

        """一般来讲,pid会作为一个数的根节点"""
        self._head = Node(head)
        self._head._level=1
def __init__ ( self , head ) : super ( Tree , self ) . __init__ ( ) """一般来讲,pid会作为一个数的根节点""" self . _head = Node ( head ) self . _head . _level = 1