f=open(“notebook.json”,“w”,encoding=‘utf-8’)
json.dump(book,f,ensure_ascii=False)
python json dump时,中文乱码问题
最新推荐文章于 2024-07-12 17:02:00 发布
f=open(“notebook.json”,“w”,encoding=‘utf-8’)
json.dump(book,f,ensure_ascii=False)