We don’t allow questions seeking recommendations for software libraries, tutorials, tools, books, or other off-site resources. You can edit the question so it can be answered with facts and citations.
Closed 8 years ago.
The community reviewed whether to reopen this question 2 years ago and left it closed:
Original close reason(s) were not resolved
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(5)
我对 treelib 很满意。它解决了我的问题。不过可以使用更多的文档。但代码很清楚。
I'm happy with treelib. It addresses my problem. Could use a bit more documentation though. But the code is clear.
pypi,Python 包索引,建议 tinytree, treedict,caxes,pyavl ...这些只是过滤掉许多意外点击后的前几个(指向特定的树,例如 XML 树、AST 树等;-)。如果您明确要如何处理树木,那么建议特定的软件包可能会更容易。
pypi, the Python Package Index, suggests tinytree, treedict, caxes, pyavl... these are just the top few after filtering away the many accidental hits (which point to specific tree such as XML ones, AST ones, etc, etc;-). If you clarify what you want to do with your trees it may be easier to suggest a specific package.
尽管 ETE 库最初似乎是为与系统发育树一起开发的,但它实现了许多通用功能来与任何类型一起工作层次树结构,包括编程树绘制和可视化。
如果您想探索的话,这里有一个全面的教程和参考指南。
Although the ETE library seems to be originally developed to work with Phylogenetic trees, it implements many general features to work with any type of hierarchical tree structures, including programmatic tree drawing and visualization.
There is a comprehensive tutorial and a reference guide, in case you want to explore it.
python-graph 似乎是一个相当彻底和完整的包,并且可以导出 DOT 图与 Graphviz 一起使用。
python-graph seems to be a fairly thorough and complete package, and can export DOT graphs for use with Graphviz.
您可能想查看 cElementTree。
You probably want to look at cElementTree.