python语法_str_eval

dict1 = {}

a = str(dict1)

type(a) = 字符串

b = eval(a) 

type(b) = 字典

posted @ 2018-11-28 22:17  小水胖  阅读(224)  评论(0编辑  收藏  举报