“[global] spys = richard.sorge@cccp.gov, mata.hari@deutschland.gov 答えはカンマで区切ってスペースを取り除くことです。 SPYS = [e.strip() for e in parser.get('global', 'spys').split(',')]”

reboot_inreboot_in のブックマーク 2017/08/06 13:11

その他

このブックマークにはスターがありません。
最初のスターをつけてみよう!

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...

    \ コメントが サクサク読める アプリです /

    • App Storeからダウンロード
    • Google Playで手に入れよう