python3将unicode转化成中文输出
a = [] with open('douban.json','r') as f: for i in f.readlines(): a.append((i.encode('utf8').decode('unicode_escape')))
技术总结、分享,欢迎交流!
a = [] with open('douban.json','r') as f: for i in f.readlines(): a.append((i.encode('utf8').decode('unicode_escape')))