使用demjson解析unicod

import demjson
s = """
{'weibo_account': '{"province":"\\u65b0\\u7586","city":"\\u5854\\u57ce","gender":"\\u7537"}'}
"""
# b =s.encode('ascii').decode('unicode_escape')
# print(b)
s1 = demjson.decode(s)
s2 = demjson.decode(s1.get("system_weibo_account"))

posted on 2020-02-13 14:12  action555  阅读(248)  评论(0编辑  收藏  举报