{"published":"2012-11-09 00:00:00","blog_title":"\u307f\u30fc\u306e\u307a\u30fc\u3058","url":"https://pc.atsuhiro-me.net/entry/2012/11/09/000000","width":"100%","title":"Python3 \u307e\u3068\u3081","provider_name":"Hatena Blog","blog_url":"https://pc.atsuhiro-me.net/","image_url":null,"author_name":"atsuhiro-me","categories":["Python"],"author_url":"https://blog.hatena.ne.jp/atsuhiro-me/","type":"rich","provider_url":"https://hatena.blog","description":"\u6587\u5b57\u5217 String\u578b\u3068bytes\u578b\u304c\u3042\u308b\u3002 String\u578b\u306f\u6587\u5b57\u30b3\u30fc\u30c9\u306b\u95a2\u4fc2\u306a\u3044\u306e\u3067\u3001\u30d7\u30ed\u30b0\u30e9\u30e0\u306e\u4e2d\u3067\u306f\u3001\u6587\u5b57\u5217\u306fString\u578b\u3092\u7528\u3044\u308b\u3079\u304d\u3067\u3042\u308b\u3002 String\u578b\u3068bytes\u578b\u306e\u5909\u63db\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u3059\u308b\u3002 # python3.3 >>> m=\"\u307f\u30fc\u306e\u307a\u30fc\u3058\" >>> m \"\u307f\u30fc\u306e\u307a\u30fc\u3058\" >>> b=bytes(m,\"shift-jis\") >>> b b\"\\x82\\xdd\\x81[\\x82\\xcc\\x82\\xd8\\x81[\\x82\\xb6\" >>> n=str(b,\"shift-jis\") >>> n \"\u307f\u30fc\u306e\u307a\u30fc\u3058\" quopri (quoted-printable transport \u2026","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fpc.atsuhiro-me.net%2Fentry%2F2012%2F11%2F09%2F000000\" title=\"Python3 \u307e\u3068\u3081 - \u307f\u30fc\u306e\u307a\u30fc\u3058\" 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","height":"190"}