{"author_url":"https://blog.hatena.ne.jp/takuya_1st/","width":"100%","height":"190","author_name":"takuya_1st","categories":["Python"],"blog_title":"\u305d\u308c\u30de\u30b0\u3067\uff01","url":"https://takuya-1st.hatenablog.jp/entry/20061017/1161094543","image_url":null,"provider_url":"https://hatena.blog","title":"Generator \u95a2\u6570","published":"2006-10-17 23:15:43","provider_name":"Hatena Blog","version":"1.0","type":"rich","blog_url":"https://takuya-1st.hatenablog.jp/","description":"\u306a\u3093\u304b\u3001\u3054\u3063\u3064\u3044\u306a\u307e\u3048\u304c\u3064\u3044\u3066\u308b\u3051\u3069\u3001 for x in A \u3084 while( some.hasNext() ) \u306e\u5f62\u5f0f\u3060\u3051\u3067\u306f\u8db3\u308a\u306a\u3044\u306e\u3067\u3001C\u3084Java\u3067\u51fa\u6765\u308b\u3001while( (x = r.readLine() ) ) \u304c\u4f7f\u3048\u308b\u3088\u3046\u306b\u3059\u308b\u3063\u3066\u3053\u3068\u306e\u3088\u3046\u3060\u3002 def gen( obj ): x = \" \" while( x != None ): x = obj.readline() yield x #return \u306e\u4ee3\u308f\u308a\u306b yield\u3092\u3064\u304b\u3046Java \u3084 C \u3067while \u306e\u4e2d\u306b\u57cb\u3081\u8fbc\u3080\u51e6\u7406\u3092Python\u3067\u306f\u95a2\u6570\u3067\u5b9a\u7fa9\u3057\u3066\u304a\u3051\u3070\u4f7f\u3044\u56de\u3057\u3067\u304d\u308b\u3057\u3001\u3061\u3087\u3063\u3068\u8907\u96d1\u306a\u3053\u3068\u304c\u51fa\u6765\u308b\u304b\u3089\u4fbf\u5229\u3088\u306d\u3063\u3066\u3053\u3068\u2026","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftakuya-1st.hatenablog.jp%2Fentry%2F20061017%2F1161094543\" title=\"Generator \u95a2\u6570 - \u305d\u308c\u30de\u30b0\u3067\uff01\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>"}