python str转json

import json
pachong='[{"article_id":"1","detail_url":"https://baijiahao.baidu.com/s?id=1756403687942197303&wfr=spider&for=pc"}]'
pachong=json.loads(pachong)
str_data_to_zh = pachong.encode('utf-8').decode('unicode_escape')#转码
print(str_data_to_zh)

你可能感兴趣的:(python实战,python)