python 实现树结构的打印
摘要:
class TreeNode: def __init__(self,value): self.children = [] self.value = value def add_child(self,*child): self.children+=child def show(self,layer): 阅读全文
posted @ 2016-06-26 20:51 张祎 阅读(1459) 评论(0) 推荐(1) 编辑