{"published":"2008-06-28 00:00:00","blog_title":"\u724c\u8a9e\u5099\u5fd8\u9332 -pygo","categories":["Python"],"provider_name":"Hatena Blog","type":"rich","author_name":"CortYuming","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fcortyuming.hateblo.jp%2Fentry%2F20080628%2Fp2\" title=\" Python\u3067\u30ea\u30b9\u30c8\u306e\u6587\u5b57\u5217\u3092map()\u3068lambda\u3092\u4f7f\u3063\u3066\u6587\u5b57\u30b3\u30fc\u30c9\u3092\u5909\u63db\u3057\u3066\u307f\u305f - \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>","provider_url":"https://hatena.blog","blog_url":"https://cortyuming.hateblo.jp/","title":" Python\u3067\u30ea\u30b9\u30c8\u306e\u6587\u5b57\u5217\u3092map()\u3068lambda\u3092\u4f7f\u3063\u3066\u6587\u5b57\u30b3\u30fc\u30c9\u3092\u5909\u63db\u3057\u3066\u307f\u305f","version":"1.0","description":"#!/usr/bin/env python # *-# -*- coding: utf-8 -*- utf8_str_li = [\"\u3042\u3044\u3046\u3048\u304a\",\"\u304b\u304d\u304f\u3051\u3053\"] sjis_str_li = [unicode(s, \"utf8\").encode(\"sjis\") for s in utf8_str_li] print \"\u300csjis\u6587\u5b57\u5217\u300d\uff08\u6587\u5b57\u5316\u3051\u3059\u308b\u306f\u305a\uff09\" print \"\\n\".join(sjis_str_li) sjis_to_utf8_li = map(lambda s:unicode(s, \"sjis\").encode(\"utf8\"), sjis_str_li) print \"\u300cutf\u2026","height":"190","author_url":"https://blog.hatena.ne.jp/CortYuming/","width":"100%","url":"https://cortyuming.hateblo.jp/entry/20080628/p2","image_url":null}