没有项目描述
tree-format的Python项目详细描述
python库生成格式良好的树,像Unix'tree `
命令一样。
>
使用这样的代码:
``python
from operator import
>tree=(
‘foo’,[
('bar',[
('a',[]),
('b',[]),
('b',[]),
('baz',[]),
('baz',[]),
('qux',[
('c\nd',[],
],
,
,
,
打印格式打印格式。u树(
树,format_node=itegetter(0),get_children=itegetter(1))
`````
《许可证
`
命令一样。
>
使用这样的代码:
``python
from operator import
>tree=(
‘foo’,[
('bar',[
('a',[]),
('b',[]),
('b',[]),
('baz',[]),
('baz',[]),
('qux',[
('c\nd',[],
],
,
,
,
打印格式打印格式。u树(
树,format_node=itegetter(0),get_children=itegetter(1))
`````
《许可证
`