{"image_url":"http://f.hatena.ne.jp/images/fotolife/i/itouhiro/20080902/20080902172316.gif","width":"100%","provider_url":"https://hatena.blog","published":"2011-06-30 00:00:00","type":"rich","version":"1.0","author_url":"https://blog.hatena.ne.jp/itouhiro/","url":"https://itouhiro.hatenablog.com/entry/20110630","author_name":"itouhiro","categories":["Python"],"title":"Python2.5\u3092\u5b66\u3076(2) \u30d5\u30a1\u30a4\u30eb\u5165\u51fa\u529b","description":"\u30d5\u30a1\u30a4\u30eb\u8aad\u307f\u66f8\u304d\u3092\u5b66\u307c\u3046\u3002\u4ee5\u4e0b\u306e\u30b5\u30f3\u30d7\u30eb\u306f\u3059\u3079\u3066python 2.5\u5bfe\u5fdc\u3067\u3001python3\u306b\u306f\u5bfe\u5fdc\u3057\u3066\u306a\u3044\u3002 \u307e\u305a\u524d\u56de\u3082\u793a\u3057\u305f\u30d5\u30a1\u30a4\u30eb\u306e\u66f8\u304d\u51fa\u3057\u65b9 # -*- coding:utf-8 -*- text_ucs = u\"\u3042\u3044\u3046\u30a6\u30a7\u30d6ABC\u8a00\u8a9e\\n\" f = open('a.txt', 'wb') f.write(text_ucs.encode('utf-8')) f.close() \u3053\u308c\u3092\u5b9f\u884c\u3059\u308b\u3068\u3001a.txt \u304c\u751f\u6210\u3055\u308c\u308b\u3002\u4e2d\u8eab\u306f UTF-8\u306e\u6587\u5b57\u30b3\u30fc\u30c9\u3002 \u6b21\u306b\u3053\u308c\u3092\u8aad\u307f\u8fbc\u3080\u3002 # -*- coding:utf-8 -*- from types import * import re # \u30d5\u30a1\u2026","blog_title":"itouhiro\u306f\u3066\u306a\u30d6\u30ed\u30b0","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fitouhiro.hatenablog.com%2Fentry%2F20110630\" title=\"Python2.5\u3092\u5b66\u3076(2) \u30d5\u30a1\u30a4\u30eb\u5165\u51fa\u529b - itouhiro\u306f\u3066\u306a\u30d6\u30ed\u30b0\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","height":"190","provider_name":"Hatena Blog","blog_url":"https://itouhiro.hatenablog.com/"}