How do I serialize a Python dictionary into a string, and then back to a dictionary?

前端 未结 8 1031
我在风中等你
我在风中等你 2020-11-29 20:46

How do I serialize a Python dictionary into a string, and then back to a dictionary? The dictionary will have lists and other dictionaries inside it.

8条回答
  •  春和景丽
    2020-11-29 21:24

    Use Python's json module, or simplejson if you don't have python 2.6 or higher.

提交回复
热议问题