def deep(x, y=None): if y is None: y = [x] for i in x.children: y.append(i) deep(i, y) return y
用于数据结构为自关联的
本文标题:深度递归查找所有数据
本文链接:https://www.haomeiwen.com/subject/pvyfuktx.html
网友评论