深度遍历改变顺序就OK了coding:utf-8二叉树的遍历简单的二叉树节点类classNode(object):def__init__(self,value,left,right):self.v...
importrandomalist=[1,2,3,4,5]random.shuffle(alist)print(alist)
深度遍历改变顺序就OK了coding:utf-8二叉树的遍历简单的二叉树节点类classNode(object):def__init__(self,value,left,right):self.v...
importrandomalist=[1,2,3,4,5]random.shuffle(alist)print(alist)