Python: How would you save a simple settings/config file?

后端 未结 6 778
迷失自我
迷失自我 2020-12-04 04:52

I don\'t care if it\'s JSON, pickle, YAML, or whatever.

All other implementations I have seen are not forwards compatible, so

6条回答
  •  醉梦人生
    2020-12-04 05:49

    Save and load a dictionary. You will have arbitrary keys, values and arbitrary number of key, values pairs.

提交回复
热议问题