{"id":993479,"date":"2024-12-27T08:46:23","date_gmt":"2024-12-27T00:46:23","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/993479.html"},"modified":"2024-12-27T08:46:25","modified_gmt":"2024-12-27T00:46:25","slug":"python%e5%a6%82%e4%bd%95%e5%88%9b%e5%bb%ba%e5%ae%88%e6%8a%a4%e7%ba%bf%e7%a8%8b","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/993479.html","title":{"rendered":"python\u5982\u4f55\u521b\u5efa\u5b88\u62a4\u7ebf\u7a0b"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/25070846\/81d51180-d185-4b55-a7ec-94f44557a31c.webp\" alt=\"python\u5982\u4f55\u521b\u5efa\u5b88\u62a4\u7ebf\u7a0b\" \/><\/p>\n<p><p> <strong>\u5728Python\u4e2d\u521b\u5efa\u5b88\u62a4\u7ebf\u7a0b\uff0c\u60a8\u53ef\u4ee5\u4f7f\u7528<code>threading<\/code>\u6a21\u5757\u4e2d\u7684<code>Thread<\/code>\u7c7b\uff0c\u901a\u8fc7\u8bbe\u7f6e\u7ebf\u7a0b\u7684<code>daemon<\/code>\u5c5e\u6027\u4e3a<code>True<\/code>\u3002\u5b88\u62a4\u7ebf\u7a0b\u5728\u4e3b\u7ebf\u7a0b\u7ec8\u6b62\u65f6\u81ea\u52a8\u7ed3\u675f\u3001\u9002\u7528\u4e8e\u9700\u8981\u5728\u540e\u53f0\u6267\u884c\u7684\u4efb\u52a1\uff0c\u5982\u65e5\u5fd7\u8bb0\u5f55\u3001\u76d1\u63a7\u7b49\u3002\u8981\u521b\u5efa\u5b88\u62a4\u7ebf\u7a0b\uff0c\u9996\u5148\u5b9a\u4e49\u7ebf\u7a0b\u6267\u884c\u7684\u76ee\u6807\u51fd\u6570\uff0c\u7136\u540e\u5b9e\u4f8b\u5316<code>Thread<\/code>\u5bf9\u8c61\uff0c\u5e76\u5728\u542f\u52a8\u7ebf\u7a0b\u4e4b\u524d\u8bbe\u7f6e\u5176<code>daemon<\/code>\u5c5e\u6027\u3002<\/strong><\/p>\n<\/p>\n<p><p>\u4e00\u3001\u7406\u89e3\u5b88\u62a4\u7ebf\u7a0b<\/p>\n<\/p>\n<p><p>\u5b88\u62a4\u7ebf\u7a0b\u662f\u4e00\u79cd\u7279\u6b8a\u7684\u7ebf\u7a0b\uff0c\u5b83\u5728\u7a0b\u5e8f\u7684\u4e3b\u7ebf\u7a0b\u7ed3\u675f\u65f6\u81ea\u52a8\u7ec8\u6b62\u3002\u8fd9\u610f\u5473\u7740\u5f53\u6240\u6709\u975e\u5b88\u62a4\u7ebf\u7a0b\u7ed3\u675f\u540e\uff0c\u7a0b\u5e8f\u5c06\u4e0d\u4f1a\u7b49\u5f85\u5b88\u62a4\u7ebf\u7a0b\u5b8c\u6210\u800c\u76f4\u63a5\u9000\u51fa\u3002\u5b88\u62a4\u7ebf\u7a0b\u5e38\u7528\u4e8e\u6267\u884c\u540e\u53f0\u4efb\u52a1\uff0c\u4f8b\u5982\u65e5\u5fd7\u8bb0\u5f55\u3001\u76d1\u63a7\u6216\u5176\u4ed6\u4e0d\u9700\u8981\u5728\u7a0b\u5e8f\u7ed3\u675f\u540e\u7ee7\u7eed\u8fd0\u884c\u7684\u4efb\u52a1\u3002<\/p>\n<\/p>\n<p><p>\u4e8c\u3001\u521b\u5efa\u5b88\u62a4\u7ebf\u7a0b\u7684\u6b65\u9aa4<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u5b9a\u4e49\u76ee\u6807\u51fd\u6570<\/strong><\/p>\n<\/p>\n<p><p>\u76ee\u6807\u51fd\u6570\u662f\u7ebf\u7a0b\u8981\u6267\u884c\u7684\u4efb\u52a1\u3002\u5728\u521b\u5efa\u5b88\u62a4\u7ebf\u7a0b\u4e4b\u524d\uff0c\u60a8\u9700\u8981\u5b9a\u4e49\u4e00\u4e2a\u51fd\u6570\uff0c\u4f9b\u7ebf\u7a0b\u5728\u8fd0\u884c\u65f6\u8c03\u7528\u3002\u8fd9\u4e2a\u51fd\u6570\u53ef\u4ee5\u662f\u4efb\u4f55\u53ef\u4ee5\u7528Python\u7f16\u5199\u7684\u903b\u8f91\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import time<\/p>\n<p>def background_task():<\/p>\n<p>    while True:<\/p>\n<p>        print(&quot;Running background task&quot;)<\/p>\n<p>        time.sleep(1)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u793a\u4f8b\u4e2d\uff0c<code>background_task<\/code>\u51fd\u6570\u662f\u4e00\u4e2a\u7b80\u5355\u7684\u65e0\u9650\u5faa\u73af\uff0c\u6bcf\u79d2\u8f93\u51fa\u4e00\u6b21\u6d88\u606f\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u5b9e\u4f8b\u5316\u7ebf\u7a0b\u5bf9\u8c61<\/strong><\/p>\n<\/p>\n<p><p>\u4f7f\u7528<code>threading.Thread<\/code>\u7c7b\u6765\u521b\u5efa\u7ebf\u7a0b\u5bf9\u8c61\uff0c\u5e76\u5c06\u76ee\u6807\u51fd\u6570\u4f20\u9012\u7ed9\u5b83\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import threading<\/p>\n<p>thread = threading.Thread(target=background_task)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u8bbe\u7f6e\u4e3a\u5b88\u62a4\u7ebf\u7a0b<\/strong><\/p>\n<\/p>\n<p><p>\u5728\u542f\u52a8\u7ebf\u7a0b\u4e4b\u524d\uff0c\u5c06\u5176<code>daemon<\/code>\u5c5e\u6027\u8bbe\u7f6e\u4e3a<code>True<\/code>\uff0c\u4ee5\u4fbf\u5c06\u5176\u6807\u8bb0\u4e3a\u5b88\u62a4\u7ebf\u7a0b\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">thread.daemon = True<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8bbe\u7f6e\u4e3a\u5b88\u62a4\u7ebf\u7a0b\u610f\u5473\u7740\u5f53\u4e3b\u7ebf\u7a0b\uff08\u4ee5\u53ca\u5176\u4ed6\u975e\u5b88\u62a4\u7ebf\u7a0b\uff09\u7ec8\u6b62\u65f6\uff0c\u8be5\u7ebf\u7a0b\u5c06\u81ea\u52a8\u7ed3\u675f\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u542f\u52a8\u7ebf\u7a0b<\/strong><\/p>\n<\/p>\n<p><p>\u4f7f\u7528<code>start()<\/code>\u65b9\u6cd5\u6765\u542f\u52a8\u7ebf\u7a0b\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">thread.start()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u542f\u52a8\u7ebf\u7a0b\u540e\uff0c\u5b83\u5c06\u5f00\u59cb\u6267\u884c\u76ee\u6807\u51fd\u6570\u4e2d\u7684\u4efb\u52a1\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u4e09\u3001\u4f7f\u7528\u573a\u666f<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u65e5\u5fd7\u8bb0\u5f55<\/strong><\/p>\n<\/p>\n<p><p>\u5b88\u62a4\u7ebf\u7a0b\u5e38\u7528\u4e8e\u540e\u53f0\u65e5\u5fd7\u8bb0\u5f55\u4efb\u52a1\u3002\u901a\u8fc7\u5b88\u62a4\u7ebf\u7a0b\uff0c\u65e5\u5fd7\u8bb0\u5f55\u53ef\u4ee5\u5728\u4e0d\u5f71\u54cd\u4e3b\u7a0b\u5e8f\u6267\u884c\u7684\u60c5\u51b5\u4e0b\u8fdb\u884c\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import logging<\/p>\n<p>def log_writer():<\/p>\n<p>    while True:<\/p>\n<p>        logging.info(&quot;Logging some information&quot;)<\/p>\n<p>        time.sleep(5)<\/p>\n<p>log_thread = threading.Thread(target=log_writer)<\/p>\n<p>log_thread.daemon = True<\/p>\n<p>log_thread.start()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u76d1\u63a7\u4efb\u52a1<\/strong><\/p>\n<\/p>\n<p><p>\u5728\u67d0\u4e9b\u5e94\u7528\u7a0b\u5e8f\u4e2d\uff0c\u60a8\u53ef\u80fd\u9700\u8981\u76d1\u63a7\u7cfb\u7edf\u72b6\u6001\u6216\u8d44\u6e90\u4f7f\u7528\u60c5\u51b5\u3002\u5b88\u62a4\u7ebf\u7a0b\u662f\u5b9e\u73b0\u6b64\u7c7b\u76d1\u63a7\u4efb\u52a1\u7684\u7406\u60f3\u9009\u62e9\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">def monitor_resources():<\/p>\n<p>    while True:<\/p>\n<p>        # \u5047\u8bbe\u6709\u4e00\u4e2a\u51fd\u6570 check_resources() \u8fd4\u56de\u8d44\u6e90\u4f7f\u7528\u60c5\u51b5<\/p>\n<p>        resources = check_resources()<\/p>\n<p>        print(f&quot;Current resource usage: {resources}&quot;)<\/p>\n<p>        time.sleep(10)<\/p>\n<p>monitor_thread = threading.Thread(target=monitor_resources)<\/p>\n<p>monitor_thread.daemon = True<\/p>\n<p>monitor_thread.start()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u540e\u53f0\u6570\u636e\u5904\u7406<\/strong><\/p>\n<\/p>\n<p><p>\u5bf9\u4e8e\u9700\u8981\u5728\u540e\u53f0\u5904\u7406\u6570\u636e\u7684\u5e94\u7528\u7a0b\u5e8f\uff0c\u5b88\u62a4\u7ebf\u7a0b\u53ef\u4ee5\u5e2e\u52a9\u6267\u884c\u590d\u6742\u7684\u8ba1\u7b97\u6216\u6570\u636e\u8f6c\u6362\uff0c\u800c\u4e0d\u4f1a\u963b\u585e\u4e3b\u7a0b\u5e8f\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">def data_processing():<\/p>\n<p>    while True:<\/p>\n<p>        # \u5047\u8bbe\u6709\u4e00\u4e2a\u51fd\u6570 process_data() \u5904\u7406\u6570\u636e<\/p>\n<p>        process_data()<\/p>\n<p>        time.sleep(2)<\/p>\n<p>data_thread = threading.Thread(target=data_processing)<\/p>\n<p>data_thread.daemon = True<\/p>\n<p>data_thread.start()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u56db\u3001\u6ce8\u610f\u4e8b\u9879<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u8d44\u6e90\u6e05\u7406<\/strong><\/p>\n<\/p>\n<p><p>\u7531\u4e8e\u5b88\u62a4\u7ebf\u7a0b\u4f1a\u5728\u4e3b\u7a0b\u5e8f\u7ec8\u6b62\u65f6\u81ea\u52a8\u7ed3\u675f\uff0c\u56e0\u6b64\u65e0\u6cd5\u4fdd\u8bc1\u5176\u6709\u673a\u4f1a\u6267\u884c\u8d44\u6e90\u6e05\u7406\u4ee3\u7801\uff08\u5982\u5173\u95ed\u6587\u4ef6\u3001\u91ca\u653e\u7f51\u7edc\u8fde\u63a5\u7b49\uff09\u3002\u56e0\u6b64\uff0c\u786e\u4fdd\u5728\u5b88\u62a4\u7ebf\u7a0b\u4e2d\u4f7f\u7528<code>try\/finally<\/code>\u5757\u6216\u5176\u4ed6\u673a\u5236\u6765\u6267\u884c\u5fc5\u8981\u7684\u6e05\u7406\u64cd\u4f5c\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u8c03\u8bd5\u56f0\u96be<\/strong><\/p>\n<\/p>\n<p><p>\u5b88\u62a4\u7ebf\u7a0b\u5728\u8c03\u8bd5\u65f6\u53ef\u80fd\u4f1a\u5e26\u6765\u56f0\u96be\uff0c\u56e0\u4e3a\u5b83\u4eec\u7684\u751f\u547d\u5468\u671f\u4e0d\u53d7\u4e3b\u7a0b\u5e8f\u7684\u63a7\u5236\u3002\u5982\u679c\u5b88\u62a4\u7ebf\u7a0b\u5728\u4e3b\u7a0b\u5e8f\u9000\u51fa\u524d\u9047\u5230\u95ee\u9898\uff0c\u53ef\u80fd\u4f1a\u5bfc\u81f4\u610f\u6599\u4e4b\u5916\u7684\u884c\u4e3a\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u907f\u514d\u957f\u65f6\u95f4\u963b\u585e\u64cd\u4f5c<\/strong><\/p>\n<\/p>\n<p><p>\u7531\u4e8e\u5b88\u62a4\u7ebf\u7a0b\u4f1a\u5728\u4e3b\u7a0b\u5e8f\u9000\u51fa\u65f6\u7ec8\u6b62\uff0c\u56e0\u6b64\u5e94\u907f\u514d\u5728\u5b88\u62a4\u7ebf\u7a0b\u4e2d\u6267\u884c\u957f\u65f6\u95f4\u963b\u585e\u7684\u64cd\u4f5c\u3002\u5426\u5219\uff0c\u53ef\u80fd\u4f1a\u5bfc\u81f4\u7a0b\u5e8f\u65e0\u6cd5\u6b63\u5e38\u7ed3\u675f\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u4e94\u3001\u603b\u7ed3<\/p>\n<\/p>\n<p><p>Python\u4e2d\u7684\u5b88\u62a4\u7ebf\u7a0b\u63d0\u4f9b\u4e86\u4e00\u79cd\u5728\u540e\u53f0\u6267\u884c\u4efb\u52a1\u800c\u4e0d\u5e72\u6270\u4e3b\u7a0b\u5e8f\u6267\u884c\u7684\u65b9\u6cd5\u3002\u901a\u8fc7\u8bbe\u7f6e\u7ebf\u7a0b\u7684<code>daemon<\/code>\u5c5e\u6027\u4e3a<code>True<\/code>\uff0c\u53ef\u4ee5\u8f7b\u677e\u521b\u5efa\u548c\u7ba1\u7406\u5b88\u62a4\u7ebf\u7a0b\u3002\u65e0\u8bba\u662f\u65e5\u5fd7\u8bb0\u5f55\u3001\u76d1\u63a7\u4efb\u52a1\u8fd8\u662f\u540e\u53f0\u6570\u636e\u5904\u7406\uff0c\u5b88\u62a4\u7ebf\u7a0b\u90fd\u80fd\u591f\u7b80\u5316\u8fd9\u4e9b\u4efb\u52a1\u7684\u5b9e\u73b0\u3002\u7136\u800c\uff0c\u5728\u4f7f\u7528\u5b88\u62a4\u7ebf\u7a0b\u65f6\uff0c\u52a1\u5fc5\u6ce8\u610f\u8d44\u6e90\u6e05\u7406\u548c\u907f\u514d\u957f\u65f6\u95f4\u963b\u585e\u64cd\u4f5c\uff0c\u4ee5\u786e\u4fdd\u7a0b\u5e8f\u7684\u7a33\u5b9a\u6027\u548c\u6b63\u786e\u6027\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5b88\u62a4\u7ebf\u7a0b\u4e0e\u666e\u901a\u7ebf\u7a0b\u6709\u4ec0\u4e48\u533a\u522b\uff1f<\/strong><br \/>\u5b88\u62a4\u7ebf\u7a0b\u662f\u6307\u5728\u540e\u53f0\u8fd0\u884c\u7684\u7ebf\u7a0b\uff0c\u5176\u4e3b\u8981\u4f5c\u7528\u662f\u652f\u6301\u5176\u4ed6\u7ebf\u7a0b\u7684\u8fd0\u884c\u3002\u5f53\u6240\u6709\u975e\u5b88\u62a4\u7ebf\u7a0b\u7ed3\u675f\u65f6\uff0c\u5b88\u62a4\u7ebf\u7a0b\u4f1a\u81ea\u52a8\u7ec8\u6b62\uff0c\u800c\u4e0d\u9700\u8981\u7b49\u5f85\u5176\u5b8c\u6210\u3002\u8fd9\u610f\u5473\u7740\u5b88\u62a4\u7ebf\u7a0b\u4e0d\u4f1a\u963b\u6b62\u7a0b\u5e8f\u7684\u9000\u51fa\uff0c\u800c\u666e\u901a\u7ebf\u7a0b\u5219\u4f1a\u963b\u6b62\u7a0b\u5e8f\u9000\u51fa\uff0c\u76f4\u5230\u5b83\u4eec\u5b8c\u6210\u5176\u4efb\u52a1\u3002<\/p>\n<p><strong>\u5982\u4f55\u5728Python\u4e2d\u8bbe\u7f6e\u4e00\u4e2a\u7ebf\u7a0b\u4e3a\u5b88\u62a4\u7ebf\u7a0b\uff1f<\/strong><br \/>\u5728Python\u4e2d\uff0c\u53ef\u4ee5\u901a\u8fc7\u5728\u521b\u5efa\u7ebf\u7a0b\u65f6\u8bbe\u7f6e<code>daemon<\/code>\u5c5e\u6027\u4e3a<code>True<\/code>\u6765\u5c06\u7ebf\u7a0b\u8bbe\u7f6e\u4e3a\u5b88\u62a4\u7ebf\u7a0b\u3002\u4f8b\u5982\uff0c\u5728\u4f7f\u7528<code>threading.Thread<\/code>\u65f6\uff0c\u53ef\u4ee5\u5728\u521b\u5efa\u5b9e\u4f8b\u540e\u8bbe\u7f6e<code>thread.daemon = True<\/code>\uff0c\u6216\u8005\u5728\u5b9e\u4f8b\u5316\u65f6\u76f4\u63a5\u4f20\u5165<code>daemon=True<\/code>\u53c2\u6570\u3002\u8fd9\u5c06\u786e\u4fdd\u8be5\u7ebf\u7a0b\u5728\u6240\u6709\u975e\u5b88\u62a4\u7ebf\u7a0b\u7ed3\u675f\u540e\u81ea\u52a8\u9000\u51fa\u3002<\/p>\n<p><strong>\u4f7f\u7528\u5b88\u62a4\u7ebf\u7a0b\u65f6\u9700\u8981\u6ce8\u610f\u54ea\u4e9b\u4e8b\u9879\uff1f<\/strong><br \/>\u4f7f\u7528\u5b88\u62a4\u7ebf\u7a0b\u65f6\uff0c\u5e94\u6ce8\u610f\u5176\u53ef\u80fd\u5e26\u6765\u7684\u6570\u636e\u4e22\u5931\u6216\u72b6\u6001\u4e0d\u4e00\u81f4\u7684\u95ee\u9898\u3002\u56e0\u4e3a\u5b88\u62a4\u7ebf\u7a0b\u5728\u4e3b\u7a0b\u5e8f\u7ed3\u675f\u65f6\u4f1a\u88ab\u5f3a\u5236\u7ec8\u6b62\uff0c\u4efb\u4f55\u672a\u5b8c\u6210\u7684\u64cd\u4f5c\u90fd\u53ef\u80fd\u4f1a\u88ab\u4e2d\u65ad\u3002\u56e0\u6b64\uff0c\u5728\u4f7f\u7528\u5b88\u62a4\u7ebf\u7a0b\u65f6\uff0c\u8981\u786e\u4fdd\u5176\u4efb\u52a1\u662f\u8f7b\u91cf\u7ea7\u7684\uff0c\u6216\u8005\u5728\u5fc5\u8981\u65f6\u8bbe\u8ba1\u5408\u9002\u7684\u673a\u5236\u6765\u5904\u7406\u7ebf\u7a0b\u95f4\u7684\u901a\u4fe1\u548c\u72b6\u6001\u7ba1\u7406\uff0c\u4ee5\u786e\u4fdd\u6570\u636e\u7684\u5b8c\u6574\u6027\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u5728Python\u4e2d\u521b\u5efa\u5b88\u62a4\u7ebf\u7a0b\uff0c\u60a8\u53ef\u4ee5\u4f7f\u7528threading\u6a21\u5757\u4e2d\u7684Thread\u7c7b\uff0c\u901a\u8fc7\u8bbe\u7f6e\u7ebf\u7a0b\u7684daemon\u5c5e [&hellip;]","protected":false},"author":3,"featured_media":993490,"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\/993479"}],"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=993479"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/993479\/revisions"}],"predecessor-version":[{"id":993492,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/993479\/revisions\/993492"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/993490"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=993479"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=993479"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=993479"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}