{"title":"Python 3.6\u306e\u6982\u8981 (\u305d\u306e3 - async\u95a2\u9023)","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fatsuoishimoto.hatenablog.com%2Fentry%2F2016%2F12%2F25%2F201906\" title=\"Python 3.6\u306e\u6982\u8981 (\u305d\u306e3 - async\u95a2\u9023) - atsuoishimoto&#39;s diary\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","published":"2016-12-25 20:19:06","categories":["python"],"provider_url":"https://hatena.blog","version":"1.0","image_url":null,"author_name":"atsuoishimoto","author_url":"https://blog.hatena.ne.jp/atsuoishimoto/","width":"100%","provider_name":"Hatena Blog","blog_title":"atsuoishimoto's diary","blog_url":"https://atsuoishimoto.hatenablog.com/","height":"190","description":"\u975e\u540c\u671f\u30b8\u30a7\u30cd\u30ec\u30fc\u30bf \u73fe\u5728\u306ePython\u3067\u306f\u3001\u30b8\u30a7\u30cd\u30ec\u30fc\u30bf\u3092\u4f7f\u3063\u3066\u3001\u3068\u3066\u3082\u304a\u624b\u8efd\u306b\u30a4\u30c6\u30ec\u30fc\u30bf\u3092\u4f5c\u6210\u3067\u304d\u308b\u3002\u4f8b\u3048\u3070\u3001\u5947\u6570\u5217\u3092\u751f\u6210\u3059\u308b\u30b8\u30a7\u30cd\u30ec\u30fc\u30bf\u306f\u3001\u6b21\u306e\u3088\u3046\u306b\u66f8\u3051\u308b\u3002 def odds(): i = 1 while True: yield i i += 2 \u3057\u304b\u3057\u3001\u30b8\u30a7\u30cd\u30ec\u30fc\u30bf\u304c\u5b58\u5728\u3057\u306a\u304b\u3063\u305f\u9803\u306ePython\u3067\u306f\u3001\u308f\u3056\u308f\u3056__iter__\u30e1\u30bd\u30c3\u30c9\u306a\u3069\u306e\u7279\u6b8a\u30e1\u30bd\u30c3\u30c9\u3092\u5b9f\u88c5\u3057\u305f\u30af\u30e9\u30b9\u3092\u5b9a\u7fa9\u3057\u3001 class Odds: def __init__(self): self._cur = 1 def __iter__(self): return self def next(self): ret = self.\u2026","type":"rich","url":"https://atsuoishimoto.hatenablog.com/entry/2016/12/25/201906"}