{"categories":["Python"],"published":"2017-02-22 20:30:00","height":"190","url":"https://nfnoface.hatenablog.com/entry/2017/02/22/203000","author_name":"nfnoface","author_url":"https://blog.hatena.ne.jp/nfnoface/","blog_url":"https://nfnoface.hatenablog.com/","type":"rich","blog_title":"Web\u30d7\u30ed\u30b0\u30e9\u30e0\u306e\u6280\u8853\u30e1\u30e2\u4ed6","title":"Python 3.5.1 \u3067\u6587\u5b57\u30b3\u30fc\u30c9\u6307\u5b9a\u3057\u3066\u30c6\u30ad\u30b9\u30c8\u30d5\u30a1\u30a4\u30eb\u3092\u8aad\u307f\u8fbc\u3093\u3060\u969b\u306e\u30e1\u30e2","provider_url":"https://hatena.blog","image_url":null,"width":"100%","description":"codecs \u3092\u4f7f\u3046\u3068\u826f\u3044\u69d8\u5b50 # -*- conding: utf-8 -*- import codecs import os file = '.{}UTF8.txt'.format(os.path.sep) f = codecs.open(file, 'r', 'utf-8') for lineno, line in enumerate(f, start=1): print(lineno, ':', line.rstrip()) f.close() \u307e\u305f\u306f # -*- conding: utf-8 -*- import codecs import os file = '.{}UTF8.tx\u2026","provider_name":"Hatena Blog","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fnfnoface.hatenablog.com%2Fentry%2F2017%2F02%2F22%2F203000\" title=\"Python 3.5.1 \u3067\u6587\u5b57\u30b3\u30fc\u30c9\u6307\u5b9a\u3057\u3066\u30c6\u30ad\u30b9\u30c8\u30d5\u30a1\u30a4\u30eb\u3092\u8aad\u307f\u8fbc\u3093\u3060\u969b\u306e\u30e1\u30e2 - Web\u30d7\u30ed\u30b0\u30e9\u30e0\u306e\u6280\u8853\u30e1\u30e2\u4ed6\" 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"}