{"html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fhayataka2049.hatenablog.jp%2Fentry%2F2018%2F04%2F24%2F002524\" title=\"\u3010python\u3011\u8f9e\u66f8\u3067\u540c\u3058\u30ad\u30fc\u306b\u8907\u6570\u306e\u5024\u3092\u767b\u9332\u3059\u308b - \u9759\u304b\u306a\u308b\u540d\u8f9e\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","blog_url":"https://hayataka2049.hatenablog.jp/","height":"190","image_url":null,"version":"1.0","title":"\u3010python\u3011\u8f9e\u66f8\u3067\u540c\u3058\u30ad\u30fc\u306b\u8907\u6570\u306e\u5024\u3092\u767b\u9332\u3059\u308b","provider_name":"Hatena Blog","categories":["python","Tips","collections","\u521d\u5fc3\u8005\u5411\u3051"],"url":"https://hayataka2049.hatenablog.jp/entry/2018/04/24/002524","published":"2018-04-24 00:25:24","type":"rich","author_name":"hayataka2049","blog_title":"\u9759\u304b\u306a\u308b\u540d\u8f9e","author_url":"https://blog.hatena.ne.jp/hayataka2049/","provider_url":"https://hatena.blog","width":"100%","description":"\u3061\u3087\u3063\u3068\u3057\u305fTips\u3002 \u8f9e\u66f8\uff08dict\uff09\u306f\u901a\u5e38\u3001\u4e00\u3064\u306e\u30ad\u30fc\u306b\u306f\u4e00\u3064\u306e\u5024\u3057\u304b\u767b\u9332\u3067\u304d\u306a\u3044\u3002\u4ee3\u5165\u3057\u3066\u3082\u4e0a\u66f8\u304d\u3055\u308c\u308b\u3002 >>> d = {} >>> d[\"hoge\"] = 1 >>> d {'hoge': 1} >>> d[\"hoge\"] = 2 >>> d {'hoge': 2} \u3053\u3046\u3044\u3046\u3068\u304d\u3069\u3046\u3059\u308c\u3070\u826f\u3044\u306e\u304b\u3068\u3044\u3046\u3068\u3001\u5024\u3092\u30ea\u30b9\u30c8\u7b49\u306b\u3057\u3066\u304a\u3044\u3066\u3001\u305d\u306e\u30ea\u30b9\u30c8\u306bappend\u3057\u3066\u3044\u3051\u3070\u826f\u3044\u3002\u3069\u306e\u3088\u3046\u306b\u4f7f\u3044\u305f\u3044\u304b\u306b\u3082\u3088\u308b\u306e\u3060\u304c\u3001\u5927\u62b5\u306f\u3053\u308c\u3067\u7528\u304c\u6e08\u3080\u3002\u30b9\u30dd\u30f3\u30b5\u30fc\u30ea\u30f3\u30af defaultdict\u3092\u4f7f\u3046\u3068\u9762\u5012\u306a\u521d\u671f\u5316\u51e6\u7406\u304c\u7701\u3051\u3066\u4fbf\u5229\u3002 >>> from collections import defaultdic\u2026"}