get tree view from a dictionary with anytree or rich, or treelib
get tree view from a dictionary with anytree or rich, or treelib Question: I read the manual from https://anytree.readthedocs.io/en/latest/#, but I didn’t figure out how to translate a dictionary to tree view, anyone can help? data = { ‘Marc’: ‘Udo’, ‘Lian’: ‘Marc’, ‘Dan’: ‘Udo’, ‘Jet’: ‘Dan’, ‘Jan’: ‘Dan’, ‘Joe’: ‘Dan’, } output is Udo ├── …