会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
每天学习一点点
博客园
首页
新随笔
联系
管理
订阅
2018年4月4日
python实现二叉树的建立以及遍历(递归前序、中序、后序遍历,队栈前序、中序、后序、层次遍历)
摘要: 1 #-*- coding:utf-8 -*- 2 class Node: 3 def __init__(self,data): 4 self.data=data 5 self.lchild=None 6 self.rchild=None 7 8 class Tree: 9 def __init...
阅读全文
posted @ 2018-04-04 15:43 ybf&yyj
阅读(5746)
评论(0)
推荐(0)
公告