mercredi 3 août 2016

How to turn a string into a dict in Python

I have a string

"{a:'b', c:'d',e:''}"

What would be the most convenient way to make it to a dictionary

{'a':'b', 'c':'d', 'e':''}

Aucun commentaire:

Enregistrer un commentaire