{"id":979260,"date":"2024-12-27T06:44:57","date_gmt":"2024-12-26T22:44:57","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/979260.html"},"modified":"2024-12-27T06:44:59","modified_gmt":"2024-12-26T22:44:59","slug":"%e5%a6%82%e4%bd%95%e8%87%aa%e5%8a%a8%e8%b0%83%e7%94%a8python%e8%84%9a%e6%9c%ac","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/979260.html","title":{"rendered":"\u5982\u4f55\u81ea\u52a8\u8c03\u7528python\u811a\u672c"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/24205159\/29f02baf-9067-41a5-9113-4d923eb0e68d.webp\" alt=\"\u5982\u4f55\u81ea\u52a8\u8c03\u7528python\u811a\u672c\" \/><\/p>\n<p><p> <strong>\u81ea\u52a8\u8c03\u7528Python\u811a\u672c\u7684\u65b9\u6cd5\u6709\u591a\u79cd\uff0c\u5305\u62ec\u4f7f\u7528\u8ba1\u5212\u4efb\u52a1\u7ba1\u7406\u5668\u3001\u4f7f\u7528cron\u4f5c\u4e1a\u3001\u5229\u7528\u811a\u672c\u4e2d\u7684\u5faa\u73af\u3001\u8c03\u7528\u7b2c\u4e09\u65b9\u81ea\u52a8\u5316\u5de5\u5177\u3001\u901a\u8fc7API\u89e6\u53d1\u7b49\u3002\u672c\u6587\u5c06\u8be6\u7ec6\u4ecb\u7ecd\u4f7f\u7528\u8ba1\u5212\u4efb\u52a1\u7ba1\u7406\u5668\u548ccron\u4f5c\u4e1a\u8fd9\u4e24\u79cd\u5e38\u89c1\u65b9\u6cd5\u3002<\/strong><\/p>\n<\/p>\n<p><p>\u4e00\u3001\u4f7f\u7528\u8ba1\u5212\u4efb\u52a1\u7ba1\u7406\u5668<\/p>\n<\/p>\n<p><p>\u8ba1\u5212\u4efb\u52a1\u7ba1\u7406\u5668\u662fWindows\u7cfb\u7edf\u4e2d\u7528\u4e8e\u5b9a\u65f6\u6267\u884c\u7a0b\u5e8f\u7684\u5de5\u5177\uff0c\u5b83\u63d0\u4f9b\u4e86\u4e00\u79cd\u65b9\u4fbf\u7684\u65b9\u5f0f\u6765\u81ea\u52a8\u8c03\u7528Python\u811a\u672c\u3002\u7528\u6237\u53ef\u4ee5\u8bbe\u7f6e\u4efb\u52a1\u7684\u89e6\u53d1\u6761\u4ef6\uff0c\u4f8b\u5982\u5728\u7279\u5b9a\u7684\u65f6\u95f4\u3001\u65e5\u671f\u6216\u4e8b\u4ef6\u53d1\u751f\u65f6\u6267\u884c\u3002<\/p>\n<\/p>\n<ol>\n<li><strong>\u521b\u5efa\u4efb\u52a1<\/strong><\/li>\n<\/ol>\n<p><p>\u5728Windows\u4e2d\uff0c\u6253\u5f00\u201c\u4efb\u52a1\u8ba1\u5212\u7a0b\u5e8f\u201d\uff0c\u5728\u53f3\u4fa7\u9009\u62e9\u201c\u521b\u5efa\u57fa\u672c\u4efb\u52a1\u201d\u3002\u586b\u5199\u4efb\u52a1\u540d\u79f0\u548c\u63cf\u8ff0\u540e\uff0c\u9009\u62e9\u89e6\u53d1\u5668\u7c7b\u578b\uff0c\u4f8b\u5982\u6bcf\u5929\u3001\u6bcf\u5468\u6216\u6bcf\u6708\u7b49\u3002<\/p>\n<\/p>\n<ol start=\"2\">\n<li><strong>\u8bbe\u7f6e\u89e6\u53d1\u6761\u4ef6<\/strong><\/li>\n<\/ol>\n<p><p>\u5728\u89e6\u53d1\u5668\u9875\u9762\uff0c\u8bbe\u7f6e\u4efb\u52a1\u7684\u5177\u4f53\u542f\u52a8\u65f6\u95f4\u548c\u9891\u7387\u3002\u4f8b\u5982\uff0c\u6bcf\u5929\u7684\u7279\u5b9a\u65f6\u95f4\u8fd0\u884cPython\u811a\u672c\u3002<\/p>\n<\/p>\n<ol start=\"3\">\n<li><strong>\u914d\u7f6e\u64cd\u4f5c<\/strong><\/li>\n<\/ol>\n<p><p>\u5728\u64cd\u4f5c\u9875\u9762\uff0c\u9009\u62e9\u201c\u542f\u52a8\u7a0b\u5e8f\u201d\uff0c\u7136\u540e\u6d4f\u89c8\u5e76\u9009\u62e9Python\u89e3\u91ca\u5668\u7684\u8def\u5f84\uff08\u901a\u5e38\u662fpython.exe\uff09\u3002\u5728\u201c\u6dfb\u52a0\u53c2\u6570\u201d\u4e2d\u586b\u5199\u811a\u672c\u7684\u8def\u5f84\u548c\u53c2\u6570\uff08\u5982\u679c\u6709\uff09\u3002<\/p>\n<\/p>\n<ol start=\"4\">\n<li><strong>\u5b8c\u6210\u4efb\u52a1\u8bbe\u7f6e<\/strong><\/li>\n<\/ol>\n<p><p>\u6700\u540e\uff0c\u68c0\u67e5\u4efb\u52a1\u7684\u603b\u7ed3\u4fe1\u606f\uff0c\u786e\u8ba4\u65e0\u8bef\u540e\u5b8c\u6210\u4efb\u52a1\u521b\u5efa\u3002\u6b64\u65f6\uff0cPython\u811a\u672c\u4f1a\u6309\u7167\u8bbe\u7f6e\u7684\u65f6\u95f4\u81ea\u52a8\u6267\u884c\u3002<\/p>\n<\/p>\n<p><p>\u4f7f\u7528\u8ba1\u5212\u4efb\u52a1\u7ba1\u7406\u5668\u7684\u597d\u5904\u662f\u7b80\u5355\u76f4\u89c2\uff0c\u9002\u5408\u4e0d\u719f\u6089\u547d\u4ee4\u884c\u7684\u7528\u6237\u3002\u7f3a\u70b9\u662f\u4ec5\u9650\u4e8eWindows\u73af\u5883\u3002<\/p>\n<\/p>\n<p><p>\u4e8c\u3001\u4f7f\u7528cron\u4f5c\u4e1a<\/p>\n<\/p>\n<p><p>Cron\u662fLinux\u7cfb\u7edf\u4e2d\u7684\u4efb\u52a1\u8c03\u5ea6\u5de5\u5177\uff0c\u5141\u8bb8\u7528\u6237\u5728\u7279\u5b9a\u65f6\u95f4\u81ea\u52a8\u6267\u884c\u811a\u672c\u3002\u901a\u8fc7\u914d\u7f6ecron\u4f5c\u4e1a\uff0c\u53ef\u4ee5\u7075\u6d3b\u5730\u8c03\u5ea6Python\u811a\u672c\u3002<\/p>\n<\/p>\n<ol>\n<li><strong>\u7f16\u8f91crontab\u6587\u4ef6<\/strong><\/li>\n<\/ol>\n<p><p>\u5728\u7ec8\u7aef\u4e2d\u8f93\u5165\u547d\u4ee4<code>crontab -e<\/code>\uff0c\u6253\u5f00\u5f53\u524d\u7528\u6237\u7684crontab\u6587\u4ef6\u3002\u5982\u679c\u662f\u7b2c\u4e00\u6b21\u4f7f\u7528\uff0c\u53ef\u80fd\u9700\u8981\u9009\u62e9\u9ed8\u8ba4\u7684\u7f16\u8f91\u5668\u3002<\/p>\n<\/p>\n<ol start=\"2\">\n<li><strong>\u6dfb\u52a0cron\u4f5c\u4e1a<\/strong><\/li>\n<\/ol>\n<p><p>\u5728crontab\u6587\u4ef6\u4e2d\uff0c\u6dfb\u52a0\u4e00\u884c\u6307\u5b9a\u65f6\u95f4\u548c\u811a\u672c\u8def\u5f84\u7684cron\u4f5c\u4e1a\u3002\u4f8b\u5982\uff0c\u4ee5\u4e0b\u547d\u4ee4\u6bcf\u5929\u51cc\u66682\u70b9\u8fd0\u884cPython\u811a\u672c\uff1a<\/p>\n<\/p>\n<p><pre><code>0 2 * * * \/usr\/bin\/python3 \/path\/to\/your_script.py<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>   \u65f6\u95f4\u683c\u5f0f\u4e3a\uff1a\u5206\u949f \u5c0f\u65f6 \u65e5\u671f \u6708\u4efd \u661f\u671f\u3002\u661f\u53f7\u8868\u793a\u4efb\u610f\u503c\u3002<\/p>\n<\/p>\n<ol start=\"3\">\n<li><strong>\u4fdd\u5b58\u5e76\u9000\u51fa<\/strong><\/li>\n<\/ol>\n<p><p>\u7f16\u8f91\u5b8c\u6210\u540e\uff0c\u4fdd\u5b58\u6587\u4ef6\u5e76\u9000\u51fa\u7f16\u8f91\u5668\u3002\u7cfb\u7edf\u4f1a\u81ea\u52a8\u52a0\u8f7d\u65b0\u7684cron\u4f5c\u4e1a\u914d\u7f6e\u3002<\/p>\n<\/p>\n<ol start=\"4\">\n<li><strong>\u9a8c\u8bc1cron\u4f5c\u4e1a<\/strong><\/li>\n<\/ol>\n<p><p>\u53ef\u4ee5\u901a\u8fc7\u547d\u4ee4<code>crontab -l<\/code>\u67e5\u770b\u5f53\u524d\u7528\u6237\u7684\u6240\u6709cron\u4f5c\u4e1a\uff0c\u786e\u8ba4\u914d\u7f6e\u662f\u5426\u6b63\u786e\u3002<\/p>\n<\/p>\n<p><p>\u4f7f\u7528cron\u4f5c\u4e1a\u7684\u4f18\u70b9\u662f\u7075\u6d3b\u6027\u9ad8\uff0c\u9002\u5408Linux\/Unix\u73af\u5883\u3002\u7f3a\u70b9\u662f\u9700\u8981\u4e00\u5b9a\u7684\u547d\u4ee4\u884c\u64cd\u4f5c\u77e5\u8bc6\u3002<\/p>\n<\/p>\n<p><p>\u4e09\u3001\u5229\u7528\u811a\u672c\u4e2d\u7684\u5faa\u73af<\/p>\n<\/p>\n<p><p>\u5728\u67d0\u4e9b\u60c5\u51b5\u4e0b\uff0c\u53ef\u4ee5\u5728Python\u811a\u672c\u4e2d\u7f16\u5199\u5faa\u73af\uff0c\u4f7f\u5176\u5728\u7279\u5b9a\u6761\u4ef6\u4e0b\u81ea\u52a8\u8fd0\u884c\u3002\u4ee5\u4e0b\u662f\u4e00\u4e2a\u7b80\u5355\u7684\u4f8b\u5b50\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import time<\/p>\n<p>def m<a href=\"https:\/\/docs.pingcode.com\/blog\/59162.html\" target=\"_blank\">AI<\/a>n_task():<\/p>\n<p>    # Your main task logic here<\/p>\n<p>    print(&quot;Task executed&quot;)<\/p>\n<p>while True:<\/p>\n<p>    main_task()<\/p>\n<p>    time.sleep(3600)  # Wait for one hour before the next execution<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u79cd\u65b9\u6cd5\u9002\u5408\u9700\u8981\u9891\u7e41\u8fd0\u884c\u7684\u4efb\u52a1\uff0c\u4f46\u53ef\u80fd\u4f1a\u6d88\u8017\u8f83\u591a\u7684\u7cfb\u7edf\u8d44\u6e90\u3002<\/p>\n<\/p>\n<p><p>\u56db\u3001\u8c03\u7528\u7b2c\u4e09\u65b9\u81ea\u52a8\u5316\u5de5\u5177<\/p>\n<\/p>\n<p><p>\u5e02\u573a\u4e0a\u6709\u5f88\u591a\u7b2c\u4e09\u65b9\u5de5\u5177\u53ef\u4ee5\u5e2e\u52a9\u81ea\u52a8\u8c03\u7528Python\u811a\u672c\uff0c\u5982Apache Airflow\u3001Celery\u3001Task Scheduler\u7b49\u3002\u8fd9\u4e9b\u5de5\u5177\u901a\u5e38\u7528\u4e8e\u66f4\u590d\u6742\u7684\u5de5\u4f5c\u6d41\u7ba1\u7406\uff0c\u63d0\u4f9b\u4e86\u4e30\u5bcc\u7684\u529f\u80fd\u548c\u754c\u9762\u652f\u6301\u3002<\/p>\n<\/p>\n<ol>\n<li><strong>Apache Airflow<\/strong><\/li>\n<\/ol>\n<p><p>Apache Airflow\u662f\u4e00\u4e2a\u5e73\u53f0\uff0c\u7528\u4e8e\u521b\u5efa\u3001\u8c03\u5ea6\u548c\u76d1\u63a7\u5de5\u4f5c\u6d41\u3002\u7528\u6237\u53ef\u4ee5\u5b9a\u4e49DAG\uff08\u6709\u5411\u65e0\u73af\u56fe\uff09\uff0c\u5c06\u591a\u4e2a\u4efb\u52a1\u7ec4\u5408\u6210\u590d\u6742\u7684\u5de5\u4f5c\u6d41\u3002<\/p>\n<\/p>\n<ol start=\"2\">\n<li><strong>Celery<\/strong><\/li>\n<\/ol>\n<p><p>Celery\u662f\u4e00\u4e2a\u5206\u5e03\u5f0f\u4efb\u52a1\u961f\u5217\uff0c\u652f\u6301\u5b9e\u65f6\u5904\u7406\u548c\u8c03\u5ea6\u3002\u9002\u5408\u9700\u8981\u9ad8\u5e76\u53d1\u548c\u5f02\u6b65\u4efb\u52a1\u5904\u7406\u7684\u573a\u666f\u3002<\/p>\n<\/p>\n<p><p>\u4e94\u3001\u901a\u8fc7API\u89e6\u53d1<\/p>\n<\/p>\n<p><p>\u5982\u679cPython\u811a\u672c\u9700\u8981\u54cd\u5e94\u5916\u90e8\u4e8b\u4ef6\uff0c\u53ef\u4ee5\u901a\u8fc7API\u89e6\u53d1\u6267\u884c\u3002\u7528\u6237\u53ef\u4ee5\u5c06\u811a\u672c\u90e8\u7f72\u4e3aWeb\u670d\u52a1\uff0c\u63a5\u6536HTTP\u8bf7\u6c42\u6765\u6267\u884c\u4efb\u52a1\u3002<\/p>\n<\/p>\n<ol>\n<li><strong>\u4f7f\u7528Flask\u6216Django<\/strong><\/li>\n<\/ol>\n<p><p>\u53ef\u4ee5\u4f7f\u7528Flask\u6216Django\u7b49\u6846\u67b6\uff0c\u5c06Python\u811a\u672c\u5305\u88c5\u6210API\u670d\u52a1\u3002\u5728\u63a5\u6536\u5230\u7279\u5b9a\u8bf7\u6c42\u65f6\uff0c\u6267\u884c\u76f8\u5e94\u7684\u4efb\u52a1\u3002<\/p>\n<\/p>\n<ol start=\"2\">\n<li><strong>\u96c6\u6210\u7b2c\u4e09\u65b9\u670d\u52a1<\/strong><\/li>\n<\/ol>\n<p><p>\u8bb8\u591a\u4e91\u670d\u52a1\u63d0\u4f9b\u4e8b\u4ef6\u89e6\u53d1\u529f\u80fd\uff0c\u4f8b\u5982AWS Lambda\u3001Google Cloud Functions\u7b49\u3002\u7528\u6237\u53ef\u4ee5\u5c06\u811a\u672c\u90e8\u7f72\u5230\u8fd9\u4e9b\u5e73\u53f0\uff0c\u901a\u8fc7API\u6216\u5176\u4ed6\u4e8b\u4ef6\u89e6\u53d1\u6267\u884c\u3002<\/p>\n<\/p>\n<p><p>\u603b\u7ed3<\/p>\n<\/p>\n<p><p>\u81ea\u52a8\u8c03\u7528Python\u811a\u672c\u7684\u65b9\u6cd5\u591a\u79cd\u591a\u6837\uff0c\u7528\u6237\u53ef\u4ee5\u6839\u636e\u5177\u4f53\u9700\u6c42\u9009\u62e9\u5408\u9002\u7684\u65b9\u6848\u3002\u8ba1\u5212\u4efb\u52a1\u7ba1\u7406\u5668\u548ccron\u4f5c\u4e1a\u9002\u5408\u7b80\u5355\u7684\u5b9a\u65f6\u4efb\u52a1\uff0c\u811a\u672c\u5185\u5faa\u73af\u9002\u5408\u9891\u7e41\u8fd0\u884c\u7684\u4efb\u52a1\uff0c\u7b2c\u4e09\u65b9\u5de5\u5177\u548cAPI\u89e6\u53d1\u9002\u5408\u590d\u6742\u7684\u5de5\u4f5c\u6d41\u548c\u4e8b\u4ef6\u9a71\u52a8\u7684\u4efb\u52a1\u3002\u5728\u5b9e\u9645\u5e94\u7528\u4e2d\uff0c\u9700\u7efc\u5408\u8003\u8651\u7cfb\u7edf\u73af\u5883\u3001\u4efb\u52a1\u590d\u6742\u5ea6\u548c\u8d44\u6e90\u6d88\u8017\u7b49\u56e0\u7d20\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u8bbe\u7f6e\u5b9a\u65f6\u4efb\u52a1\u6765\u81ea\u52a8\u8c03\u7528Python\u811a\u672c\uff1f<\/strong><br \/>\u53ef\u4ee5\u4f7f\u7528\u64cd\u4f5c\u7cfb\u7edf\u7684\u4efb\u52a1\u8c03\u5ea6\u7a0b\u5e8f\u6765\u8bbe\u7f6e\u5b9a\u65f6\u4efb\u52a1\u3002\u5728Windows\u4e2d\uff0c\u53ef\u4ee5\u4f7f\u7528\u201c\u4efb\u52a1\u8ba1\u5212\u7a0b\u5e8f\u201d\uff1b\u5728Linux\u7cfb\u7edf\u4e2d\uff0c\u53ef\u4ee5\u4f7f\u7528<code>cron<\/code>\u3002\u4f60\u9700\u8981\u5b9a\u4e49\u4efb\u52a1\u7684\u89e6\u53d1\u6761\u4ef6\uff0c\u6bd4\u5982\u6bcf\u5929\u3001\u6bcf\u5468\u6216\u6bcf\u5c0f\u65f6\u8fd0\u884c\u6307\u5b9a\u7684Python\u811a\u672c\u3002\u786e\u4fdd\u811a\u672c\u7684\u8def\u5f84\u548cPython\u89e3\u91ca\u5668\u7684\u8def\u5f84\u6b63\u786e\u65e0\u8bef\u3002<\/p>\n<p><strong>\u662f\u5426\u53ef\u4ee5\u901a\u8fc7\u7f51\u7edc\u670d\u52a1\u6765\u8c03\u7528Python\u811a\u672c\uff1f<\/strong><br \/>\u662f\u7684\uff0c\u53ef\u4ee5\u901a\u8fc7\u6784\u5efaWeb\u670d\u52a1\u6765\u5b9e\u73b0\u3002\u4f7f\u7528Flask\u6216Django\u7b49\u6846\u67b6\uff0c\u53ef\u4ee5\u5c06Python\u811a\u672c\u5c01\u88c5\u4e3aAPI\u63a5\u53e3\u3002\u8fd9\u6837\uff0c\u4efb\u4f55\u53ef\u4ee5\u53d1\u9001HTTP\u8bf7\u6c42\u7684\u5e94\u7528\u7a0b\u5e8f\u6216\u8bbe\u5907\u90fd\u80fd\u8c03\u7528\u8fd9\u4e2a\u63a5\u53e3\uff0c\u4ece\u800c\u89e6\u53d1Python\u811a\u672c\u7684\u6267\u884c\u3002\u8fd9\u79cd\u65b9\u6cd5\u5bf9\u4e8e\u9700\u8981\u8fdc\u7a0b\u8c03\u7528\u6216\u96c6\u6210\u5176\u4ed6\u7cfb\u7edf\u7684\u573a\u666f\u5c24\u4e3a\u6709\u6548\u3002<\/p>\n<p><strong>\u5982\u4f55\u5728Python\u811a\u672c\u4e2d\u5904\u7406\u81ea\u52a8\u8c03\u7528\u65f6\u7684\u9519\u8bef\uff1f<\/strong><br \/>\u5728\u811a\u672c\u4e2d\uff0c\u53ef\u4ee5\u4f7f\u7528\u5f02\u5e38\u5904\u7406\u673a\u5236\u6765\u6355\u6349\u9519\u8bef\u3002\u901a\u8fc7<code>try<\/code>\u548c<code>except<\/code>\u8bed\u53e5\uff0c\u53ef\u4ee5\u786e\u4fdd\u5373\u4f7f\u5728\u6267\u884c\u8fc7\u7a0b\u4e2d\u51fa\u73b0\u9519\u8bef\uff0c\u811a\u672c\u4ecd\u7136\u80fd\u591f\u8bb0\u5f55\u65e5\u5fd7\u6216\u53d1\u9001\u901a\u77e5\uff0c\u800c\u4e0d\u662f\u5b8c\u5168\u5d29\u6e83\u3002\u6b64\u5916\uff0c\u53ef\u4ee5\u8003\u8651\u4f7f\u7528\u5de5\u5177\u5982Sentry\u6765\u76d1\u63a7\u811a\u672c\u7684\u8fd0\u884c\u72b6\u6001\u5e76\u6355\u83b7\u9519\u8bef\u4fe1\u606f\uff0c\u4ee5\u4fbf\u8fdb\u884c\u540e\u7eed\u5206\u6790\u548c\u4fee\u590d\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u81ea\u52a8\u8c03\u7528Python\u811a\u672c\u7684\u65b9\u6cd5\u6709\u591a\u79cd\uff0c\u5305\u62ec\u4f7f\u7528\u8ba1\u5212\u4efb\u52a1\u7ba1\u7406\u5668\u3001\u4f7f\u7528cron\u4f5c\u4e1a\u3001\u5229\u7528\u811a\u672c\u4e2d\u7684\u5faa\u73af\u3001\u8c03\u7528\u7b2c\u4e09\u65b9\u81ea [&hellip;]","protected":false},"author":3,"featured_media":979265,"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\/979260"}],"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=979260"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/979260\/revisions"}],"predecessor-version":[{"id":979268,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/979260\/revisions\/979268"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/979265"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=979260"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=979260"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=979260"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}