标签: python
我有这样的字符串"Parent(Parent1(Child1,Child2),Parent2(Child3,Child4))"
"Parent(Parent1(Child1,Child2),Parent2(Child3,Child4))"
你能否告诉我 pythonic 将其转换为dict {"Parent": {"Parent1": ["Child1", "Child2"], "Parent2": ["Child3", "Child4"]}}
{"Parent": {"Parent1": ["Child1", "Child2"], "Parent2": ["Child3", "Child4"]}}
提前致谢。