{"id":1014,"date":"2024-05-30T08:51:46","date_gmt":"2024-05-30T00:51:46","guid":{"rendered":"https:\/\/0592ban.cn\/?p=1014"},"modified":"2024-05-30T08:51:46","modified_gmt":"2024-05-30T00:51:46","slug":"%e5%85%b6%e4%b8%ad2%e6%9c%88%e6%9c%8928%e5%a4%a9-%e4%b8%80%e4%b8%aa%e6%8b%a5%e6%9c%89365%e5%a4%a9%e7%9a%84%e5%b9%b3%e5%b9%b4-1900%e5%b9%b4-%e5%85%b6%e4%b8%ad2%e6%9c%88%e6%9c%89%e5%87%a0%e5%a4%a9","status":"publish","type":"post","link":"https:\/\/0592ban.cn\/index.php\/2024\/05\/30\/%e5%85%b6%e4%b8%ad2%e6%9c%88%e6%9c%8928%e5%a4%a9-%e4%b8%80%e4%b8%aa%e6%8b%a5%e6%9c%89365%e5%a4%a9%e7%9a%84%e5%b9%b3%e5%b9%b4-1900%e5%b9%b4-%e5%85%b6%e4%b8%ad2%e6%9c%88%e6%9c%89%e5%87%a0%e5%a4%a9\/","title":{"rendered":"\u5176\u4e2d2\u6708\u670928\u5929 \u4e00\u4e2a\u62e5\u6709365\u5929\u7684\u5e73\u5e74 1900\u5e74 (\u5176\u4e2d2\u6708\u6709\u51e0\u5929)"},"content":{"rendered":"<p><img decoding=\"async\" alt=\"\u5176\u4e2d2\u6708\u670928\u5929\" loading=\"lazy\" src=\"https:\/\/0592ban.cn\/wp-content\/uploads\/2024\/05\/5409e9f1-613f-4721-bbf7-855430fe6c16.jpg\"\/><\/p>\n<h2>\n \u89c4\u5219<br \/>\n<\/h2>\n<ul>\n<li>\n  \u5e73\u5e74\uff1a365 \u5929\uff0c2 \u6708 28 \u5929\n <\/li>\n<li>\n  \u95f0\u5e74\uff1a366 \u5929\uff0c2 \u6708 29 \u5929\n <\/li>\n<li>\n  \u80fd\u88ab 4 \u6574\u9664\u7684\u5e74\u4efd\u662f\u95f0\u5e74\uff0c\u4f46\u4e0d\u80fd\u88ab 400 \u6574\u9664\u7684\u5e74\u4efd\u4e0d\u662f\u95f0\u5e74\uff08\u5373\u4e16\u7eaa\u5e74\uff09\n <\/li>\n<\/ul>\n<h2>\n \u8ba1\u7b97\u793a\u4f8b<br \/>\n<\/h2>\n<h3>\n 1990 \u5e74<br \/>\n<\/h3>\n<p>\n 1990 \u5e74\u4e0d\u80fd\u88ab 400 \u6574\u9664\uff0c\u6240\u4ee5\u4e0d\u6ee1\u8db3\u4e16\u7eaa\u5e74\u7684\u95f0\u5e74\u89c4\u5219\uff0c\u4e5f\u4e0d\u80fd\u88ab 4 \u6574\u9664\uff0c\u56e0\u6b64\u662f\u5e73\u5e74\u3002\u5e73\u5e74\u6709 365 \u5929\u3002\n<\/p>\n<h3>\n 1992 \u5e74<br \/>\n<\/h3>\n<p>\n 1992 \u5e74\u80fd\u88ab 4 \u6574\u9664\uff0c\u6ee1\u8db3\u95f0\u5e74\u89c4\u5219\u3002\u56e0\u6b64\uff0c1992 \u5e74\u662f\u95f0\u5e74\uff0c\u6709 366 \u5929\u3002\n<\/p>\n<h3>\n 2000 \u5e74<br \/>\n<\/h3>\n<p>\n 2000 \u5e74\u662f\u4e16\u7eaa\u5e74\uff0c\u4f46\u80fd\u88ab 400 \u6574\u9664\uff0c\u6ee1\u8db3\u4e16\u7eaa\u5e74\u7684\u95f0\u5e74\u89c4\u5219\u3002\u56e0\u6b64\uff0c2000 \u5e74\u662f\u95f0\u5e74\uff0c\u6709 366 \u5929\u3002\n<\/p>\n<h3>\n 2004 \u5e74<br \/>\n<\/h3>\n<p>\n 2004 \u5e74\u80fd\u88ab 4 \u6574\u9664\uff0c\u6ee1\u8db3\u95f0\u5e74\u89c4\u5219\u3002\u56e0\u6b64\uff0c2004 \u5e74\u662f\u95f0\u5e74\uff0c\u6709 366 \u5929\u3002\n<\/p>\n<h2>\n \u4ee3\u7801<br \/>\n<\/h2>\n<p>&#8220;`python<br \/>\n  def is_leap_year(year):<br \/>\n    &#8220;&#8221;&#8221;\u5224\u65ad\u662f\u5426\u4e3a\u95f0\u5e74<\/p>\n<p>    Args:<br \/>\n      year: \u5e74\u4efd<\/p>\n<p>    Returns:<br \/>\n      \u662f\u5426\u662f\u95f0\u5e74<br \/>\n    &#8220;&#8221;&#8221;<br \/>\n    if year % 400 == 0:<br \/>\n      return True<br \/>\n    elif year % 100 == 0:<br \/>\n      return False<br \/>\n    elif year % 4 == 0:<br \/>\n      return True<br \/>\n    else:<br \/>\n      return False<\/p>\n<p>  def get_days_in_year(year):<br \/>\n    &#8220;&#8221;&#8221;\u83b7\u53d6\u4e00\u5e74\u7684\u5929\u6570<\/p>\n<p>    Args:<br \/>\n      year: \u5e74\u4efd<\/p>\n<p>    Returns:<br \/>\n      \u4e00\u5e74\u4e2d\u7684\u5929\u6570<br \/>\n    &#8220;&#8221;&#8221;<br \/>\n    if is_leap_year(year):<br \/>\n      return 366<br \/>\n    else:<br \/>\n      return 365<br \/>\n  &#8220;`<\/p>\n<h2>\n \u6269\u5c55\u8ba1\u7b97<br \/>\n<\/h2>\n<h3>\n 1990 \u5e74\u5230 2010 \u5e74\u7684\u5929\u6570<br \/>\n<\/h3>\n<p>\n \u4ece 1990 \u5e74\u5230 2010 \u5e74\u5171\u6709 21 \u5e74\u3002\u5176\u4e2d\uff0c\u95f0\u5e74\u6709 5 \u4e2a\uff081992\u30011996\u30012000\u30012004\u30012008\uff09\uff0c\u5e73\u5e74\u6709 16 \u4e2a\u3002\u56e0\u6b64\uff0c\u8fd9\u6bb5\u65f6\u95f4\u7684\u5929\u6570\u4e3a\uff1a\n<\/p>\n<p>&#8220;`<br \/>\n  365  16 + 366  5 = 7670 \u5929<br \/>\n  &#8220;`<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u89c4\u5219\u5e73\u5e74\uff0c365\u5929\uff0c2\u670828\u5929\u95f0\u5e74\uff0c366\u5929\uff0c2\u670829\u5929\u80fd\u88ab4\u6574\u9664\u7684\u5e74\u4efd\u662f\u95f0\u5e74\uff0c\u4f46\u4e0d\u80fd\u88ab400\u6574\u9664\u7684\u5e74\u4efd\u4e0d\u662f\u95f0\u5e74\uff0c\u5373\u4e16\u7eaa\u5e74\uff0c\u8ba1\u7b97\u793a\u4f8b1990\u5e741990\u5e74\u4e0d\u80fd\u88ab400\u6574\u9664\uff0c\u6240\u4ee5\u4e0d\u6ee1\u8db3\u4e16\u7eaa\u5e74\u7684\u95f0\u5e74\u89c4\u5219\uff0c\u4e5f\u4e0d\u80fd\u88ab4\u6574\u9664\uff0c\u56e0\u6b64\u662f\u5e73\u5e74\uff0c\u5e73\u5e74\u6709365\u5929\uff0c1992\u5e741992\u5e74\u80fd\u88ab4\u6574\u9664\uff0c\u6ee1\u8db3\u95f0\u5e74\u89c4\u5219\uff0c\u56e0\u6b64\uff0c1992\u5e74\u662f\u95f0\u5e74\uff0c\u6709366\u5929\uff0c2000\u5e742&#8230;\u3002<\/p>\n","protected":false},"author":1,"featured_media":1013,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[664,665,666],"class_list":["post-1014","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-12shengxiao","tag-664","tag-665","tag-666"],"_links":{"self":[{"href":"https:\/\/0592ban.cn\/index.php\/wp-json\/wp\/v2\/posts\/1014","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/0592ban.cn\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/0592ban.cn\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/0592ban.cn\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/0592ban.cn\/index.php\/wp-json\/wp\/v2\/comments?post=1014"}],"version-history":[{"count":1,"href":"https:\/\/0592ban.cn\/index.php\/wp-json\/wp\/v2\/posts\/1014\/revisions"}],"predecessor-version":[{"id":1015,"href":"https:\/\/0592ban.cn\/index.php\/wp-json\/wp\/v2\/posts\/1014\/revisions\/1015"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/0592ban.cn\/index.php\/wp-json\/wp\/v2\/media\/1013"}],"wp:attachment":[{"href":"https:\/\/0592ban.cn\/index.php\/wp-json\/wp\/v2\/media?parent=1014"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/0592ban.cn\/index.php\/wp-json\/wp\/v2\/categories?post=1014"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/0592ban.cn\/index.php\/wp-json\/wp\/v2\/tags?post=1014"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}