{"image_url":null,"author_url":"https://blog.hatena.ne.jp/tanakahda/","type":"rich","provider_name":"Hatena Blog","blog_url":"https://tanakahda.hateblo.jp/","url":"https://tanakahda.hateblo.jp/entry/2021/10/16/184611","author_name":"tanakahda","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftanakahda.hateblo.jp%2Fentry%2F2021%2F10%2F16%2F184611\" title=\"\u30d5\u30a3\u30dc\u30ca\u30c3\u30c1\u6570\u5217@Python - tanakahda\u306e\u30d7\u30ed\u30b0\u30e9\u30de\u624b\u5e33\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","title":"\u30d5\u30a3\u30dc\u30ca\u30c3\u30c1\u6570\u5217@Python","height":"190","published":"2021-10-16 18:46:11","blog_title":"tanakahda\u306e\u30d7\u30ed\u30b0\u30e9\u30de\u624b\u5e33","categories":["Python"],"version":"1.0","width":"100%","description":"\"\"\" \u30d5\u30a3\u30dc\u30ca\u30c3\u30c1\u7d1a\u6570\u3092\u4efb\u610f\u306e\u4e0a\u9650\u307e\u3067\u66f8\u304d\u51fa\u3059\u95a2\u6570 n\u307e\u3067\u306e\u30d5\u30a3\u30dc\u30ca\u30c3\u30c1\u7d1a\u6570\u3092\u8868\u793a\u3059\u308b \"\"\" def fib(n): a, b = 0, 1 while a < n: print(a, end=',') a, b = b, a + b fib(2000) 0,1,1,2,3,5,8,13,21,34,55,89,144,233,377,610,987,1597, \u53c2\u8003\u6587\u732e\u30fb\u5f15\u7528\uff1aPython\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb O'REILLY \u591a\u91cd\u4ee3\u5165 a, b = 0, 1 \u5909\u6570a\u3068b\u306b\u30011\u30680\u304c\u4ee3\u5165\u3055\u308c\u308b \u30ad\u30fc\u30ef\u30fc\u30c9\u5f15\u6570end print(a, end=',') \u30ad\u30fc\u30ef\u30fc\u30c9\u5f15\u6570end\u306f\u3001\u51fa\u529b\u672b\u5c3e\u306e\u6539\u884c\u306e\u5236\u2026","provider_url":"https://hatena.blog"}