{"id":7265,"date":"2024-04-10T11:01:01","date_gmt":"2024-04-10T03:01:01","guid":{"rendered":""},"modified":"2024-04-10T11:01:01","modified_gmt":"2024-04-10T03:01:01","slug":"\u56db\u5206\u5386\u57fa\u672c\u7b97\u6cd5","status":"publish","type":"post","link":"https:\/\/mushiming.com\/7265.html","title":{"rendered":"\u56db\u5206\u5386\u57fa\u672c\u7b97\u6cd5"},"content":{"rendered":"
\u4ee5\u5386\u672f\u7532\u5b50\u7bc7\u4e3a\u4f8b\uff0c\u901a\u8fc7\u4fee\u6539\u6570\u636e\u53ef\u4ee5\u5f97\u5230\u5176\u4ed6\u5386\u6cd5\u7684\u5386\u8868\uff0c\u57fa\u672c\u6c42\u7b97\u65b9\u6cd5\u4e0d\u53d8\u3002<\/p>\n
\u5b8c\u6574\u7a0b\u5e8f\u53ca\u6c42\u7b97\u7ed3\u679c\uff0c\u8bf7\u53c2\u89c1\u300a\u5386\u672f\u7532\u5b50\u7bc7\u300b\u51ac\u81f3\u5408\u6714\u8868_\u7532\u5b50\u8500\u5851\u95f0\u8868-CSDN\u535a\u5ba2<\/p>\n
\u53caCSDN<\/p>\n
\u56db\u5206\u5386\uff1a\u5c81\u5b9e365\u53c81\/4\uff0c\u6714\u7b5629\u53c8499\/940\u3002\u8500\u65e527759\uff0c\u8500\u6708940\uff0c\u4e00\u850076\u5e74\uff0c\u4e00\u7ae019\u5e74235\u6708\u4ea6228\u6c14\u3002<\/p>\n
\u5e72\u652f\u8868\uff1a<\/p>\n
\n0 \u7532\u5b50 1 \u4e59\u4e11 2 \u4e19\u5bc5 3 \u4e01\u536f 4 \u620a\u8fb0 5 \u5df1\u5df3 6 \u5e9a\u5348 7 \u8f9b\u672a 8 \u58ec\u7533 9 \u7678\u9149
10 \u7532\u620c 11 \u4e59\u4ea5 12 \u4e19\u5b50 13 \u4e01\u4e11 14 \u620a\u5bc5 15 \u5df1\u536f 16 \u5e9a\u8fb0 17 \u8f9b\u5df3 18 \u58ec\u5348 19 \u7678\u672a
20 \u7532\u7533 21 \u4e59\u9149 22 \u4e19\u620c 23 \u4e01\u4ea5 24 \u620a\u5b50 25 \u5df1\u4e11 26 \u5e9a\u5bc5 27 \u8f9b\u536f 28 \u58ec\u8fb0 29 \u7678\u5df3
30 \u7532\u5348 31 \u4e59\u672a 32 \u4e19\u7533 33 \u4e01\u9149 34 \u620a\u620c 35 \u5df1\u4ea5 36 \u5e9a\u5b50 37 \u8f9b\u4e11 38 \u58ec\u5bc5 39 \u7678\u536f
40 \u7532\u8fb0 41 \u4e59\u5df3 42 \u4e19\u5348 43 \u4e01\u672a 44 \u620a\u7533 45 \u5df1\u9149 46 \u5e9a\u620c 47 \u8f9b\u4ea5 48 \u58ec\u5b50 49 \u7678\u4e11
50 \u7532\u5bc5 51 \u4e59\u536f 52 \u4e19\u8fb0 53 \u4e01\u5df3 54 \u620a\u5348 55 \u5df1\u672a 56 \u5e9a\u7533 57 \u8f9b\u9149 58 \u58ec\u620c 59 \u7678\u4ea5 <\/p>\n<\/blockquote>\n2. \u5386\u5143<\/h4>\n
\u8981\u6c42\u56de\u5f52\u5e74\u7684\u5386\u5143\u51ac\u81f3\u70b9\u521a\u597d\u5728\u51ac\u81f3\u6240\u5728\u6708\u5408\u6714\u7686\u5728\u591c\u534a0\u65f6\uff0c\u4e14\u5728\u5e72\u652f\u7eaa\u65e5\u7684\u9996\u65e5\uff0c\u5373\u201c\u5341\u4e00\u6708\u7532\u5b50\u591c\u534a\u6714\u65e6\u51ac\u81f3\u201d\u3002\u5982\u6bb7\u5386\u4ee5BC1567\u5e74\u4e3a\u5386\u5143\uff0c\u8fd1\u8ddd\u4e3aBC427\u5e74\uff0c\u5c81\u5728\u7532\u5bc5\uff0c\u79f0\u7532\u5bc5\u5143\u3002<\/p>\n
3. \u5927\u5c0f\u4f59<\/h4>\n
\u53e4\u4ee3\u4ee5\u5e72\u652f\u7eaa\u65e5\uff0c\u9700\u6c42\u6714\u65e5\u5e72\u652f\uff0c\u82e5\u4ee5\u521d\u503c0\u4e3a\u7532\u5b50\uff0c\u6bcf60\u4e00\u5faa\u73af\uff0c\u5373\u53ef\u4ee5\u5bf960\u6c42\u4f59\uff0c\u7b2c\u4e8c\u5e74\u51ac\u81f3\u6708\u6714\u65e5\u4f5954\u53c8348\/940\uff0c\u5176\u4e2d54\u79f0\u4e3a\u5927\u4f59\uff0c348\u79f0\u4e3a\u5c0f\u4f59\uff0c940\u79f0\u4e3a\u65e5\u6cd5\u6216\u8500\u6708\u3002\u4efb\u610f\u4e00\u5e74\u51ac\u81f3\u6708\u6714\u7684\u8868\u8fbe\u5f0f\u5373\u4e3a\uff1a<\/p>\n
<\/p>\n
\u7531\u516c\u5f0f\u53ef\u77e5\uff0c\u6c42\u5927\u4f59\u5373\u4f7f\u7528\u6574\u9664\u8fd0\u7b97\u7b26\uff0c\u6c42\u5c0f\u4f59\u5373\u4f7f\u7528\u6c42\u4f59\u8fd0\u7b97\u7b26\u3002\u5176\u4e2d\u8500\u65e5\/\u65e5\u6cd5\u5373\u4e3a\u592a\u9634\u5e74\u957f\u5ea6354\u53c8499\/940\u3002<\/p>\n
\uff081\uff09 \u51ac\u81f3\u6708\u6714<\/strong><\/p>\n
\u56db\u5206\u5386\u6bcf\u8500\u8500\u9996\u7684\u51ac\u81f3\u70b9\u4e0e\u51ac\u81f3\u6240\u5728\u6708\u7684\u5408\u6714\u65f6\u523b\u540c\u5728\u591c\u534a\uff0c\u4ee5\u6b64\u4e3a\u8d77\u70b9\uff0c\u6c42\u4e00\u8500\u5185\u4efb\u610f\u4e00\u5e74\u7684\u6b63\u6708\u6714\uff0c\u53ea\u9700\u6839\u636e\u8be5\u6714\u65e5\u8ddd\u79bb\u8500\u9996\u7684\u65e5\u6570\uff08\u79ef\u65e5\uff09\uff0c\u518d\u5bf960\u6c42\u4f59\uff0c\u5f97\u5230\u8be5\u65e5\u7684\u5e72\u652f\u5e8f\u53f7\u3002<\/p>\n
rbn = ryn % bf #\u5165\u8500\u5e74\njy = int(rbn*235\/19) #\u79ef\u6708\nsddy_0 = jy * br \/\/ by % 60\nsdxy_0 = jy * br % by\n<\/code><\/pre>\n
\uff082\uff09\u4efb\u610f\u6708\u6714<\/strong><\/p>\n
\u5386\u6cd5\u63a8\u7b97\u7684\u57fa\u672c\u6c42\u7b97\u65b9\u6cd5\u662f\u79ef\u4f59\u6cd5\uff0c\u5df2\u77e5\u521d\u503c\uff0c\u52a0\u4e0a\u6b65\u957f\u5373\u53ef\u5f97\u4efb\u610f\u4e00\u5929\u7684\u503c\u3002\u5982\u67d0\u5e74\u51ac\u81f3\u6708\u7684\u6714\u65e5\u4e3a0\uff0c\u5219\u7b2c\u4e8c\u6708\u7684\u6714\u65e5\u4e3a29\u53c8499\/940\uff0c\u82e5\u8be5\u5e74\u4e0d\u95f0\uff0c\u5219\u7b2c\u4e8c\u5e74\u51ac\u81f3\u6708\u6714\u65e5\u4e3a\u7d2f\u52a012\u6b21\u6714\u7b56\uff08\u5373\u5c06\u51fd\u6570\u8fed\u4ee312\u6b21\uff09\uff0c\u5f97354\u53c8348\/940\u3002<\/p>\n
def qy(dy_0, xy_0, rf, dy, xy, n=1): # \u6c42\u5927\u5c0f\u4f59\u5206\uff08\u4f59\u5206\u524d\u503c\uff0c\u65e5\u6cd5\uff0c\u4f59\u5206\uff09\n\tzf = (dy_0 * rf + xy_0) + (dy * rf + xy) * n\n\tdy = (zf \/\/ rf) % 60\n\txy = zf % rf\n\treturn dy, xy<\/code><\/pre>\n
\uff083\uff09\u5408\u6714\u65f6\u523b<\/strong><\/p>\n
\u67d0\u6708\u7684\u5408\u6714\u65f6\u95f4\u5373\u8be5\u6708\u7684\u5c0f\u4f59\u4e0e\u65e5\u6cd5\u7684\u6bd4\u503c\u3002\u5386\u5143\u65e0\u5c0f\u4f59\u53730\u65f6\u5408\u6714\uff0c\u7b2c\u4e8c\u5e74\u5c0f\u4f59348\uff0c\u5373\u5408\u6714\u65f6\u95f4\u4e3a348\/940*24h\uff0c\u518d\u7531\u5c0f\u6570\u8868\u793a\u8f6c\u6362\u4e3a\u65f6\u523b\u8868\u793a\u3002\u540c\u6837\u53ea\u9700\u5bf9\u57fa\u672c\u7b97\u6cd5\u8fdb\u884c\u9012\u5f52\uff0c\u5373\u53ef\u8f93\u51fa\u6bcf\u5e74\u5e74\u524d\u51ac\u81f3\u6240\u5728\u6708\u7684\u5408\u6714\u65f6\u95f4\u3002<\/p>\n
def heshuo(yf,rf): #\u6c42\u5408\u6714\u65f6\u95f4\uff08\u4f59\u5206\uff0c\u65e5\u6cd5\uff09\n chen = yf \/ rf * 24 # \u5408\u6714\u65f6\u95f4\n chen_h = int(chen)\n chen_m = int((chen - chen_h) * 60)\n chen_s = int(chen*3600 - chen_h*3600 - chen_m * 60)\n hssj = \"{:02d}\u65f6{:02d}\u5206{:02d}\u79d2\".format(chen_h,chen_m,chen_s)\n return hssj<\/code><\/pre>\n
4. \u51ac\u81f3<\/h4>\n
\u4e24\u6b21\u51ac\u81f3\u7684\u95f4\u9694\u65f6\u95f4\u5373\u662f\u4e00\u4e2a\u56de\u5f52\u5e74\uff0c\u53e4\u79f0\u5c81\u5b9e\u3002<\/p>\n
\u8ba1\u7b97\u4efb\u610f\u4e00\u5e74\u7684\u51ac\u81f3\u5927\u5c0f\u4f59\uff0c\u5373\u6c42\u51fa\u8be5\u5e74\u8ddd\u79bb\u8500\u9996\u7684\u79ef\u65e5\uff0c\u518d\u5bf960\u53d6\u4f59\u3002\u516c\u5f0f\u7c7b\u540c\u6714\u65e6\u5927\u5c0f\u4f59\u3002<\/p>\n
rbn = rjn % bf #\u5165\u8500\u5e74\njq = rbn * 12 # \u79ef\u6c14\nzqdy_0 = jq * 974 \/\/ 32 % 60\nzqxy_0 = jq * 974 % 32<\/code><\/pre>\n
5.\u8282\u6c14<\/h4>\n
\u56db\u5206\u5386\u4f7f\u7528\u5e73\u6c14\u6cd5\uff0c\u53ea\u9700\u5c06\u4e00\u5e74\u5e73\u5206\u4e3a12\u8282\u6c14\u548c12\u4e2d\u6c14\uff0c\u5219\u6c14\u7b56\u4e3a15\u53c87\/32\u65e5\uff0c\u4e24\u6b21\u4e2d\u6c14\u95f4\u969430\u53c814\/32\u65e5\u3002\u5229\u7528\u6c42\u4f59\u51fd\u6570\uff0c\u53ea\u9700\u77e5\u9053\u7b2c\u4e00\u4e2a\u8282\u6c14\u7684\u503c\uff0c\u5373\u53ef\u6c42\u51fa\u6bcf\u4e00\u4e2a\u8282\u6c14\u7684\u503c\u3002<\/p>\n
6. \u95f0\u6cd5<\/h4>\n
\uff081\uff09\u95f0\u4f59\u6cd5<\/strong><\/p>\n
\u6bcf\u7ae0\uff0819\u5e74\uff09\u56de\u5f52\u5e74\u5171235\u6708\uff0c\u592a\u9634\u5e74\u5171228\u6708\uff0c\u5219\u6bcf\u5e74\u56de\u5f52\u5e74\u8f83\u592a\u9634\u5e74\u957f7\/19\u6708\uff0c\u5373\u6bcf\u5e74\u95f0\u4f59\u4e3a7\u3002\u79ef\u7d2f\u81f319\uff0819\/19\u6708\uff09\u5219\u9700\u7f6e\u95f0\uff0c\u6b64\u5373\u95f0\u5e74\u3002\u7f6e\u95f0\u4e4b\u540e\u9700\u51cf\u53bb19\u624d\u662f\u4e0b\u4e00\u5e74\u95f0\u4f59\u3002<\/p>\n
if ry >= 19: #\u7f6e\u95f0\u65b9\u6cd5\uff1a\u95f0\u4f59\u6cd5\n sddy_0,sdxy_0 = qy(sddy_0,sdxy_0,sdrf,sddy+int(yue),sdxy+499) #\u52a0\u4e00\u4e2a\u95f0\u6708\n ry -= 19\n else:\n sddy_0,sdxy_0 = qy(sddy_0,sdxy_0,sdrf,sddy,sdxy)\n ry += 7<\/code><\/pre>\n
\u7531\u6bcf\u5e74\u95f0\u4f597\/19\u5f97\u6bcf\u6708\u95f0\u4f597\/228\u6708\uff0c\u6c42\u95f0\u6708\uff0c\u5373\u4ee5\u95f0\u5e74\u5e74\u524d\u95f0\u4f59\u4e3a\u521d\u503c\uff08\u4f59\u5206\u4e58\u4ee512\uff09\uff0c\u6bcf\u6708\u52a07\/228\uff0c\u79ef\u7d2f\u81f3228\/228\uff0c\u5373\u9700\u7f6e\u95f0\uff0c\u6b64\u5373\u95f0\u6708\u3002<\/p>\n
ry = 0\nfor i in range(n): # \u5e74\n if ry >= 12: # \u6709\u95f0\u5e74\n yry = ry * 12\n zry = int((228 - yry) \/\/ 7)\n month = '\u95f0' + yuefen[(zry - 1) % 12]\n ry += 7 # \u5c81\u672b\u95f0\u4f59<\/code><\/pre>\n
\uff082\uff09\u65e0\u4e2d\u6c14\u7f6e\u95f0\u6cd5<\/strong><\/p>\n
\u5373\u6bcf\u7ae0\uff0819\u5e74\uff09\u51717\u95f0\uff0c\u5219\u7ae0\u6708235\uff0c\u6bcf\u5e74\u4e2d\u6c1412\uff0c\u5219\u7ae0\u6c14228\u300219\u5e74\u4e2d\u5fc5\u7136\u67097\u4e2a\u6708\u6ca1\u6709\u4e2d\u6c14\uff0c\u4ee5\u6b64\u65e0\u4e2d\u6c14\u6708\u4e3a\u95f0\u6708\u3002\u6c42\u7b97\u65b9\u6cd5\u662f\uff1a\u82e5\u67d0\u6708\u4e0a\u6708\u4e2d\u6c14\u5e72\u652f\u5e8f\u53f7\u52a0\u4e2d\u6c14\u95f4\u9694\u65e5\u671f\u51cf\u53bb\u8be5\u6708\u6714\u65e5\u5e72\u652f\u5e8f\u53f7\u7684\u503c\u5927\u4e8e\u6216\u7b49\u4e8e\u8be5\u6708\u65e5\u6570\uff0c\u5219\u8868\u793a\u4e0b\u4e00\u4e2d\u6c14\u9700\u8981\u6392\u5230\u4e0b\u6708\u4e2d\uff08\u5373\u8be5\u6708\u65e0\u4e2d\u6c14\uff09\u3002<\/p>\n
def wzqy(dy_0,xy_0): #\u65e0\u4e2d\u6c14\u6708\n\tglobal zqdy_0,zqxy_0,yueri_0,yueri\n\tif dxy(yxy_0) == \"\u5927\": yueri = 30\n\telse:yueri = 29\n\tif (int(dy_0+xy_0\/32+zqi)-ydy_0)%60>=yueri: #\u4e0a\u4e00\u4e2a\u4e2d\u6c14\u503c\u52a0\u4e2d\u6c14\u65e5\u6570\u5373\u9884\u63a8\u4e0b\u4e00\u4e2a\u4e2d\u6c14\u7684\u503c\uff0c\u4e0b\u4e00\u4e2d\u6c14\u4e0d\u5728\u8be5\u6708\u4e2d\u5219\u8be5\u6708\u65e0\u4e2d\u6c14\n\t\tx = True\n\t\treturn x,dy_0,xy_0\n\telse:\n\t\tdy_0, xy_0 = qy(dy_0, xy_0, zqrf, zqdy, zqxy)\n\t\tx = False\n\t\treturn x,dy_0,xy_0<\/code><\/pre>\n
\uff082\uff09\u5e74\u7ec8\u7f6e\u95f0\u6cd5<\/strong><\/p>\n
\u5e74\u7ec8\u7f6e\u95f0\u6cd5\u5219\u6bd4\u8f83\u7b80\u5355\uff0c\u5728\u6709\u95f0\u4e4b\u5e74\u7684\u5e74\u672b\u52a0\u4e00\u6708\u5373\u53ef\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u56db\u5206\u5386\u57fa\u672c\u7b97\u6cd5\u4ee5\u5386\u672f\u7532\u5b50\u7bc7\u4e3a\u4f8b\uff0c\u901a\u8fc7\u4fee\u6539\u6570\u636e\u53ef\u4ee5\u5f97\u5230\u5176\u4ed6\u5386\u6cd5\u7684\u5386\u8868\uff0c\u57fa\u672c\u6c42\u7b97\u65b9\u6cd5\u4e0d\u53d8","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"_links":{"self":[{"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/posts\/7265"}],"collection":[{"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/comments?post=7265"}],"version-history":[{"count":0,"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/posts\/7265\/revisions"}],"wp:attachment":[{"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/media?parent=7265"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/categories?post=7265"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/tags?post=7265"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}