python字符串转字典
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'> '''
本文来自博客园,作者:OTAKU_nicole,转载请注明原文链接:https://www.cnblogs.com/nicole-zhang/p/14817239.html