{"type":"rich","width":"100%","blog_title":"methane\u306e\u30d6\u30ed\u30b0","title":" Python 3 \u306e\u6a19\u6e96\u5165\u51fa\u529b\u306e\u30a8\u30f3\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0","provider_url":"https://hatena.blog","author_name":"methane","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmethane.hatenablog.jp%2Fentry%2F20120806%2F1344269400\" title=\" Python 3 \u306e\u6a19\u6e96\u5165\u51fa\u529b\u306e\u30a8\u30f3\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0 - methane\u306e\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>","image_url":null,"blog_url":"https://methane.hatenablog.jp/","author_url":"https://blog.hatena.ne.jp/methane/","published":"2012-08-06 01:10:00","description":"404 Blog Not Found:\u5099\u5fd8\u9332 - #python3 \u3067 sys.std(in|out|err) \u306e encoding \u3092\u5f37\u5236\u3059\u308b \u3068\u3044\u3046\u308f\u3051\u3067\u3053\u3046\u306a\u308a\u307e\u3057\u305f\u3002 import sys sys.stdin = open('/dev/stdin', 'r', encoding='UTF-8') ... \u7121\u7406\u77e2\u7406\u958b\u304d\u76f4\u3059\u306a\u3093\u3066\u305a\u3044\u3076\u3093\u3068\u4e71\u66b4\u3060\u3068\u79c1\u3082\u601d\u3046\u306e\u3067\u3059\u304c\u3001 \u3053\u3046\u3044\u3046\u5f37\u5f15\u306a\u65b9\u6cd5\u304c\u3061\u3083\u3093\u3068\u52d5\u304f\u306e\u304cLL\u306e\u3044\u3044\u3068\u3053\u308d\u3067\u3059\u306d\u3002 /dev/stdin \u3060\u3068Windows\u3067\u306f\u52d5\u304b\u306a\u3044\u306e\u3067\u3001 open(sys.stdin.fileno(), ...) \u304c\u3044\u3044\u3068\u601d\u3044\u307e\u3059\u3002 \u3050\u3050\u308c\u3069\u63a2\u305b\u3069\u3053\u308c\u3057\u304b\u89e3\u2026","categories":[],"provider_name":"Hatena Blog","height":"190","version":"1.0","url":"https://methane.hatenablog.jp/entry/20120806/1344269400"}