【发布时间】:2023-01-20 21:47:02
【问题描述】:
如何将 python 中的字典导出到 python 中的 .properties 文件类型?
一个非常简单的可重现的例子,每个人都可以理解
我拥有的:
dict = {"key1":"sentence1", "key2":"sentence2"}
objedt“dict”应该在 python 中保存为 .properties 文件,输出应该如下所示:
key1=sentence1
key2=sentence2
【问题讨论】:
标签: python dictionary properties-file