import json str_Detail = '{"rowOne":"A","rowTwo":"B","rowThree":"C"}' print(str_Detail, type(str_Detail)) ''' {"rowOne":"A","rowTwo":"B","rowThree":"C"} <class 'str'> ''' dict_Detail = json.loads(str_Detail) print(dict_Detail, type(dict_Detail)) ''' {'rowOne': 'A', 'rowTwo': 'B', 'rowThree': 'C'} <class 'dict'> '''
python字符串转字典
【推广】
免费学中医,健康全家人
原文地址:https://www.cnblogs.com/nicole-zhang/p/14817239.html