相关疑难解决方法(0)

在ConfigParser中列出

典型的ConfigParser生成的文件如下所示:

[Section]
bar=foo
[Section 2]
bar2= baz
Run Code Online (Sandbox Code Playgroud)

现在,有没有办法索引列表,例如:

[Section 3]
barList={
    item1,
    item2
}
Run Code Online (Sandbox Code Playgroud)

相关问题:每个部分Python的ConfigParser唯一键

python configparser

158
推荐指数
10
解决办法
15万
查看次数

标签 统计

configparser ×1

python ×1