{"width":"100%","title":"Python\u306efileinput\u3092Go\u3067\u5b9f\u88c5\u3057\u3066\u307f\u305f","categories":["Python","Go"],"author_url":"https://blog.hatena.ne.jp/doloopwhile/","blog_url":"https://doloopwhile.hatenablog.com/","published":"2015-05-02 19:10:44","provider_name":"Hatena Blog","provider_url":"https://hatena.blog","version":"1.0","height":"190","url":"https://doloopwhile.hatenablog.com/entry/2015/05/02/191044","image_url":null,"description":"Python\u306e\u25cb\u25cb\u3092Go\u3067\u5b9f\u88c5\u3057\u3066\u307f\u305f\u30b7\u30ea\u30fc\u30ba fileinput\u306f\u3001\u884c\u5358\u4f4d\u3067\u51e6\u7406\u3092\u884c\u3046\u30b3\u30de\u30f3\u30c9\uff08\u7279\u306bUNIX\u30d5\u30a3\u30eb\u30bf\uff09\u3092\u4f5c\u308b\u3068\u304d\u306a\u3069\u306b\u4fbf\u5229\u306a\u30e9\u30a4\u30d6\u30e9\u30ea\u3002 import fileinput for line in fileinput.input(): process(line) \u30b3\u30de\u30f3\u30c9\u30e9\u30a4\u30f3\u5f15\u6570\u3067\u4e0e\u3048\u3089\u308c\u305f\u30d5\u30a1\u30a4\u30eb\u306e\u884c\u306b\u9806\u756a\u306b\u30a2\u30af\u30bb\u30b9 \u5f15\u6570\u304c\u7a7a\u306e\u5834\u5408\u306f\u6a19\u6e96\u51fa\u529b\u306e\u884c\u306b\u30a2\u30af\u30bb\u30b9 \u30d5\u30a1\u30a4\u30eb\u540d\u3068\u3057\u3066 '-' \u304c\u4e0e\u3048\u3089\u308c\u305f\u3068\u304d\u3082\u6a19\u6e96\u51fa\u529b\u306e\u884c\u306b\u30a2\u30af\u30bb\u30b9 doloopwhile/go-fileinputgithub.com \u4f7f\u7528\u4f8b sc := fileinput.Lines(os.Args[1:]) fo\u2026","author_name":"doloopwhile","type":"rich","blog_title":"None is None is None","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fdoloopwhile.hatenablog.com%2Fentry%2F2015%2F05%2F02%2F191044\" title=\"Python\u306efileinput\u3092Go\u3067\u5b9f\u88c5\u3057\u3066\u307f\u305f - None is None is None\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>"}