📜  如何使用 python 创建文本文件并存储字典 - Python 代码示例

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

代码示例1
import json

Dict = {'Dict': Dict}

with open('file.txt', 'w') as file:
     file.write(json.dumps(Dict))