{"blog_url":"https://mzp.hatenadiary.org/","categories":["Python","30\u5206\u30d7\u30ed\u30b0\u30e9\u30e0"],"author_url":"https://blog.hatena.ne.jp/mzp/","url":"https://mzp.hatenadiary.org/entry/20080224/ini","provider_url":"https://hatena.blog","author_name":"mzp","published":"2008-02-24 00:00:00","version":"1.0","title":"Python\u3067INI\u30d5\u30a1\u30a4\u30eb\u3092","height":"190","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmzp.hatenadiary.org%2Fentry%2F20080224%2Fini\" title=\"Python\u3067INI\u30d5\u30a1\u30a4\u30eb\u3092 - \u307f\u305a\u3074\u30fc\u65e5\u8a18\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","image_url":null,"width":"100%","type":"rich","provider_name":"Hatena Blog","blog_title":"\u307f\u305a\u3074\u30fc\u65e5\u8a18","description":"30\u5206\u30d7\u30ed\u30b0\u30e9\u30e0\u3001\u305d\u306e253\u3002Python\u3067INI\u30d5\u30a1\u30a4\u30eb\u3092\u8aad\u3093\u3067\u307f\u308b\u3002 ConfigParser\u3092\u4f7f\u3048\u3070\u697d\u30c1\u30f3\u3002\u30b3\u30e1\u30f3\u30c8\u3084\u5909\u6570\u3082\u4f7f\u3048\u308b\u304b\u3089\u3001\u81ea\u524d\u3067\u4f5c\u308b\u3088\u308a\u305a\u3063\u3068\u3044\u3044\u3002\u3067\u3082\u3001\u6700\u8fd1\u306fYAML\u3068\u304b\u306e\u307b\u3046\u304c\u6d41\u884c\u308a\u3060\u308d\u3046\u306a\u3041\u3002 >>> import ConfigParser >>> config = ConfigParser.RawConfigParser() >>> config.read(['config.ini']) ['config.ini'] >>> config.get('global','date-format') '%Y-%m-%d' INI\u30d5\u30a1\u30a4\u30eb\u3092\u8aad\u3080\u3060\u3051\u3058\u3083\u3064\u307e\u3089\u304b\u306a\u3063\u305f\u306e\u3067\u3001\u8a2d\u2026"}