写入文件编码问题(json)

json.dumps(content,ensure_ascii=False)

 

with open('1.txt','a',encoding='utf-8') as f
posted @ 2017-12-02 22:40  不可叽叽歪歪  阅读(167)  评论(0编辑  收藏  举报