{"categories":["Python"],"author_name":"CortYuming","blog_url":"https://cortyuming.hateblo.jp/","description":"(python2.7.13) \u30b3\u30fc\u30c9 \u5b9f\u884c\u7d50\u679c \u539f\u56e0 \u30b3\u30fc\u30c9 def hoge(fuga): return { 'hoge': '{}'.format(fuga) }, print hoge('FUGA').items() \u5b9f\u884c\u7d50\u679c AttributeError: 'tuple' object has no attribute 'items' \u539f\u56e0 \u623b\u308a\u5024\u306e\u3068\u3053\u308d\u6700\u5f8c\u306b\u9593\u9055\u3063\u3066\u30ab\u30f3\u30de\u5165\u3063\u3061\u3083\u3063\u3066\u30bf\u30d7\u30eb\u306b\u306a\u3063\u3066\u3044\u308b... \u8aa4 return {...}, \u6b63 return {...} \u30ab\u30f3\u30de\u53d6\u3063\u3066\u5b9f\u884c\u3059\u308c\u3070\u6b63\u5e38\u306b\u7d50\u679c\u304c\u53d6\u308c\u308b [('hoge', 'FUGA')]","image_url":null,"provider_url":"https://hatena.blog","height":"190","width":"100%","published":"2017-12-26 12:29:30","type":"rich","title":"Python \u3067\u300eAttributeError: 'tuple' object has no attribute 'items'\u300f\u3068\u304b\u306a\u3063\u305f\u5834\u5408\u306e\u30e1\u30e2","author_url":"https://blog.hatena.ne.jp/CortYuming/","url":"https://cortyuming.hateblo.jp/entry/2017/12/26/122930","blog_title":"\u724c\u8a9e\u5099\u5fd8\u9332 -pygo","provider_name":"Hatena Blog","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fcortyuming.hateblo.jp%2Fentry%2F2017%2F12%2F26%2F122930\" title=\"Python \u3067\u300eAttributeError: &#39;tuple&#39; object has no attribute &#39;items&#39;\u300f\u3068\u304b\u306a\u3063\u305f\u5834\u5408\u306e\u30e1\u30e2 - \u724c\u8a9e\u5099\u5fd8\u9332 -pygo\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","version":"1.0"}