{"width":"100%","author_url":"https://blog.hatena.ne.jp/throwordie/","blog_url":"https://throwordie.hatenadiary.org/","published":"2007-09-14 00:46:39","height":"190","categories":["Python"],"url":"https://throwordie.hatenadiary.org/entry/20070914/1189698399","type":"rich","author_name":"throwordie","blog_title":"Throw or Die and ChouChou","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fthrowordie.hatenadiary.org%2Fentry%2F20070914%2F1189698399\" title=\"Python\u3067\u6708\u9f62\u3068\u5e72\u652f\u306e\u8a08\u7b97 - Throw or Die and ChouChou\" 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","description":"\u008e\u00a9\u008d\u00ec\u008c\u008e\u0097\u00ee\u008cv\u008eZ\u0083\\\u0083t\u0083g \u2191\u3053\u3061\u3089\u3092\u53c2\u8003\u306b\u3055\u305b\u3066\u9802\u304d\u307e\u3057\u305f\u3002 \u6708\u9f62 from datetime import date def moon_age(y, m, d): mp = [0,2,0,2,2,4,5,6,7,8,9,10] return (((y - 11) % 19) * 11 + mp[m - 1] + d) % 30 def get_today(): now = date.today() return now.strftime(\"%Y/%m/%d\") today = get_today() Y, M, D = today.split(\"/\") y = int(Y) m \u2026","title":"Python\u3067\u6708\u9f62\u3068\u5e72\u652f\u306e\u8a08\u7b97","provider_url":"https://hatena.blog","version":"1.0","image_url":null}