python 解析json文件中的转移字符

# aaa = '''
#        [
#  {"browser_open":"\\"http://www.bilibili.com\\""}
# ]
#        '''
# ttt=   json.load(aaa)


you should use \\ for  escape string to make it work. that is too distruscated. but works!!!!!!!!!!!!!!

json.loads函数就没这么麻烦, 用\即可转移成功.

posted on 2021-04-20 17:06  张博的博客  阅读(154)  评论(0编辑  收藏  举报

导航