Save a dictionary to a file (alternative to pickle) in Python?

后端 未结 6 1090
忘掉有多难
忘掉有多难 2020-12-12 12:41

Answered I ended up going with pickle at the end anyway

Ok so with some advice on another question I asked I was told to use pickle to save a dictio

6条回答
  •  天命终不由人
    2020-12-12 13:15

    The YAML format (via pyyaml) might be a good option for you:

    http://en.wikipedia.org/wiki/Yaml

    http://pypi.python.org/pypi/PyYAML

提交回复
热议问题