{"width":"100%","provider_name":"Hatena Blog","blog_title":"hatappi.blog","image_url":null,"html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fhatappi.blog%2Fentry%2F2017%2F07%2F14%2F165626\" title=\"Python\u306e\u30c7\u30a3\u30af\u30b7\u30e7\u30ca\u30ea\u3067Key Error\u3092\u51fa\u3055\u306a\u3044 - hatappi.blog\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","categories":[],"published":"2017-07-14 16:56:26","title":"Python\u306e\u30c7\u30a3\u30af\u30b7\u30e7\u30ca\u30ea\u3067Key Error\u3092\u51fa\u3055\u306a\u3044","blog_url":"https://hatappi.blog/","description":"Ruby\u8133\u3067Python\u66f8\u3044\u3066\u305f\u6642\u306b\u4e0b\u8a18\u306e\u58c1\u306b\u3042\u305f\u3063\u305f \u203b Python\u306f2.7.10\u3092\u4f7f\u3063\u3066\u3044\u308b Ruby\u306e\u6642 > hash = { a: 'a!' } # => {:a=>\"a!\"} > hash[:a] # => \"a!\" > hash[:b] # => nil Python\u306e\u6642 >>> dict = { 'a': 'a!' } >>> dict['a'] 'a!' >>> dict['b'] Traceback (most recent call last): File \"<stdin>\", line 1, in <module> KeyError: 'b' \u306a\u308b\u307b\u3069\u3002\u53c2\u7167\u3057\u306a\u3044Key\u2026","author_url":"https://blog.hatena.ne.jp/hatappi1225/","version":"1.0","height":"190","type":"rich","provider_url":"https://hatena.blog","author_name":"hatappi1225","url":"https://hatappi.blog/entry/2017/07/14/165626"}