{"id":1050401,"date":"2024-12-31T14:07:27","date_gmt":"2024-12-31T06:07:27","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1050401.html"},"modified":"2024-12-31T14:07:29","modified_gmt":"2024-12-31T06:07:29","slug":"python%e5%a6%82%e4%bd%95%e8%87%aa%e5%8a%a8%e8%bf%90%e8%a1%8c%e6%9f%90%e4%b8%80%e7%a8%8b%e5%ba%8f","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1050401.html","title":{"rendered":"python\u5982\u4f55\u81ea\u52a8\u8fd0\u884c\u67d0\u4e00\u7a0b\u5e8f"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-docs.pingcode.com\/wp-content\/uploads\/2024\/12\/e48b843a-07ef-476f-9d8a-505a11251110.webp?x-oss-process=image\/auto-orient,1\/format,webp\" alt=\"python\u5982\u4f55\u81ea\u52a8\u8fd0\u884c\u67d0\u4e00\u7a0b\u5e8f\" \/><\/p>\n<p><p> <strong>Python\u5982\u4f55\u81ea\u52a8\u8fd0\u884c\u67d0\u4e00\u7a0b\u5e8f<\/strong><\/p>\n<\/p>\n<p><p>\u5728Python\u4e2d\uff0c\u6709\u591a\u79cd\u65b9\u6cd5\u53ef\u4ee5\u5b9e\u73b0\u81ea\u52a8\u8fd0\u884c\u67d0\u4e00\u7a0b\u5e8f\u3002<strong>\u4f7f\u7528\u8ba1\u5212\u4efb\u52a1\u3001\u4f7f\u7528cron\u3001\u4f7f\u7528while\u5faa\u73af\u3001\u4f7f\u7528\u7ebf\u7a0b\u548c\u8c03\u5ea6\u5e93<\/strong>\u7b49\u65b9\u6cd5\u3002\u4e0b\u9762\u6211\u4eec\u5c06\u8be6\u7ec6\u4ecb\u7ecd\u5176\u4e2d\u4e00\u79cd\u65b9\u6cd5\uff1a\u4f7f\u7528\u8ba1\u5212\u4efb\u52a1\u8fdb\u884c\u81ea\u52a8\u8fd0\u884c\u3002<\/p>\n<\/p>\n<p><p><strong>\u4f7f\u7528\u8ba1\u5212\u4efb\u52a1\uff08Windows Task Scheduler\uff09<\/strong><\/p>\n<\/p>\n<p><p>\u8ba1\u5212\u4efb\u52a1\u662fWindows\u64cd\u4f5c\u7cfb\u7edf\u63d0\u4f9b\u7684\u4e00\u79cd\u81ea\u52a8\u5316\u5de5\u5177\uff0c\u53ef\u4ee5\u5728\u6307\u5b9a\u7684\u65f6\u95f4\u6216\u4e8b\u4ef6\u89e6\u53d1\u65f6\u8fd0\u884c\u811a\u672c\u6216\u7a0b\u5e8f\u3002\u4ee5\u4e0b\u662f\u4f7f\u7528\u8ba1\u5212\u4efb\u52a1\u81ea\u52a8\u8fd0\u884cPython\u7a0b\u5e8f\u7684\u6b65\u9aa4\uff1a<\/p>\n<\/p>\n<ol>\n<li>\n<p>\u6253\u5f00\u201c\u4efb\u52a1\u8ba1\u5212\u7a0b\u5e8f\u201d\uff1a<\/p>\n<\/p>\n<ul>\n<li>\u6309\u4e0bWindows\u952e\uff0c\u641c\u7d22\u201c\u4efb\u52a1\u8ba1\u5212\u7a0b\u5e8f\u201d\uff0c\u5e76\u6253\u5f00\u5b83\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\n<p>\u521b\u5efa\u4efb\u52a1\uff1a<\/p>\n<\/p>\n<ul>\n<li>\u5728\u201c\u4efb\u52a1\u8ba1\u5212\u7a0b\u5e8f\u201d\u7a97\u53e3\u4e2d\uff0c\u70b9\u51fb\u53f3\u4fa7\u7684\u201c\u521b\u5efa\u57fa\u672c\u4efb\u52a1\u201d\u3002<\/li>\n<li>\u5728\u5f39\u51fa\u7684\u7a97\u53e3\u4e2d\uff0c\u8f93\u5165\u4efb\u52a1\u7684\u540d\u79f0\u548c\u63cf\u8ff0\uff0c\u7136\u540e\u70b9\u51fb\u201c\u4e0b\u4e00\u6b65\u201d\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\n<p>\u8bbe\u7f6e\u89e6\u53d1\u5668\uff1a<\/p>\n<\/p>\n<ul>\n<li>\u9009\u62e9\u4efb\u52a1\u7684\u89e6\u53d1\u65f6\u95f4\uff0c\u53ef\u4ee5\u662f\u6bcf\u5929\u3001\u6bcf\u5468\u3001\u6bcf\u6708\u6216\u4ec5\u4e00\u6b21\u7b49\u3002\u6839\u636e\u9700\u8981\u9009\u62e9\u5408\u9002\u7684\u89e6\u53d1\u5668\uff0c\u7136\u540e\u70b9\u51fb\u201c\u4e0b\u4e00\u6b65\u201d\u3002<\/li>\n<li>\u6839\u636e\u9009\u62e9\u7684\u89e6\u53d1\u5668\uff0c\u8bbe\u7f6e\u5177\u4f53\u7684\u65f6\u95f4\u548c\u65e5\u671f\uff0c\u7136\u540e\u70b9\u51fb\u201c\u4e0b\u4e00\u6b65\u201d\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\n<p>\u8bbe\u7f6e\u64cd\u4f5c\uff1a<\/p>\n<\/p>\n<ul>\n<li>\u9009\u62e9\u201c\u542f\u52a8\u7a0b\u5e8f\u201d\uff0c\u7136\u540e\u70b9\u51fb\u201c\u4e0b\u4e00\u6b65\u201d\u3002<\/li>\n<li>\u5728\u201c\u7a0b\u5e8f\/\u811a\u672c\u201d\u5b57\u6bb5\u4e2d\uff0c\u8f93\u5165Python\u89e3\u91ca\u5668\u7684\u8def\u5f84\uff08\u4f8b\u5982\uff0c<code>C:\\Python39\\python.exe<\/code>\uff09\u3002<\/li>\n<li>\u5728\u201c\u6dfb\u52a0\u53c2\u6570\u201d\u5b57\u6bb5\u4e2d\uff0c\u8f93\u5165Python\u811a\u672c\u7684\u8def\u5f84\uff08\u4f8b\u5982\uff0c<code>C:\\Scripts\\my_script.py<\/code>\uff09\uff0c\u7136\u540e\u70b9\u51fb\u201c\u4e0b\u4e00\u6b65\u201d\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\n<p>\u5b8c\u6210\u4efb\u52a1\uff1a<\/p>\n<\/p>\n<ul>\n<li>\u67e5\u770b\u4efb\u52a1\u7684\u603b\u7ed3\u4fe1\u606f\uff0c\u786e\u8ba4\u65e0\u8bef\u540e\uff0c\u70b9\u51fb\u201c\u5b8c\u6210\u201d\u6309\u94ae\u3002<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<p><p>\u901a\u8fc7\u4ee5\u4e0a\u6b65\u9aa4\uff0c\u60a8\u53ef\u4ee5\u4f7f\u7528\u8ba1\u5212\u4efb\u52a1\u5728\u6307\u5b9a\u7684\u65f6\u95f4\u81ea\u52a8\u8fd0\u884cPython\u7a0b\u5e8f\u3002<\/p>\n<\/p>\n<p><p>\u63a5\u4e0b\u6765\uff0c\u6211\u4eec\u5c06\u8be6\u7ec6\u4ecb\u7ecd\u5176\u4ed6\u51e0\u79cd\u65b9\u6cd5\u3002<\/p>\n<\/p>\n<p><h3>\u4e00\u3001\u4f7f\u7528cron\uff08Linux\u7cfb\u7edf\uff09<\/h3>\n<\/p>\n<p><p>\u5728Linux\u7cfb\u7edf\u4e2d\uff0c\u53ef\u4ee5\u4f7f\u7528cron\u5b9a\u65f6\u4efb\u52a1\u5de5\u5177\u6765\u5b9e\u73b0\u81ea\u52a8\u8fd0\u884cPython\u7a0b\u5e8f\u3002cron\u662f\u4e00\u79cd\u57fa\u4e8e\u65f6\u95f4\u7684\u4efb\u52a1\u8c03\u5ea6\u5de5\u5177\uff0c\u53ef\u4ee5\u5728\u6307\u5b9a\u7684\u65f6\u95f4\u6216\u65f6\u95f4\u95f4\u9694\u6267\u884c\u4efb\u52a1\u3002\u4ee5\u4e0b\u662f\u4f7f\u7528cron\u81ea\u52a8\u8fd0\u884cPython\u7a0b\u5e8f\u7684\u6b65\u9aa4\uff1a<\/p>\n<\/p>\n<ol>\n<li>\n<p>\u6253\u5f00\u7ec8\u7aef\uff0c\u8f93\u5165\u4ee5\u4e0b\u547d\u4ee4\u4ee5\u7f16\u8f91crontab\u6587\u4ef6\uff1a<\/p>\n<\/p>\n<p><pre><code>crontab -e<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<li>\n<p>\u5728crontab\u6587\u4ef6\u4e2d\uff0c\u6dfb\u52a0\u4e00\u884c\u65b0\u7684\u4efb\u52a1\u3002\u4f8b\u5982\uff0c\u6bcf\u5929\u51cc\u66682\u70b9\u8fd0\u884cPython\u811a\u672c\uff0c\u53ef\u4ee5\u6dfb\u52a0\u4ee5\u4e0b\u5185\u5bb9\uff1a<\/p>\n<\/p>\n<p><pre><code>0 2 * * * \/usr\/bin\/python3 \/home\/user\/scripts\/my_script.py<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u884c\u547d\u4ee4\u7684\u542b\u4e49\u662f\uff1a\u5728\u6bcf\u5929\u51cc\u66682\u70b9\uff0c\u8fd0\u884c\u4f4d\u4e8e<code>\/home\/user\/scripts\/<\/code>\u76ee\u5f55\u4e0b\u7684<code>my_script.py<\/code>\u811a\u672c\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p>\u4fdd\u5b58\u5e76\u9000\u51facrontab\u7f16\u8f91\u5668\u3002\u6b64\u65f6\uff0ccron\u4efb\u52a1\u5df2\u7ecf\u8bbe\u7f6e\u5b8c\u6210\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<p><h3>\u4e8c\u3001\u4f7f\u7528while\u5faa\u73af<\/h3>\n<\/p>\n<p><p>\u5982\u679c\u5e0c\u671bPython\u7a0b\u5e8f\u5728\u8fd0\u884c\u8fc7\u7a0b\u4e2d\u81ea\u52a8\u6267\u884c\u67d0\u4e9b\u4efb\u52a1\uff0c\u53ef\u4ee5\u4f7f\u7528while\u5faa\u73af\u6765\u5b9e\u73b0\u3002\u4ee5\u4e0b\u662f\u4e00\u4e2a\u7b80\u5355\u7684\u793a\u4f8b\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import time<\/p>\n<p>def my_task():<\/p>\n<p>    print(&quot;\u6267\u884c\u4efb\u52a1...&quot;)<\/p>\n<p>while True:<\/p>\n<p>    my_task()<\/p>\n<p>    time.sleep(3600)  # \u6bcf\u5c0f\u65f6\u6267\u884c\u4e00\u6b21<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u793a\u4f8b\u4e2d\uff0c<code>my_task<\/code>\u51fd\u6570\u8868\u793a\u9700\u8981\u81ea\u52a8\u6267\u884c\u7684\u4efb\u52a1\uff0c\u4f7f\u7528while\u5faa\u73af\u4e0d\u65ad\u6267\u884c\u8be5\u4efb\u52a1\uff0c\u5e76\u901a\u8fc7<code>time.sleep<\/code>\u51fd\u6570\u8bbe\u7f6e\u4efb\u52a1\u6267\u884c\u7684\u65f6\u95f4\u95f4\u9694\u3002<\/p>\n<\/p>\n<p><h3>\u4e09\u3001\u4f7f\u7528\u7ebf\u7a0b<\/h3>\n<\/p>\n<p><p>\u5728\u67d0\u4e9b\u60c5\u51b5\u4e0b\uff0c\u53ef\u4ee5\u4f7f\u7528\u7ebf\u7a0b\u6765\u5b9e\u73b0Python\u7a0b\u5e8f\u7684\u81ea\u52a8\u8fd0\u884c\u3002\u7ebf\u7a0b\u53ef\u4ee5\u5728\u540e\u53f0\u6267\u884c\u4efb\u52a1\uff0c\u4e0d\u4f1a\u963b\u585e\u4e3b\u7ebf\u7a0b\u7684\u8fd0\u884c\u3002\u4ee5\u4e0b\u662f\u4e00\u4e2a\u793a\u4f8b\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import threading<\/p>\n<p>import time<\/p>\n<p>def my_task():<\/p>\n<p>    while True:<\/p>\n<p>        print(&quot;\u6267\u884c\u4efb\u52a1...&quot;)<\/p>\n<p>        time.sleep(3600)  # \u6bcf\u5c0f\u65f6\u6267\u884c\u4e00\u6b21<\/p>\n<p>task_thread = threading.Thread(target=my_task)<\/p>\n<p>task_thread.start()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u793a\u4f8b\u4e2d\uff0c<code>my_task<\/code>\u51fd\u6570\u88ab\u653e\u5165\u4e00\u4e2a\u7ebf\u7a0b\u4e2d\u8fd0\u884c\uff0c\u4e3b\u7ebf\u7a0b\u53ef\u4ee5\u7ee7\u7eed\u6267\u884c\u5176\u4ed6\u4efb\u52a1\uff0c\u800c\u540e\u53f0\u7ebf\u7a0b\u4f1a\u6309\u7167\u8bbe\u5b9a\u7684\u65f6\u95f4\u95f4\u9694\u6267\u884c\u4efb\u52a1\u3002<\/p>\n<\/p>\n<p><h3>\u56db\u3001\u4f7f\u7528\u8c03\u5ea6\u5e93<\/h3>\n<\/p>\n<p><p>Python\u4e2d\u6709\u8bb8\u591a\u8c03\u5ea6\u5e93\u53ef\u4ee5\u7528\u6765\u81ea\u52a8\u8fd0\u884c\u4efb\u52a1\uff0c\u4f8b\u5982<code>schedule<\/code>\u5e93\u548c<code>APScheduler<\/code>\u5e93\u3002\u4ee5\u4e0b\u662f\u4f7f\u7528<code>schedule<\/code>\u5e93\u7684\u793a\u4f8b\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import schedule<\/p>\n<p>import time<\/p>\n<p>def my_task():<\/p>\n<p>    print(&quot;\u6267\u884c\u4efb\u52a1...&quot;)<\/p>\n<h2><strong>\u8bbe\u7f6e\u4efb\u52a1\u8c03\u5ea6\uff0c\u6bcf\u5c0f\u65f6\u6267\u884c\u4e00\u6b21\u4efb\u52a1<\/strong><\/h2>\n<p>schedule.every().hour.do(my_task)<\/p>\n<p>while True:<\/p>\n<p>    schedule.run_pending()<\/p>\n<p>    time.sleep(1)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u793a\u4f8b\u4e2d\uff0c\u4f7f\u7528<code>schedule.every().hour.do(my_task)<\/code>\u6765\u8bbe\u7f6e\u4efb\u52a1\u8c03\u5ea6\uff0c<code>schedule.run_pending()<\/code>\u51fd\u6570\u4f1a\u68c0\u67e5\u5e76\u6267\u884c\u5df2\u7ecf\u5230\u8fbe\u65f6\u95f4\u7684\u4efb\u52a1\u3002<\/p>\n<\/p>\n<p><h3>\u4e94\u3001\u4f7f\u7528APScheduler\u5e93<\/h3>\n<\/p>\n<p><p><code>APScheduler<\/code>\uff08Advanced Python Scheduler\uff09\u662f\u4e00\u4e2a\u529f\u80fd\u5f3a\u5927\u7684Python\u8c03\u5ea6\u5e93\uff0c\u53ef\u4ee5\u7528\u6765\u5b9a\u65f6\u6267\u884c\u4efb\u52a1\u3002\u4ee5\u4e0b\u662f\u4f7f\u7528<code>APScheduler<\/code>\u5e93\u7684\u793a\u4f8b\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">from apscheduler.schedulers.blocking import BlockingScheduler<\/p>\n<p>def my_task():<\/p>\n<p>    print(&quot;\u6267\u884c\u4efb\u52a1...&quot;)<\/p>\n<p>scheduler = BlockingScheduler()<\/p>\n<p>scheduler.add_job(my_task, &#39;interval&#39;, hours=1)  # \u6bcf\u5c0f\u65f6\u6267\u884c\u4e00\u6b21\u4efb\u52a1<\/p>\n<p>scheduler.start()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u793a\u4f8b\u4e2d\uff0c\u4f7f\u7528<code>BlockingScheduler<\/code>\u521b\u5efa\u4e00\u4e2a\u8c03\u5ea6\u5668\uff0c\u5e76\u901a\u8fc7<code>scheduler.add_job<\/code>\u65b9\u6cd5\u6dfb\u52a0\u4e00\u4e2a\u4efb\u52a1\uff0c\u8be5\u4efb\u52a1\u6bcf\u5c0f\u65f6\u6267\u884c\u4e00\u6b21\u3002<\/p>\n<\/p>\n<p><p>\u603b\u7ed3\u8d77\u6765\uff0cPython\u63d0\u4f9b\u4e86\u591a\u79cd\u65b9\u6cd5\u6765\u5b9e\u73b0\u81ea\u52a8\u8fd0\u884c\u67d0\u4e00\u7a0b\u5e8f\uff0c\u5305\u62ec\u4f7f\u7528\u8ba1\u5212\u4efb\u52a1\u3001cron\u3001while\u5faa\u73af\u3001\u7ebf\u7a0b\u548c\u8c03\u5ea6\u5e93\u3002\u53ef\u4ee5\u6839\u636e\u5177\u4f53\u9700\u6c42\u9009\u62e9\u5408\u9002\u7684\u65b9\u6cd5\uff0c\u5b9e\u73b0\u81ea\u52a8\u5316\u4efb\u52a1\u8c03\u5ea6\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u5728Python\u4e2d\u8bbe\u7f6e\u5b9a\u65f6\u81ea\u52a8\u8fd0\u884c\u7a0b\u5e8f\uff1f<\/strong><br \/>\u53ef\u4ee5\u4f7f\u7528Python\u7684<code>schedule<\/code>\u5e93\u6765\u8bbe\u7f6e\u5b9a\u65f6\u4efb\u52a1\uff0c\u6216\u8005\u5229\u7528\u64cd\u4f5c\u7cfb\u7edf\u7684\u5b9a\u65f6\u4efb\u52a1\u529f\u80fd\u3002\u5728Windows\u4e2d\uff0c\u53ef\u4ee5\u4f7f\u7528\u4efb\u52a1\u8ba1\u5212\u7a0b\u5e8f\uff1b\u5728Linux\u4e2d\uff0c\u53ef\u4ee5\u4f7f\u7528cron\u4f5c\u4e1a\u3002\u901a\u8fc7\u8fd9\u4e9b\u5de5\u5177\uff0c\u53ef\u4ee5\u8bbe\u5b9a\u7279\u5b9a\u65f6\u95f4\u6216\u65f6\u95f4\u95f4\u9694\u6765\u81ea\u52a8\u6267\u884cPython\u811a\u672c\u3002<\/p>\n<p><strong>Python\u7a0b\u5e8f\u662f\u5426\u53ef\u4ee5\u5728\u7cfb\u7edf\u542f\u52a8\u65f6\u81ea\u52a8\u8fd0\u884c\uff1f<\/strong><br \/>\u662f\u7684\uff0c\u53ef\u4ee5\u901a\u8fc7\u5c06Python\u811a\u672c\u6dfb\u52a0\u5230\u7cfb\u7edf\u542f\u52a8\u9879\u6765\u5b9e\u73b0\u3002\u5728Windows\u4e2d\uff0c\u53ef\u4ee5\u5c06\u811a\u672c\u7684\u5feb\u6377\u65b9\u5f0f\u653e\u5165\u542f\u52a8\u6587\u4ef6\u5939\u3002\u5728Linux\u4e2d\uff0c\u53ef\u4ee5\u5c06\u811a\u672c\u6dfb\u52a0\u5230<code>.bashrc<\/code>\u6216\u4f7f\u7528<code>systemd<\/code>\u670d\u52a1\u8fdb\u884c\u8bbe\u7f6e\u3002\u8fd9\u6837\uff0c\u5728\u6bcf\u6b21\u5f00\u673a\u65f6\uff0c\u7cfb\u7edf\u4f1a\u81ea\u52a8\u8fd0\u884c\u6307\u5b9a\u7684Python\u7a0b\u5e8f\u3002<\/p>\n<p><strong>\u5982\u4f55\u786e\u4fddPython\u811a\u672c\u5728\u81ea\u52a8\u8fd0\u884c\u65f6\u4e0d\u4f1a\u4e2d\u65ad\uff1f<\/strong><br \/>\u4e3a\u786e\u4fddPython\u811a\u672c\u5728\u81ea\u52a8\u8fd0\u884c\u65f6\u7684\u7a33\u5b9a\u6027\uff0c\u53ef\u4ee5\u4f7f\u7528\u5f02\u5e38\u5904\u7406\u6765\u6355\u83b7\u53ef\u80fd\u51fa\u73b0\u7684\u9519\u8bef\u3002\u6b64\u5916\uff0c\u4f7f\u7528\u65e5\u5fd7\u8bb0\u5f55\u529f\u80fd\u53ef\u4ee5\u5e2e\u52a9\u76d1\u63a7\u7a0b\u5e8f\u7684\u8fd0\u884c\u72b6\u6001\uff0c\u53ca\u65f6\u53d1\u73b0\u5e76\u89e3\u51b3\u95ee\u9898\u3002\u53ef\u4ee5\u8003\u8651\u4f7f\u7528<code>nohup<\/code>\u547d\u4ee4\u5728Linux\u4e2d\u8fd0\u884c\u811a\u672c\uff0c\u4ee5\u907f\u514d\u56e0\u7528\u6237\u6ce8\u9500\u800c\u5bfc\u81f4\u7684\u4e2d\u65ad\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"Python\u5982\u4f55\u81ea\u52a8\u8fd0\u884c\u67d0\u4e00\u7a0b\u5e8f \u5728Python\u4e2d\uff0c\u6709\u591a\u79cd\u65b9\u6cd5\u53ef\u4ee5\u5b9e\u73b0\u81ea\u52a8\u8fd0\u884c\u67d0\u4e00\u7a0b\u5e8f\u3002\u4f7f\u7528\u8ba1\u5212\u4efb\u52a1\u3001\u4f7f\u7528cr [&hellip;]","protected":false},"author":3,"featured_media":1050403,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[37],"tags":[],"acf":[],"_links":{"self":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1050401"}],"collection":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/comments?post=1050401"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1050401\/revisions"}],"predecessor-version":[{"id":1050404,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1050401\/revisions\/1050404"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/1050403"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=1050401"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=1050401"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=1050401"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}