How to convert a string (containing :) into dictionary in Python?

前端 未结 0 718
渐次进展
渐次进展 2020-12-12 02:42

I have a .txt file (type string) {\'A\': 0, \'B\': 2, \'C\':0, ...} which I would like to convert to a dictionary (to be able to save all elements containing 0s in another f

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