{"provider_url":"https://hatena.blog","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fa4dosanddos.hatenablog.com%2Fentry%2F2015%2F08%2F24%2F000757\" title=\"Python \u306e\u304a\u52c9\u5f37\uff11\uff12 ( \u30d5\u30a1\u30a4\u30eb\u306e\u8aad\u307f\u66f8\u304d ) - \u30d7\u30ed\u30b0\u30e9\u30e0\u65e5\u8a18\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","type":"rich","blog_title":"\u30d7\u30ed\u30b0\u30e9\u30e0\u65e5\u8a18","version":"1.0","width":"100%","title":"Python \u306e\u304a\u52c9\u5f37\uff11\uff12 ( \u30d5\u30a1\u30a4\u30eb\u306e\u8aad\u307f\u66f8\u304d )","author_name":"a4dosanddos","provider_name":"Hatena Blog","description":"\u300cPython \u306e\u304a\u52c9\u5f37\u30b7\u30ea\u30fc\u30ba\u300d\u7b2c\uff11\uff12\u56de\u76ee\u306f\u3001\u30d5\u30a1\u30a4\u30eb\u306e\u8aad\u307f\u66f8\u304d\u3092\u884c\u306a\u3046\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\u3092\u66f8\u3044\u3066\u307f\u307e\u3057\u305f\u3002\u307e\u305a\u306f\u3001\u30d5\u30a1\u30a4\u30eb\u306e\u8aad\u307f\u8fbc\u307f\u304b\u3089\u3002\u25a0 fileread.py #coding: cp932 import locale #mode=\"r\" \u3067\u958b\u304f\u3068\u8aad\u307f\u8fbc\u307f ( \u305f\u3060\u3057\u3001\u30c7\u30d5\u30a9\u30eb\u30c8\u306a\u306e\u3067\u7279\u306b\u6307\u5b9a\u306e\u5fc5\u8981\u306f\u306a\u3044 ) def fileread1(): with open(\"test1.txt\") as f: for line in f: print(line, end=\"\") print(line.encode(\"cp932\")) #\u6587\u5b57\u5217\u306e\u30d0\u30a4\u30c8\u5217\u3092\u51fa\u529b def fileread1_1(): f\u2026","url":"https://a4dosanddos.hatenablog.com/entry/2015/08/24/000757","blog_url":"https://a4dosanddos.hatenablog.com/","height":"190","published":"2015-08-24 00:07:57","categories":["python"],"image_url":null,"author_url":"https://blog.hatena.ne.jp/a4dosanddos/"}