python实现:字典转化为字符串,字符串转化为字典

d = dict(eval(string)) # 字符串转化成字典
string = str(d) # 字典转化成字符串
发布了234 篇原创文章 · 获赞 107 · 访问量 3万+

猜你喜欢

转载自blog.csdn.net/weixin_44478378/article/details/104780792