{"published":"2010-04-05 00:00:00","provider_name":"Hatena Blog","image_url":null,"version":"1.0","author_name":"atsuoishimoto","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fatsuoishimoto.hatenablog.com%2Fentry%2F20100405\" title=\" - 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>","categories":[],"width":"100%","author_url":"https://blog.hatena.ne.jp/atsuoishimoto/","title":"","blog_url":"https://atsuoishimoto.hatenablog.com/","url":"https://atsuoishimoto.hatenablog.com/entry/20100405","height":"190","description":"Python \u3067\u6b21\u306e\u6708\u3092\u6c42\u3081\u3088\u3046\u3068\u3057\u305f\u3089\u30e1\u30f3\u30c9\u305d\u3046\u306a\u306e\u3067 Ruby \u306b\u3057\u305f Python\u3067\u79c1\u304c\u5e38\u7528\u3059\u308b\u30a4\u30c7\u30a3\u30aa\u30e0\u3060\u3068 import datetime start = datetime.date(2005, 1, 1) while True: text = start.strftime('%Y%m') print text start = (start+datetime.timedelta(days=31)).replace(day=1) if text == '201004': break \u304b\u306a\uff1f\u307e\u3042\u3001\u9762\u5012\u3002calendar\u30e2\u30b8\u30e5\u30fc\u30eb\u3042\u305f\u308a\u306b\u3082\u3046\u3061\u3087\u3063\u3068\u4fbf\u5229\u306a\u95a2\u6570\u304c\u3042\u3063\u3066\u3082\u826f\u3044\u3068\u601d\u3046\u3002","provider_url":"https://hatena.blog","blog_title":"atsuoishimoto's diary","type":"rich"}