Lists in ConfigParser

后端 未结 15 2032
清酒与你
清酒与你 2020-11-27 09:38

The typical ConfigParser generated file looks like:

[Section]
bar=foo
[Section 2]
bar2= baz

Now, is there a way to index lists like, for in

15条回答
  •  甜味超标
    2020-11-27 10:01

    Only primitive types are supported for serialization by config parser. I would use JSON or YAML for that kind of requirement.

提交回复
热议问题