You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I need a tree representing an eshop, the nodes being eshop categories
tag--> category name
identifier--> category id
data--> category link (type string)
Can I print the data of the nodes? (since there is no data_property(attribute) I am aware of that I can call on a string to get the value of it)
I need a tree representing an eshop, the nodes being eshop categories
tag--> category name
identifier--> category id
data--> category link (type string)
Can I print the data of the nodes? (since there is no data_property(attribute) I am aware of that I can call on a string to get the value of it)
tree = treelib.Tree()
tree.create_node(tag="main", identifier=0, data="main-url")
tree.create_node(tag="category1", identifier=1, parent=0, data="category1-url")
tree.create_node(tag="category2", identifier=2, parent=0, data="category2-url")
print(tree.show(stdout=False, data_property=???))`
The text was updated successfully, but these errors were encountered: