📅  最后修改于: 2022-03-11 14:46:21.683000             🧑  作者: Mango
>>> from newick import loads
>>> trees = loads('(A,B,(C,D)E)F;')
>>> trees[0].name
'F'
>>> [n.name for n in trees[0].descendants]
['A', 'B', 'E']