python中eval函数使用

把字符串转换为字典:

s = "{'a':1}"

eval(s)

原文地址:https://www.cnblogs.com/xmlbw/p/5275757.html