How to convert a string into nested dictionaries in python (Generator expression)?

后端 未结 0 1634
谎友^
谎友^ 2020-12-13 10:11

here is the input string:

s = \'Iva paper 10,Nelson pens 5,Oleg marker 3,Sasha paper 7,Mark envelope 20\'

I would like to have an output like

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