create a tree from given a nested list with parent-child relationship

后端 未结 0 725
说谎
说谎 2021-01-25 02:00

I have a list (in Python 3) like this:

[[\'A\', (8, \'B\')], [\'B\', (3, \'C\')], [\'C\', (8, \'D\'), (7, \'E\')], [\'D\', (2, \'F\'), (7, \'G\'), (2, \'H\')], [\         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题