📜  使用特殊字符将 dict 写入 json 文件 - Python 代码示例

📅  最后修改于: 2022-03-11 14:45:51.495000             🧑  作者: Mango

代码示例1
with open(filename, 'w', encoding='utf-8') as file:
    json.dump(data, file, ensure_ascii=False)