{"url":"https://pod.hatenablog.com/entry/2017/11/22/215017","height":"190","width":"100%","image_url":null,"author_url":"https://blog.hatena.ne.jp/podhmo/","title":"csv\u306eheader\u3092\u6c17\u306b\u3057\u3066OrderedDict\u3067\u8aad\u3080\u65b9\u6cd5","categories":["python","csv"],"description":"\u554f\u984c \u4f8b\u3048\u3070\u4ee5\u4e0b\u306e\u3088\u3046\u306acsv\u304c\u3042\u308b\u3068\u304d\u306b\u3001\u8aad\u307f\u8fbc\u3093\u3060\u5f8c\u306bcsv\u306eheader\u306e\u9806\u5e8f\u3092\u4fdd\u6301\u3057\u3066\u307b\u3057\u3044\u3068\u3044\u3046\u5834\u5408\u304c\u3042\u308b\u3002 \"age\" \"name\" \"20\" \"foo\" \u30ab\u30b8\u30e5\u30a2\u30eb\u306b\u4ee5\u4e0b\u306e\u69d8\u306a\u30b3\u30fc\u30c9\u3067\u8aad\u3093\u3060\u5834\u5408\u306b\u9806\u5e8f\u306f\u4e0d\u5b9a\u3002 import csv import sys r = csv.DictReader(sys.stdin, delimiter=\"\\t\") print(list(r)) \u9806\u5e8f\u306f\u4e0d\u5b9a\u3002 [{'name': 'foo', 'age': '20'}] [{'name': 'foo', 'age': '20'}] [{'age': '20', 'name': 'foo'}] \u5bfe\u5fdc\u65b9\u6cd5 \u2026","blog_url":"https://pod.hatenablog.com/","version":"1.0","blog_title":"podhmo's diary","author_name":"podhmo","published":"2017-11-22 21:50:17","provider_url":"https://hatena.blog","type":"rich","provider_name":"Hatena Blog","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fpod.hatenablog.com%2Fentry%2F2017%2F11%2F22%2F215017\" title=\"csv\u306eheader\u3092\u6c17\u306b\u3057\u3066OrderedDict\u3067\u8aad\u3080\u65b9\u6cd5 - podhmo&#39;s diary\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>"}