📜  读取dict txt python代码示例

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

代码示例3
>>> import json
>>> d = {"one":1, "two":2}
>>> json.dump(d, open("text.txt",'w'))