{"height":"190","url":"https://mzp.hatenadiary.org/entry/20090106/fib","title":"\u9045\u5ef6\u30ea\u30b9\u30c8\u3067\u30d5\u30a3\u30dc\u30ca\u30c3\u30c1\u6570","author_name":"mzp","description":"30\u5206\u30d7\u30ed\u30b0\u30e9\u30e0\u3001\u305d\u306e504\u3002\u4eca\u65e5\u3001\u30df\u30fc\u30c6\u30a3\u30f3\u30b0\u3067\u9045\u5ef6\u30ea\u30b9\u30c8\u306e\u8a71\u3092\u3057\u305f\u306e\u3067\u3001\u9045\u5ef6\u30ea\u30b9\u30c8\u3092\u4f7f\u3063\u3066\u30d5\u30a3\u30dc\u30ca\u30c3\u30c1\u6570\u3092\u66f8\u3044\u3066\u307f\u308b\u3002 \u6700\u521d\u3001 improt itertools def ones(): return itertools.chain([1],ones()) \u3068\u3084\u3063\u305f\u3089\u3001\u3048\u3089\u3044\u76ee\u306b\u3042\u3063\u3066\u3057\u307e\u3063\u305f\u3002 \u3057\u3087\u3046\u304c\u306a\u3044\u306e\u3067\u3001\u4ffachain\u3092\u4f5c\u3063\u3066 def ones(): return chain(lambda: [1],lambda: ones()) \u3068\u66f8\u3051\u308b\u3088\u3046\u306b\u3057\u305f\u3002 \u4f7f\u3044\u65b9 $ python fib.py 1 2 3 5 8 13 21 34 55 89 144 233 \u30bd\u30fc\u30b9\u30b3\u30fc\u30c9 #! /us\u2026","published":"2009-01-06 00:00:01","version":"1.0","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmzp.hatenadiary.org%2Fentry%2F20090106%2Ffib\" title=\"\u9045\u5ef6\u30ea\u30b9\u30c8\u3067\u30d5\u30a3\u30dc\u30ca\u30c3\u30c1\u6570 - \u307f\u305a\u3074\u30fc\u65e5\u8a18\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","categories":["Python","30\u5206\u30d7\u30ed\u30b0\u30e9\u30e0"],"provider_name":"Hatena Blog","author_url":"https://blog.hatena.ne.jp/mzp/","width":"100%","provider_url":"https://hatena.blog","blog_url":"https://mzp.hatenadiary.org/","blog_title":"\u307f\u305a\u3074\u30fc\u65e5\u8a18","image_url":null,"type":"rich"}