{"id":1087035,"date":"2025-01-08T13:31:21","date_gmt":"2025-01-08T05:31:21","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1087035.html"},"modified":"2025-01-08T13:31:24","modified_gmt":"2025-01-08T05:31:24","slug":"python%e5%a6%82%e4%bd%95%e7%bb%93%e6%9d%9f%e4%b8%8d%e9%9c%80%e8%a6%81%e7%9a%84%e7%ba%bf%e7%a8%8b-2","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/1087035.html","title":{"rendered":"python\u5982\u4f55\u7ed3\u675f\u4e0d\u9700\u8981\u7684\u7ebf\u7a0b"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/24200138\/43df0a63-20ee-498a-91c3-4e87cec51cf7.webp\" alt=\"python\u5982\u4f55\u7ed3\u675f\u4e0d\u9700\u8981\u7684\u7ebf\u7a0b\" \/><\/p>\n<p><p> <strong>\u5728Python\u4e2d\uff0c\u7ed3\u675f\u4e0d\u9700\u8981\u7684\u7ebf\u7a0b\u53ef\u4ee5\u901a\u8fc7\u4ee5\u4e0b\u51e0\u79cd\u65b9\u6cd5\uff1a\u4f7f\u7528\u6807\u5fd7\u53d8\u91cf\u3001\u7ebf\u7a0b.join()\u65b9\u6cd5\u3001\u5b88\u62a4\u7ebf\u7a0b\u6a21\u5f0f\u3002<\/strong>\u5176\u4e2d\uff0c\u6700\u5e38\u7528\u4e14\u63a8\u8350\u7684\u65b9\u6cd5\u662f\u4f7f\u7528\u6807\u5fd7\u53d8\u91cf\u3002\u8fd9\u79cd\u65b9\u6cd5\u901a\u8fc7\u5728\u7ebf\u7a0b\u4e2d\u8bbe\u7f6e\u4e00\u4e2a\u6807\u5fd7\u53d8\u91cf\uff0c\u5f53\u9700\u8981\u7ed3\u675f\u7ebf\u7a0b\u65f6\uff0c\u6539\u53d8\u6807\u5fd7\u53d8\u91cf\u7684\u72b6\u6001\uff0c\u7ebf\u7a0b\u5728\u4e0b\u6b21\u68c0\u67e5\u6807\u5fd7\u53d8\u91cf\u65f6\u53d1\u73b0\u72b6\u6001\u5df2\u53d8\uff0c\u5373\u53ef\u4f18\u96c5\u5730\u9000\u51fa\u3002\u8fd9\u79cd\u65b9\u6cd5\u4e0d\u4ec5\u5b89\u5168\u4e14\u6613\u4e8e\u7ba1\u7406\u3002<\/p>\n<\/p>\n<p><p>\u4e00\u3001\u4f7f\u7528\u6807\u5fd7\u53d8\u91cf<\/p>\n<\/p>\n<p><p>\u4f7f\u7528\u6807\u5fd7\u53d8\u91cf\u662f\u4e00\u79cd\u5e38\u89c1\u4e14\u63a8\u8350\u7684\u65b9\u5f0f\u3002\u5728\u8fd9\u79cd\u65b9\u6cd5\u4e2d\uff0c\u6211\u4eec\u4f1a\u5728\u7ebf\u7a0b\u7c7b\u4e2d\u5b9a\u4e49\u4e00\u4e2a\u6807\u5fd7\u53d8\u91cf\uff0c\u5e76\u5728\u7ebf\u7a0b\u7684\u4e3b\u5faa\u73af\u4e2d\u4e0d\u65ad\u68c0\u67e5\u8fd9\u4e2a\u53d8\u91cf\u3002\u5982\u679c\u9700\u8981\u7ed3\u675f\u7ebf\u7a0b\uff0c\u53ea\u9700\u5c06\u6807\u5fd7\u53d8\u91cf\u8bbe\u7f6e\u4e3aTrue\uff0c\u7ebf\u7a0b\u5728\u4e0b\u6b21\u68c0\u67e5\u5230\u8be5\u53d8\u91cf\u65f6\u4f1a\u81ea\u52a8\u7ed3\u675f\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import threading<\/p>\n<p>import time<\/p>\n<p>class MyThread(threading.Thread):<\/p>\n<p>    def __init__(self):<\/p>\n<p>        super(MyThread, self).__init__()<\/p>\n<p>        self._stop_event = threading.Event()<\/p>\n<p>    def run(self):<\/p>\n<p>        while not self._stop_event.is_set():<\/p>\n<p>            print(&quot;Thread is running&quot;)<\/p>\n<p>            time.sleep(1)<\/p>\n<p>    def stop(self):<\/p>\n<p>        self._stop_event.set()<\/p>\n<h2><strong>\u521b\u5efa\u5e76\u542f\u52a8\u7ebf\u7a0b<\/strong><\/h2>\n<p>thread = MyThread()<\/p>\n<p>thread.start()<\/p>\n<h2><strong>\u8ba9\u7ebf\u7a0b\u8fd0\u884c\u4e00\u6bb5\u65f6\u95f4<\/strong><\/h2>\n<p>time.sleep(5)<\/p>\n<h2><strong>\u505c\u6b62\u7ebf\u7a0b<\/strong><\/h2>\n<p>thread.stop()<\/p>\n<p>thread.join()<\/p>\n<p>print(&quot;Thread has been stopped&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u793a\u4f8b\u4e2d\uff0c\u6211\u4eec\u5b9a\u4e49\u4e86\u4e00\u4e2a\u7ebf\u7a0b\u7c7bMyThread\uff0c\u5e76\u4f7f\u7528\u4e00\u4e2aEvent\u5bf9\u8c61\u4f5c\u4e3a\u6807\u5fd7\u53d8\u91cf\u3002\u7ebf\u7a0b\u7684\u4e3b\u5faa\u73af\u4e2d\u4e0d\u65ad\u68c0\u67e5\u8fd9\u4e2aEvent\u5bf9\u8c61\u7684\u72b6\u6001\uff0c\u5982\u679c\u72b6\u6001\u4e3aset\uff0c\u7ebf\u7a0b\u5c06\u7ed3\u675f\u3002\u901a\u8fc7\u8c03\u7528thread.stop()\u65b9\u6cd5\uff0c\u53ef\u4ee5\u5c06Event\u5bf9\u8c61\u7684\u72b6\u6001\u8bbe\u7f6e\u4e3aset\uff0c\u4ece\u800c\u7ed3\u675f\u7ebf\u7a0b\u3002<\/p>\n<\/p>\n<p><p>\u4e8c\u3001\u7ebf\u7a0b.join()\u65b9\u6cd5<\/p>\n<\/p>\n<p><p>thread.join()\u65b9\u6cd5\u7528\u4e8e\u7b49\u5f85\u7ebf\u7a0b\u7ec8\u6b62\u3002\u5c3d\u7ba1\u8fd9\u4e2a\u65b9\u6cd5\u4e0d\u80fd\u76f4\u63a5\u7ed3\u675f\u7ebf\u7a0b\uff0c\u4f46\u53ef\u4ee5\u786e\u4fdd\u4e3b\u7ebf\u7a0b\u5728\u5b50\u7ebf\u7a0b\u7ed3\u675f\u524d\u4e0d\u4f1a\u7ee7\u7eed\u6267\u884c\u3002\u53ef\u4ee5\u7ed3\u5408\u6807\u5fd7\u53d8\u91cf\u548cjoin()\u65b9\u6cd5\u6765\u4f18\u96c5\u5730\u7ed3\u675f\u7ebf\u7a0b\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import threading<\/p>\n<p>import time<\/p>\n<p>class MyThread(threading.Thread):<\/p>\n<p>    def __init__(self):<\/p>\n<p>        super(MyThread, self).__init__()<\/p>\n<p>        self._stop_event = threading.Event()<\/p>\n<p>    def run(self):<\/p>\n<p>        while not self._stop_event.is_set():<\/p>\n<p>            print(&quot;Thread is running&quot;)<\/p>\n<p>            time.sleep(1)<\/p>\n<p>    def stop(self):<\/p>\n<p>        self._stop_event.set()<\/p>\n<h2><strong>\u521b\u5efa\u5e76\u542f\u52a8\u7ebf\u7a0b<\/strong><\/h2>\n<p>thread = MyThread()<\/p>\n<p>thread.start()<\/p>\n<h2><strong>\u8ba9\u7ebf\u7a0b\u8fd0\u884c\u4e00\u6bb5\u65f6\u95f4<\/strong><\/h2>\n<p>time.sleep(5)<\/p>\n<h2><strong>\u505c\u6b62\u7ebf\u7a0b\u5e76\u7b49\u5f85\u5176\u7ed3\u675f<\/strong><\/h2>\n<p>thread.stop()<\/p>\n<p>thread.join()<\/p>\n<p>print(&quot;Thread has been stopped&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u793a\u4f8b\u4e2d\uff0c\u6211\u4eec\u4f9d\u7136\u4f7f\u7528\u6807\u5fd7\u53d8\u91cf\u6765\u63a7\u5236\u7ebf\u7a0b\u7684\u7ed3\u675f\uff0c\u4f46\u5728\u505c\u6b62\u7ebf\u7a0b\u540e\uff0c\u6211\u4eec\u4f7f\u7528thread.join()\u65b9\u6cd5\u7b49\u5f85\u7ebf\u7a0b\u5b8c\u5168\u7ec8\u6b62\u3002<\/p>\n<\/p>\n<p><p>\u4e09\u3001\u5b88\u62a4\u7ebf\u7a0b\u6a21\u5f0f<\/p>\n<\/p>\n<p><p>\u5b88\u62a4\u7ebf\u7a0b\u662f\u6307\u5728\u4e3b\u7ebf\u7a0b\u7ed3\u675f\u540e\u81ea\u52a8\u7ec8\u6b62\u7684\u7ebf\u7a0b\u3002\u53ef\u4ee5\u901a\u8fc7\u8bbe\u7f6e\u7ebf\u7a0b\u7684daemon\u5c5e\u6027\u4e3aTrue\u6765\u521b\u5efa\u5b88\u62a4\u7ebf\u7a0b\u3002\u867d\u7136\u8fd9\u79cd\u65b9\u6cd5\u7b80\u5355\uff0c\u4f46\u4e0d\u63a8\u8350\u4f7f\u7528\uff0c\u56e0\u4e3a\u5b88\u62a4\u7ebf\u7a0b\u4f1a\u5728\u4e3b\u7ebf\u7a0b\u7ed3\u675f\u65f6\u7acb\u5373\u7ec8\u6b62\uff0c\u53ef\u80fd\u4f1a\u5bfc\u81f4\u4e00\u4e9b\u8d44\u6e90\u672a\u80fd\u88ab\u6b63\u786e\u91ca\u653e\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import threading<\/p>\n<p>import time<\/p>\n<p>def daemon_thread():<\/p>\n<p>    while True:<\/p>\n<p>        print(&quot;Daemon thread is running&quot;)<\/p>\n<p>        time.sleep(1)<\/p>\n<h2><strong>\u521b\u5efa\u5e76\u542f\u52a8\u5b88\u62a4\u7ebf\u7a0b<\/strong><\/h2>\n<p>thread = threading.Thread(target=daemon_thread)<\/p>\n<p>thread.setDaemon(True)<\/p>\n<p>thread.start()<\/p>\n<h2><strong>\u8ba9\u4e3b\u7ebf\u7a0b\u8fd0\u884c\u4e00\u6bb5\u65f6\u95f4<\/strong><\/h2>\n<p>time.sleep(5)<\/p>\n<p>print(&quot;M<a href=\"https:\/\/docs.pingcode.com\/blog\/59162.html\" target=\"_blank\">AI<\/a>n thread has ended&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u793a\u4f8b\u4e2d\uff0c\u6211\u4eec\u521b\u5efa\u4e86\u4e00\u4e2a\u5b88\u62a4\u7ebf\u7a0b\uff0c\u5e76\u5728\u4e3b\u7ebf\u7a0b\u7ed3\u675f\u540e\uff0c\u5b88\u62a4\u7ebf\u7a0b\u4e5f\u4f1a\u81ea\u52a8\u7ed3\u675f\u3002\u7136\u800c\uff0c\u8fd9\u79cd\u65b9\u6cd5\u4e0d\u63a8\u8350\u4f7f\u7528\uff0c\u56e0\u4e3a\u5b88\u62a4\u7ebf\u7a0b\u5728\u4e3b\u7ebf\u7a0b\u7ed3\u675f\u65f6\u4f1a\u88ab\u5f3a\u5236\u7ec8\u6b62\uff0c\u65e0\u6cd5\u786e\u4fdd\u8d44\u6e90\u7684\u6b63\u786e\u91ca\u653e\u3002<\/p>\n<\/p>\n<p><p>\u56db\u3001\u4fe1\u53f7\u91cf\u548c\u6761\u4ef6\u53d8\u91cf<\/p>\n<\/p>\n<p><p>\u5728\u66f4\u590d\u6742\u7684\u573a\u666f\u4e2d\uff0c\u53ef\u4ee5\u4f7f\u7528\u4fe1\u53f7\u91cf\uff08Semaphore\uff09\u548c\u6761\u4ef6\u53d8\u91cf\uff08Condition\uff09\u6765\u63a7\u5236\u7ebf\u7a0b\u7684\u7ed3\u675f\u3002\u8fd9\u4e9b\u540c\u6b65\u673a\u5236\u63d0\u4f9b\u4e86\u66f4\u7075\u6d3b\u7684\u7ebf\u7a0b\u63a7\u5236\u65b9\u5f0f\uff0c\u4f46\u76f8\u5bf9\u590d\u6742\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import threading<\/p>\n<p>import time<\/p>\n<p>class MyThread(threading.Thread):<\/p>\n<p>    def __init__(self, condition):<\/p>\n<p>        super(MyThread, self).__init__()<\/p>\n<p>        self.condition = condition<\/p>\n<p>        self.running = True<\/p>\n<p>    def run(self):<\/p>\n<p>        while self.running:<\/p>\n<p>            with self.condition:<\/p>\n<p>                self.condition.wait()<\/p>\n<p>                if not self.running:<\/p>\n<p>                    break<\/p>\n<p>            print(&quot;Thread is running&quot;)<\/p>\n<p>            time.sleep(1)<\/p>\n<p>    def stop(self):<\/p>\n<p>        self.running = False<\/p>\n<p>        with self.condition:<\/p>\n<p>            self.condition.notify_all()<\/p>\n<p>condition = threading.Condition()<\/p>\n<p>thread = MyThread(condition)<\/p>\n<p>thread.start()<\/p>\n<p>time.sleep(5)<\/p>\n<p>thread.stop()<\/p>\n<p>thread.join()<\/p>\n<p>print(&quot;Thread has been stopped&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u793a\u4f8b\u4e2d\uff0c\u6211\u4eec\u4f7f\u7528\u4e86Condition\u5bf9\u8c61\u6765\u63a7\u5236\u7ebf\u7a0b\u3002\u901a\u8fc7\u8c03\u7528condition.wait()\u65b9\u6cd5\uff0c\u7ebf\u7a0b\u4f1a\u7b49\u5f85\u6761\u4ef6\u53d8\u91cf\u88ab\u901a\u77e5\u3002\u5f53\u9700\u8981\u7ed3\u675f\u7ebf\u7a0b\u65f6\uff0c\u901a\u8fc7condition.notify_all()\u65b9\u6cd5\u5524\u9192\u7ebf\u7a0b\uff0c\u5e76\u68c0\u67e5running\u6807\u5fd7\u53d8\u91cf\u6765\u51b3\u5b9a\u662f\u5426\u7ed3\u675f\u7ebf\u7a0b\u3002<\/p>\n<\/p>\n<p><p>\u603b\u7ed3<\/p>\n<\/p>\n<p><p>\u5728Python\u4e2d\u7ed3\u675f\u4e0d\u9700\u8981\u7684\u7ebf\u7a0b\u6709\u591a\u79cd\u65b9\u6cd5\uff0c\u5176\u4e2d\u6700\u5e38\u7528\u4e14\u63a8\u8350\u7684\u65b9\u6cd5\u662f\u4f7f\u7528\u6807\u5fd7\u53d8\u91cf\u3002\u8fd9\u79cd\u65b9\u6cd5\u4e0d\u4ec5\u5b89\u5168\u4e14\u6613\u4e8e\u7ba1\u7406\u3002\u6b64\u5916\uff0c\u8fd8\u53ef\u4ee5\u7ed3\u5408\u7ebf\u7a0b\u7684join()\u65b9\u6cd5\u786e\u4fdd\u4e3b\u7ebf\u7a0b\u5728\u5b50\u7ebf\u7a0b\u7ed3\u675f\u524d\u4e0d\u4f1a\u7ee7\u7eed\u6267\u884c\u3002\u5728\u67d0\u4e9b\u7279\u6b8a\u573a\u666f\u4e0b\uff0c\u53ef\u4ee5\u8003\u8651\u4f7f\u7528\u4fe1\u53f7\u91cf\u548c\u6761\u4ef6\u53d8\u91cf\u6765\u5b9e\u73b0\u66f4\u590d\u6742\u7684\u7ebf\u7a0b\u63a7\u5236\u3002\u7136\u800c\uff0c\u4e0d\u63a8\u8350\u4f7f\u7528\u5b88\u62a4\u7ebf\u7a0b\u6a21\u5f0f\uff0c\u56e0\u4e3a\u5b83\u65e0\u6cd5\u786e\u4fdd\u8d44\u6e90\u7684\u6b63\u786e\u91ca\u653e\u3002\u9009\u62e9\u5408\u9002\u7684\u65b9\u6cd5\u53d6\u51b3\u4e8e\u5177\u4f53\u7684\u5e94\u7528\u573a\u666f\u548c\u9700\u6c42\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u5b89\u5168\u5730\u7ec8\u6b62\u4e00\u4e2a\u6b63\u5728\u8fd0\u884c\u7684\u7ebf\u7a0b\uff1f<\/strong><br \/>\u5728Python\u4e2d\uff0c\u5b89\u5168\u5730\u7ec8\u6b62\u4e00\u4e2a\u7ebf\u7a0b\u901a\u5e38\u4f9d\u8d56\u4e8e\u4f7f\u7528\u6807\u5fd7\u53d8\u91cf\u548c\u7ebf\u7a0b\u7684\u534f\u4f5c\u3002\u60a8\u53ef\u4ee5\u5b9a\u4e49\u4e00\u4e2a\u5168\u5c40\u53d8\u91cf\uff0c\u7ebf\u7a0b\u5728\u6267\u884c\u4efb\u52a1\u65f6\u5b9a\u671f\u68c0\u67e5\u8fd9\u4e2a\u53d8\u91cf\u7684\u72b6\u6001\u3002\u5982\u679c\u53d8\u91cf\u6307\u793a\u7ebf\u7a0b\u5e94\u8be5\u7ec8\u6b62\uff0c\u7ebf\u7a0b\u53ef\u4ee5\u4f18\u96c5\u5730\u9000\u51fa\u3002\u8fd9\u79cd\u65b9\u5f0f\u907f\u514d\u4e86\u5f3a\u5236\u7ed3\u675f\u7ebf\u7a0b\u53ef\u80fd\u5bfc\u81f4\u7684\u8d44\u6e90\u6cc4\u9732\u548c\u6570\u636e\u635f\u574f\u3002<\/p>\n<p><strong>\u4f7f\u7528<code>threading<\/code>\u6a21\u5757\u65f6\uff0c\u5982\u4f55\u907f\u514d\u7ebf\u7a0b\u6cc4\u9732\uff1f<\/strong><br \/>\u4e3a\u4e86\u907f\u514d\u7ebf\u7a0b\u6cc4\u9732\uff0c\u786e\u4fdd\u5728\u521b\u5efa\u7ebf\u7a0b\u65f6\u4f7f\u7528<code>threading<\/code>\u6a21\u5757\u4e2d\u7684<code>join()<\/code>\u65b9\u6cd5\u3002\u8c03\u7528<code>join()<\/code>\u4f1a\u963b\u585e\u4e3b\u7ebf\u7a0b\uff0c\u76f4\u5230\u76ee\u6807\u7ebf\u7a0b\u6267\u884c\u5b8c\u6bd5\u3002\u8fd9\u80fd\u5e2e\u52a9\u60a8\u7ba1\u7406\u7ebf\u7a0b\u7684\u751f\u547d\u5468\u671f\uff0c\u5e76\u786e\u4fdd\u6240\u6709\u8d44\u6e90\u5728\u4f7f\u7528\u5b8c\u6bd5\u540e\u5f97\u5230\u91ca\u653e\u3002\u6b64\u5916\uff0c\u786e\u4fdd\u7ebf\u7a0b\u5185\u90e8\u7684\u4efb\u52a1\u80fd\u591f\u53ca\u65f6\u7ed3\u675f\uff0c\u907f\u514d\u957f\u65f6\u95f4\u8fd0\u884c\u7684\u64cd\u4f5c\u3002<\/p>\n<p><strong>\u5728Python\u4e2d\u662f\u5426\u53ef\u4ee5\u5f3a\u5236\u7ec8\u6b62\u7ebf\u7a0b\uff1f<\/strong><br \/>Python\u5e76\u6ca1\u6709\u63d0\u4f9b\u76f4\u63a5\u5f3a\u5236\u7ec8\u6b62\u7ebf\u7a0b\u7684\u65b9\u6cd5\uff0c\u56e0\u4e3a\u8fd9\u53ef\u80fd\u5bfc\u81f4\u6570\u636e\u4e0d\u4e00\u81f4\u6216\u8d44\u6e90\u672a\u91ca\u653e\u3002\u4e0d\u8fc7\uff0c\u53ef\u4ee5\u901a\u8fc7\u6807\u5fd7\u53d8\u91cf\u6216\u5f02\u5e38\u5904\u7406\u7684\u65b9\u5f0f\u6765\u5b9e\u73b0\u7ebf\u7a0b\u7684\u5b89\u5168\u9000\u51fa\u3002\u5bf9\u4e8e\u9700\u8981\u66f4\u9ad8\u5e76\u53d1\u6027\u7684\u5e94\u7528\uff0c\u53ef\u4ee5\u8003\u8651\u4f7f\u7528<code>multiprocessing<\/code>\u6a21\u5757\uff0c\u5b83\u5141\u8bb8\u5728\u4e0d\u540c\u8fdb\u7a0b\u4e2d\u8fd0\u884c\u4efb\u52a1\uff0c\u8fdb\u7a0b\u95f4\u9694\u79bb\u80fd\u907f\u514d\u4e00\u4e9b\u7ebf\u7a0b\u5b89\u5168\u95ee\u9898\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u5728Python\u4e2d\uff0c\u7ed3\u675f\u4e0d\u9700\u8981\u7684\u7ebf\u7a0b\u53ef\u4ee5\u901a\u8fc7\u4ee5\u4e0b\u51e0\u79cd\u65b9\u6cd5\uff1a\u4f7f\u7528\u6807\u5fd7\u53d8\u91cf\u3001\u7ebf\u7a0b.join()\u65b9\u6cd5\u3001\u5b88\u62a4\u7ebf\u7a0b\u6a21\u5f0f\u3002\u5176 [&hellip;]","protected":false},"author":3,"featured_media":1087047,"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\/1087035"}],"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=1087035"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1087035\/revisions"}],"predecessor-version":[{"id":1087053,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1087035\/revisions\/1087053"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/1087047"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=1087035"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=1087035"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=1087035"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}