{"published":"2013-05-01 00:33:04","author_url":"https://blog.hatena.ne.jp/yuheiomori0718/","provider_name":"Hatena Blog","description":"d = {\"a\": 1, \"b\": 2, \"c\": 3} print {k: d[k] for k in ('a', 'b', 'd') if k in d} # {'a': 1, 'b': 2} print d # {'a': 1, 'c': 3, 'b': 2} \u53c2\u8003 : best way to extract subset of key-value pairs from python dictionary object - Stack Overflow","title":"\u8f9e\u66f8\u306e\u30b5\u30d6\u30bb\u30c3\u30c8\u3092\u53d6\u5f97\u3059\u308b","version":"1.0","author_name":"yuheiomori0718","height":"190","blog_title":"\u30e1\u30e2\u7f6e\u304d\u5834","image_url":null,"url":"https://y0m0r.hateblo.jp/entry/20130501/1367422384","type":"rich","provider_url":"https://hatena.blog","width":"100%","categories":["python"],"blog_url":"https://y0m0r.hateblo.jp/","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fy0m0r.hateblo.jp%2Fentry%2F20130501%2F1367422384\" title=\"\u8f9e\u66f8\u306e\u30b5\u30d6\u30bb\u30c3\u30c8\u3092\u53d6\u5f97\u3059\u308b - \u30e1\u30e2\u7f6e\u304d\u5834\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>"}