formatting string to dict

前端 未结 0 2005
不思量自难忘°
不思量自难忘° 2020-12-09 03:51

So I am trying to format a string to a dict. Meaning, I receive an str input of this sort: "b:0.1 a:0.5 n:0.2 p:0.1 c:0.1 k:0.1”

And wish to convert it to dict:

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