The typical ConfigParser generated file looks like: [Section] bar=foo [Section 2] bar2= baz Now, is there a way to index lists like, for instance: [Section 3] barList={ item1, item2 } Related question: Python’s ConfigParser unique keys per section
“[global] spys = richard.sorge@cccp.gov, mata.hari@deutschland.gov 答えはカンマで区切ってスペースを取り除くことです。 SPYS = [e.strip() for e in parser.get('global', 'spys').split(',')]”