# 第一步:安装binarytree包 # pip install binarytree rem二叉树 # 第二步:调用binarytree包 from binarytree import build import random #values = [0,1,2,3,4,5,6,7,None,9,10] values = [random.randint(0,100) for i in range(50)] root = build(values) print(root)