{"id":65817,"date":"2025-01-20T03:52:53","date_gmt":"2025-01-19T19:52:53","guid":{"rendered":"https:\/\/0592ban.cn\/?p=65817"},"modified":"2025-01-20T03:52:53","modified_gmt":"2025-01-19T19:52:53","slug":"%e8%b7%9d2021%e5%b9%b43%e6%9c%8826%e6%97%a5%e5%88%b0%e7%8e%b0%e5%9c%a8%e7%9a%84%e5%85%b7%e4%bd%93%e5%a4%a9%e6%95%b0-%e8%b7%9d2021%e5%b9%b410%e6%9c%8810%e8%bf%87%e4%ba%86%e5%a4%9a%e5%b0%91%e5%a4%a9","status":"publish","type":"post","link":"https:\/\/0592ban.cn\/index.php\/2025\/01\/20\/%e8%b7%9d2021%e5%b9%b43%e6%9c%8826%e6%97%a5%e5%88%b0%e7%8e%b0%e5%9c%a8%e7%9a%84%e5%85%b7%e4%bd%93%e5%a4%a9%e6%95%b0-%e8%b7%9d2021%e5%b9%b410%e6%9c%8810%e8%bf%87%e4%ba%86%e5%a4%9a%e5%b0%91%e5%a4%a9\/","title":{"rendered":"\u8ddd2021\u5e743\u670826\u65e5\u5230\u73b0\u5728\u7684\u5177\u4f53\u5929\u6570 (\u8ddd2021\u5e7410\u670810\u8fc7\u4e86\u591a\u5c11\u5929)"},"content":{"rendered":"<p><img decoding=\"async\" alt=\"\u8ddd2021\u5e7410\u670810\u8fc7\u4e86\u591a\u5c11\u5929\" loading=\"lazy\" src=\"https:\/\/0592ban.cn\/wp-content\/uploads\/2025\/01\/2dd20c0e-2962-47a1-9b64-79754b4b97ac.jpg\"\/><\/p>\n<p>\n \u4ee5\u4e0b\u662f\u51e0\u79cd\u65e5\u671f\u8ba1\u7b97\u65b9\u6cd5\uff1a\n<\/p>\n<h2>\n 1. \u4f7f\u7528 Windows \u8ba1\u7b97\u5668<br \/>\n<\/h2>\n<ol>\n<li>\n  \u6253\u5f00Windows \u8ba1\u7b97\u5668\u3002\n <\/li>\n<li>\n  \u5728 &#8220;\u65e5\u671f\u8ba1\u7b97&#8221; \u9009\u9879\u5361\u4e2d\uff0c\u8f93\u5165\u5f00\u59cb\u65e5\u671f\u548c\u7ed3\u675f\u65e5\u671f\u3002\n <\/li>\n<li>\n  \u70b9\u51fb &#8220;\u8ba1\u7b97&#8221; \u6309\u94ae\uff0c\u5373\u53ef\u83b7\u5f97\u4e24\u65e5\u671f\u4e4b\u95f4\u7684\u5929\u6570\u3002\n <\/li>\n<\/ol>\n<h2>\n 2. \u4f7f\u7528\u516c\u5f0f\u8ba1\u7b97<br \/>\n<\/h2>\n<p>\n \u4e5f\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u516c\u5f0f\u624b\u52a8\u8ba1\u7b97\u4e24\u65e5\u671f\u4e4b\u95f4\u7684\u5929\u6570\uff1a\n<\/p>\n<pre>  \u5929\u6570 = \u7ed3\u675f\u65e5\u671f - \u5f00\u59cb\u65e5\u671f\n  <\/pre>\n<p>\n \u5176\u4e2d\uff0c\u5f00\u59cb\u65e5\u671f\u548c\u7ed3\u675f\u65e5\u671f\u5747\u4ee5\u5112\u7565\u65e5\u683c\u5f0f\u8868\u793a\u3002\n<\/p>\n<p>\n \u5112\u7565\u65e5\u662f\u4e00\u79cd\u4ee3\u8868\u65e5\u671f\u7684\u6570\u5b57\uff0c\u4ece\u516c\u5143\u524d 4713 \u5e74 1 \u6708 1 \u65e5\u5386\u8d77\u7b97\u3002\u8981\u8ba1\u7b97\u5112\u7565\u65e5\uff0c\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u516c\u5f0f\uff1a\n<\/p>\n<pre>  \u5112\u7565\u65e5 = INT((y - 1)  365.25) + INT((y - 1) \/ 4) - INT((y - 1) \/ 100) + INT((y - 1) \/ 400) + d\n  <\/pre>\n<p>\n \u5176\u4e2d\uff1a\n<\/p>\n<ul>\n<li>\n  y \u662f\u5e74\u4efd\u3002\n <\/li>\n<li>\n  d \u662f\u8be5\u5e74\u7684\u7b2c\u51e0\u5929\u3002\n <\/li>\n<\/ul>\n<h2>\n 3. \u793a\u4f8b<br \/>\n<\/h2>\n<p>\n \u4e0b\u9762\u662f\u51e0\u4e2a\u793a\u4f8b\uff1a\n<\/p>\n<ul>\n<li>\n  \u8981\u8ba1\u7b97 2021 \u5e74 3 \u6708 5 \u65e5\u5230 2022 \u5e74 11 \u6708 9 \u65e5\u7684\u5929\u6570\uff0c\u8bf7\u4f7f\u7528\u516c\u5f0f\uff1a<\/p>\n<pre>    \u5929\u6570 = \u5112\u7565\u65e5(2022, 11, 9)) \/ 4) - INT((2021 - 1) \/ 100) + INT((2021 - 1) \/ 400) + 5 = 2459484<p><\/p>\n    <p>\u56e0\u6b64\uff0c\u5929\u6570 = 2461968 - 2459484 = 2484<\/p>\n  <\/pre>\n<\/li>\n<\/ul>\n<h2>\n 4. \u6ce8\u610f\u4e8b\u9879<br \/>\n<\/h2>\n<p>\n \u5728\u4f7f\u7528\u4e0a\u9762\u516c\u5f0f\u8ba1\u7b97\u65f6\uff0c\u9700\u8981\u6ce8\u610f\u4ee5\u4e0b\u4e8b\u9879\uff1a\n<\/p>\n<ul>\n<li>\n  \u5bf9\u4e8e\u95f0\u5e74\uff0c2 \u6708\u4efd\u7684\u5929\u6570\u4e3a 29 \u5929\uff0c\u800c\u4e0d\u662f 28 \u5929\u3002\n <\/li>\n<li>\n  \u5112\u7565\u65e5\u4ece\u516c\u5143\u524d 4713 \u5e74 1 \u6708 1 \u65e5\u5348\u591c\u5f00\u59cb\u8ba1\u7b97\u3002\n <\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>\u4ee5\u4e0b\u662f\u51e0\u79cd\u65e5\u671f\u8ba1\u7b97\u65b9\u6cd5\uff0c1.\u4f7f\u7528Windows\u8ba1\u7b97\u5668\u6253\u5f00Windows\u8ba1\u7b97\u5668\uff0c\u5728\u65e5\u671f\u8ba1\u7b97\u9009\u9879\u5361\u4e2d\uff0c\u8f93\u5165\u5f00\u59cb\u65e5\u671f\u548c\u7ed3\u675f\u65e5\u671f\uff0c\u70b9\u51fb\u8ba1\u7b97\u6309\u94ae\uff0c\u5373\u53ef\u83b7\u5f97\u4e24\u65e5\u671f\u4e4b\u95f4\u7684\u5929\u6570\uff0c2.\u4f7f\u7528\u516c\u5f0f\u8ba1\u7b97\u4e5f\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u516c\u5f0f\u624b\u52a8\u8ba1\u7b97\u4e24\u65e5\u671f\u4e4b\u95f4\u7684\u5929\u6570\uff0c\u5929\u6570=\u7ed3\u675f\u65e5\u671f\uff0c\u5f00\u59cb\u65e5\u671f\u5176\u4e2d\uff0c\u5f00\u59cb\u65e5\u671f\u548c\u7ed3\u675f\u65e5\u671f\u5747\u4ee5\u5112\u7565\u65e5\u683c\u5f0f\u8868\u793a\uff0c\u5112\u7565\u65e5\u662f\u4e00\u79cd\u4ee3\u8868\u65e5\u671f\u7684\u6570\u5b57\uff0c\u4ece\u516c\u5143\u524d4713\u5e74&#8230;\u3002<\/p>\n","protected":false},"author":1,"featured_media":65816,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[28760],"class_list":["post-65817","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-12shengxiao","tag-28760"],"_links":{"self":[{"href":"https:\/\/0592ban.cn\/index.php\/wp-json\/wp\/v2\/posts\/65817","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=65817"}],"version-history":[{"count":1,"href":"https:\/\/0592ban.cn\/index.php\/wp-json\/wp\/v2\/posts\/65817\/revisions"}],"predecessor-version":[{"id":65818,"href":"https:\/\/0592ban.cn\/index.php\/wp-json\/wp\/v2\/posts\/65817\/revisions\/65818"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/0592ban.cn\/index.php\/wp-json\/wp\/v2\/media\/65816"}],"wp:attachment":[{"href":"https:\/\/0592ban.cn\/index.php\/wp-json\/wp\/v2\/media?parent=65817"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/0592ban.cn\/index.php\/wp-json\/wp\/v2\/categories?post=65817"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/0592ban.cn\/index.php\/wp-json\/wp\/v2\/tags?post=65817"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}