Python学习(三):打印二叉树

# 第一步:安装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)
posted @ 2020-01-02 15:59  liw66  阅读(619)  评论(0编辑  收藏  举报