{"image_url":null,"width":"100%","type":"rich","description":"\u307e\u305f\u6628\u65e5\u306e\u7d9a\u304d\u3067\u3059\u3002 Generators \u30a4\u30c6\u30ec\u30fc\u30bf\u95a2\u9023\u306e\u8a71\u984c\u304c\u7d9a\u304d\u307e\u3059\u3002yield\u6587\u3067\u3059\u3002Java\u3067\u306fThread.yield()\u3068\u3057\u3066\u5229\u7528\u3059\u308b\u306e\u3067\u3059\u304c\u3001\u5168\u7136\u610f\u5473\u304c\u9055\u3044\u307e\u3059\u3002C#\u306eyield\u6587\u3068\u540c\u3058\u3067\u3059\u3002\u30eb\u30fc\u30d7\u306a\u3069\u306e\u4e2d\u3067\u5229\u7528\u3059\u308b\u3068\u51e6\u7406\u306e\u9014\u4e2d\u3067return\u3059\u308b\u3053\u3068\u304c\u51fa\u6765\u3001\u304b\u3064\u51e6\u7406\u3092\u305d\u3053\u304b\u3089\u518d\u958b\u3055\u305b\u308b\u3053\u3068\u304c\u51fa\u6765\u308b\u306e\u3067\u3059\u3002\u307e\u3055\u3057\u304f\u30a4\u30c6\u30ec\u30fc\u30bf\u306e\u52d5\u304d\u3067\u3059\u3088\u306d\u3002yield\u6587\u3092\u4f7f\u3063\u305f\u30a4\u30c6\u30ec\u30fc\u30bf\u306e\u3053\u3068\u3092Generator\u3068\u3044\u3044\u307e\u3059\u3002 >>> def reverse(data): ... for index in range(len(data) - 1, -1, -1): ... yield data[in\u2026","blog_title":"Yohpapa\u2019s note","blog_url":"https://yohpapa.hatenadiary.org/","author_url":"https://blog.hatena.ne.jp/yohpapa/","version":"1.0","published":"2011-08-19 06:55:39","url":"https://yohpapa.hatenadiary.org/entry/20110819/1313704539","provider_url":"https://hatena.blog","title":" Classes","categories":["Python"],"author_name":"yohpapa","height":"190","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fyohpapa.hatenadiary.org%2Fentry%2F20110819%2F1313704539\" title=\" Classes - Yohpapa\u2019s note\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","provider_name":"Hatena Blog"}