“[global] spys = richard.sorge@cccp.gov, mata.hari@deutschland.gov 答えはカンマで区切ってスペースを取り除くことです。 SPYS = [e.strip() for e in parser.get('global', 'spys').split(',')]”
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 quest...
“[global] spys = richard.sorge@cccp.gov, mata.hari@deutschland.gov 答えはカンマで区切ってスペースを取り除くことです。 SPYS = [e.strip() for e in parser.get('global', 'spys').split(',')]”
このブックマークにはスターがありません。
最初のスターをつけてみよう!
Lists in ConfigParser
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 quest...
3 人がブックマーク・0 件のコメント
\ コメントが サクサク読める アプリです /