{"id":1117151,"date":"2025-01-08T18:23:19","date_gmt":"2025-01-08T10:23:19","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1117151.html"},"modified":"2025-01-08T18:23:22","modified_gmt":"2025-01-08T10:23:22","slug":"python%e5%a6%82%e4%bd%95%e5%90%8c%e6%97%b6%e8%bf%90%e8%a1%8c%e4%b8%a4%e4%b8%aa%e4%bb%a3%e7%a0%81","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/1117151.html","title":{"rendered":"python\u5982\u4f55\u540c\u65f6\u8fd0\u884c\u4e24\u4e2a\u4ee3\u7801"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/25081203\/6c69890e-c683-453e-a6f1-d30ecbe8bb3c.webp\" alt=\"python\u5982\u4f55\u540c\u65f6\u8fd0\u884c\u4e24\u4e2a\u4ee3\u7801\" \/><\/p>\n<p><p> <strong>\u4f7f\u7528\u591a\u7ebf\u7a0b\u3001\u4f7f\u7528\u591a\u8fdb\u7a0b\u3001\u4f7f\u7528\u5f02\u6b65\u7f16\u7a0b<\/strong>\u3002\u4f7f\u7528\u591a\u7ebf\u7a0b\u53ef\u4ee5\u5728\u5355\u4e2a\u8fdb\u7a0b\u5185\u5e76\u53d1\u6267\u884c\u4ee3\u7801\uff0c\u9002\u7528\u4e8eI\/O\u5bc6\u96c6\u578b\u4efb\u52a1\uff1b\u4f7f\u7528\u591a\u8fdb\u7a0b\u53ef\u4ee5\u5728\u591a\u4e2a\u8fdb\u7a0b\u4e2d\u8fd0\u884c\u4ee3\u7801\uff0c\u9002\u7528\u4e8eCPU\u5bc6\u96c6\u578b\u4efb\u52a1\uff1b\u4f7f\u7528\u5f02\u6b65\u7f16\u7a0b\u53ef\u4ee5\u4f7f\u7a0b\u5e8f\u5728\u7b49\u5f85I\/O\u64cd\u4f5c\u5b8c\u6210\u65f6\u6267\u884c\u5176\u4ed6\u4efb\u52a1\u3002\u4e0b\u9762\u8be6\u7ec6\u63cf\u8ff0\u5982\u4f55\u4f7f\u7528\u591a\u7ebf\u7a0b\u6765\u5b9e\u73b0\u540c\u65f6\u8fd0\u884c\u4e24\u4e2a\u4ee3\u7801\u3002<\/p>\n<\/p>\n<p><h3>\u4e00\u3001\u4f7f\u7528\u591a\u7ebf\u7a0b<\/h3>\n<\/p>\n<p><h4>1\u3001\u591a\u7ebf\u7a0b\u7684\u6982\u5ff5<\/h4>\n<\/p>\n<p><p>\u591a\u7ebf\u7a0b\u662f\u4e00\u79cd\u5e76\u53d1\u6267\u884c\u4ee3\u7801\u7684\u6280\u672f\uff0c\u9002\u7528\u4e8eI\/O\u5bc6\u96c6\u578b\u4efb\u52a1\uff0c\u5982\u6587\u4ef6\u8bfb\u5199\u3001\u7f51\u7edc\u8bf7\u6c42\u7b49\u3002Python\u4e2d\u7684<code>threading<\/code>\u6a21\u5757\u63d0\u4f9b\u4e86\u521b\u5efa\u548c\u7ba1\u7406\u7ebf\u7a0b\u7684\u529f\u80fd\u3002<\/p>\n<\/p>\n<p><h4>2\u3001\u521b\u5efa\u7ebf\u7a0b\u5e76\u8fd0\u884c\u4ee3\u7801<\/h4>\n<\/p>\n<p><p>\u4ee5\u4e0b\u662f\u4e00\u4e2a\u7b80\u5355\u7684\u4f8b\u5b50\uff0c\u5c55\u793a\u5982\u4f55\u4f7f\u7528<code>threading<\/code>\u6a21\u5757\u521b\u5efa\u4e24\u4e2a\u7ebf\u7a0b\u5e76\u540c\u65f6\u8fd0\u884c\u4e24\u4e2a\u51fd\u6570\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import threading<\/p>\n<p>import time<\/p>\n<p>def task1():<\/p>\n<p>    for i in range(5):<\/p>\n<p>        print(f&quot;Task 1 - Iteration {i}&quot;)<\/p>\n<p>        time.sleep(1)<\/p>\n<p>def task2():<\/p>\n<p>    for i in range(5):<\/p>\n<p>        print(f&quot;Task 2 - Iteration {i}&quot;)<\/p>\n<p>        time.sleep(1)<\/p>\n<h2><strong>\u521b\u5efa\u7ebf\u7a0b<\/strong><\/h2>\n<p>thread1 = threading.Thread(target=task1)<\/p>\n<p>thread2 = threading.Thread(target=task2)<\/p>\n<h2><strong>\u542f\u52a8\u7ebf\u7a0b<\/strong><\/h2>\n<p>thread1.start()<\/p>\n<p>thread2.start()<\/p>\n<h2><strong>\u7b49\u5f85\u7ebf\u7a0b\u5b8c\u6210<\/strong><\/h2>\n<p>thread1.join()<\/p>\n<p>thread2.join()<\/p>\n<p>print(&quot;Both tasks are completed.&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u4f8b\u5b50\u4e2d\uff0c<code>task1<\/code>\u548c<code>task2<\/code>\u51fd\u6570\u5206\u522b\u5728\u4e24\u4e2a\u7ebf\u7a0b\u4e2d\u8fd0\u884c\u3002\u6bcf\u4e2a\u7ebf\u7a0b\u6253\u5370\u6d88\u606f\u5e76\u6682\u505c1\u79d2\uff0c\u4e24\u4e2a\u7ebf\u7a0b\u5e76\u53d1\u6267\u884c\uff0c\u56e0\u6b64\u8f93\u51fa\u5c06\u4ea4\u66ff\u51fa\u73b0\u3002<\/p>\n<\/p>\n<p><h4>3\u3001\u591a\u7ebf\u7a0b\u7684\u6ce8\u610f\u4e8b\u9879<\/h4>\n<\/p>\n<p><p>\u867d\u7136\u591a\u7ebf\u7a0b\u53ef\u4ee5\u63d0\u9ad8I\/O\u5bc6\u96c6\u578b\u4efb\u52a1\u7684\u6548\u7387\uff0c\u4f46\u5728Python\u4e2d\uff0c\u56e0Global Interpreter Lock\uff08GIL\uff09\u7684\u5b58\u5728\uff0c\u591a\u4e2a\u7ebf\u7a0b\u4e0d\u80fd\u540c\u65f6\u6267\u884cPython\u5b57\u8282\u7801\uff0c\u5bfc\u81f4CPU\u5bc6\u96c6\u578b\u4efb\u52a1\u7684\u6027\u80fd\u63d0\u5347\u6709\u9650\u3002\u5bf9\u4e8eCPU\u5bc6\u96c6\u578b\u4efb\u52a1\uff0c\u63a8\u8350\u4f7f\u7528\u591a\u8fdb\u7a0b\u6280\u672f\u3002<\/p>\n<\/p>\n<p><h3>\u4e8c\u3001\u4f7f\u7528\u591a\u8fdb\u7a0b<\/h3>\n<\/p>\n<p><h4>1\u3001\u591a\u8fdb\u7a0b\u7684\u6982\u5ff5<\/h4>\n<\/p>\n<p><p>\u591a\u8fdb\u7a0b\u662f\u4e00\u79cd\u5e76\u884c\u6267\u884c\u4ee3\u7801\u7684\u6280\u672f\uff0c\u9002\u7528\u4e8eCPU\u5bc6\u96c6\u578b\u4efb\u52a1\u3002Python\u4e2d\u7684<code>multiprocessing<\/code>\u6a21\u5757\u63d0\u4f9b\u4e86\u521b\u5efa\u548c\u7ba1\u7406\u8fdb\u7a0b\u7684\u529f\u80fd\u3002<\/p>\n<\/p>\n<p><h4>2\u3001\u521b\u5efa\u8fdb\u7a0b\u5e76\u8fd0\u884c\u4ee3\u7801<\/h4>\n<\/p>\n<p><p>\u4ee5\u4e0b\u662f\u4e00\u4e2a\u7b80\u5355\u7684\u4f8b\u5b50\uff0c\u5c55\u793a\u5982\u4f55\u4f7f\u7528<code>multiprocessing<\/code>\u6a21\u5757\u521b\u5efa\u4e24\u4e2a\u8fdb\u7a0b\u5e76\u540c\u65f6\u8fd0\u884c\u4e24\u4e2a\u51fd\u6570\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import multiprocessing<\/p>\n<p>import time<\/p>\n<p>def task1():<\/p>\n<p>    for i in range(5):<\/p>\n<p>        print(f&quot;Task 1 - Iteration {i}&quot;)<\/p>\n<p>        time.sleep(1)<\/p>\n<p>def task2():<\/p>\n<p>    for i in range(5):<\/p>\n<p>        print(f&quot;Task 2 - Iteration {i}&quot;)<\/p>\n<p>        time.sleep(1)<\/p>\n<h2><strong>\u521b\u5efa\u8fdb\u7a0b<\/strong><\/h2>\n<p>process1 = multiprocessing.Process(target=task1)<\/p>\n<p>process2 = multiprocessing.Process(target=task2)<\/p>\n<h2><strong>\u542f\u52a8\u8fdb\u7a0b<\/strong><\/h2>\n<p>process1.start()<\/p>\n<p>process2.start()<\/p>\n<h2><strong>\u7b49\u5f85\u8fdb\u7a0b\u5b8c\u6210<\/strong><\/h2>\n<p>process1.join()<\/p>\n<p>process2.join()<\/p>\n<p>print(&quot;Both tasks are completed.&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u4f8b\u5b50\u4e2d\uff0c<code>task1<\/code>\u548c<code>task2<\/code>\u51fd\u6570\u5206\u522b\u5728\u4e24\u4e2a\u8fdb\u7a0b\u4e2d\u8fd0\u884c\u3002\u6bcf\u4e2a\u8fdb\u7a0b\u6253\u5370\u6d88\u606f\u5e76\u6682\u505c1\u79d2\uff0c\u4e24\u4e2a\u8fdb\u7a0b\u5e76\u884c\u6267\u884c\uff0c\u56e0\u6b64\u8f93\u51fa\u5c06\u4ea4\u66ff\u51fa\u73b0\u3002<\/p>\n<\/p>\n<p><h4>3\u3001\u591a\u8fdb\u7a0b\u7684\u6ce8\u610f\u4e8b\u9879<\/h4>\n<\/p>\n<p><p>\u591a\u8fdb\u7a0b\u53ef\u4ee5\u5145\u5206\u5229\u7528\u591a\u6838CPU\u7684\u4f18\u52bf\uff0c\u63d0\u9ad8CPU\u5bc6\u96c6\u578b\u4efb\u52a1\u7684\u6027\u80fd\u3002\u7136\u800c\uff0c\u591a\u8fdb\u7a0b\u7684\u5f00\u9500\u8f83\u5927\uff08\u5982\u5185\u5b58\u6d88\u8017\u3001\u8fdb\u7a0b\u95f4\u901a\u4fe1\u7b49\uff09\uff0c\u9700\u8981\u6743\u8861\u4f7f\u7528\u3002<\/p>\n<\/p>\n<p><h3>\u4e09\u3001\u4f7f\u7528\u5f02\u6b65\u7f16\u7a0b<\/h3>\n<\/p>\n<p><h4>1\u3001\u5f02\u6b65\u7f16\u7a0b\u7684\u6982\u5ff5<\/h4>\n<\/p>\n<p><p>\u5f02\u6b65\u7f16\u7a0b\u662f\u4e00\u79cd\u975e\u963b\u585e\u7684\u7f16\u7a0b\u6a21\u578b\uff0c\u9002\u7528\u4e8eI\/O\u5bc6\u96c6\u578b\u4efb\u52a1\u3002Python\u4e2d\u7684<code>asyncio<\/code>\u6a21\u5757\u63d0\u4f9b\u4e86\u5f02\u6b65\u7f16\u7a0b\u7684\u652f\u6301\uff0c\u4f7f\u7a0b\u5e8f\u5728\u7b49\u5f85I\/O\u64cd\u4f5c\u5b8c\u6210\u65f6\u6267\u884c\u5176\u4ed6\u4efb\u52a1\u3002<\/p>\n<\/p>\n<p><h4>2\u3001\u521b\u5efa\u5f02\u6b65\u4efb\u52a1\u5e76\u8fd0\u884c\u4ee3\u7801<\/h4>\n<\/p>\n<p><p>\u4ee5\u4e0b\u662f\u4e00\u4e2a\u7b80\u5355\u7684\u4f8b\u5b50\uff0c\u5c55\u793a\u5982\u4f55\u4f7f\u7528<code>asyncio<\/code>\u6a21\u5757\u521b\u5efa\u4e24\u4e2a\u5f02\u6b65\u4efb\u52a1\u5e76\u540c\u65f6\u8fd0\u884c\u4e24\u4e2a\u51fd\u6570\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import asyncio<\/p>\n<p>async def task1():<\/p>\n<p>    for i in range(5):<\/p>\n<p>        print(f&quot;Task 1 - Iteration {i}&quot;)<\/p>\n<p>        aw<a href=\"https:\/\/docs.pingcode.com\/blog\/59162.html\" target=\"_blank\">AI<\/a>t asyncio.sleep(1)<\/p>\n<p>async def task2():<\/p>\n<p>    for i in range(5):<\/p>\n<p>        print(f&quot;Task 2 - Iteration {i}&quot;)<\/p>\n<p>        await asyncio.sleep(1)<\/p>\n<p>async def main():<\/p>\n<p>    # \u521b\u5efa\u5e76\u8fd0\u884c\u5f02\u6b65\u4efb\u52a1<\/p>\n<p>    await asyncio.gather(task1(), task2())<\/p>\n<h2><strong>\u8fd0\u884c\u4e3b\u51fd\u6570<\/strong><\/h2>\n<p>asyncio.run(main())<\/p>\n<p>print(&quot;Both tasks are completed.&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u4f8b\u5b50\u4e2d\uff0c<code>task1<\/code>\u548c<code>task2<\/code>\u51fd\u6570\u4f7f\u7528<code>async<\/code>\u548c<code>await<\/code>\u5173\u952e\u5b57\u5b9a\u4e49\u4e3a\u5f02\u6b65\u51fd\u6570\u3002<code>asyncio.gather<\/code>\u51fd\u6570\u7528\u4e8e\u5e76\u53d1\u6267\u884c\u591a\u4e2a\u5f02\u6b65\u4efb\u52a1\u3002<\/p>\n<\/p>\n<p><h4>3\u3001\u5f02\u6b65\u7f16\u7a0b\u7684\u6ce8\u610f\u4e8b\u9879<\/h4>\n<\/p>\n<p><p>\u5f02\u6b65\u7f16\u7a0b\u53ef\u4ee5\u663e\u8457\u63d0\u9ad8I\/O\u5bc6\u96c6\u578b\u4efb\u52a1\u7684\u6027\u80fd\uff0c\u4f46\u7f16\u5199\u548c\u8c03\u8bd5\u5f02\u6b65\u4ee3\u7801\u76f8\u5bf9\u590d\u6742\u3002\u9700\u8981\u5145\u5206\u7406\u89e3\u5f02\u6b65\u7f16\u7a0b\u6a21\u578b\u548c\u76f8\u5173\u6982\u5ff5\uff0c\u5982\u4e8b\u4ef6\u5faa\u73af\u3001\u534f\u7a0b\u7b49\u3002<\/p>\n<\/p>\n<p><h3>\u56db\u3001\u603b\u7ed3<\/h3>\n<\/p>\n<p><p>Python\u63d0\u4f9b\u4e86\u591a\u79cd\u6280\u672f\u6765\u5b9e\u73b0\u540c\u65f6\u8fd0\u884c\u4e24\u4e2a\u4ee3\u7801\uff0c\u5305\u62ec\u591a\u7ebf\u7a0b\u3001\u591a\u8fdb\u7a0b\u548c\u5f02\u6b65\u7f16\u7a0b\u3002\u9009\u62e9\u5408\u9002\u7684\u6280\u672f\u53d6\u51b3\u4e8e\u4efb\u52a1\u7684\u6027\u8d28\uff1a<\/p>\n<\/p>\n<ul>\n<li><strong>\u591a\u7ebf\u7a0b<\/strong>\uff1a\u9002\u7528\u4e8eI\/O\u5bc6\u96c6\u578b\u4efb\u52a1\uff0c\u5982\u6587\u4ef6\u8bfb\u5199\u3001\u7f51\u7edc\u8bf7\u6c42\u7b49\u3002<\/li>\n<li><strong>\u591a\u8fdb\u7a0b<\/strong>\uff1a\u9002\u7528\u4e8eCPU\u5bc6\u96c6\u578b\u4efb\u52a1\uff0c\u5982\u8ba1\u7b97\u5bc6\u96c6\u578b\u64cd\u4f5c\u3001\u6570\u636e\u5904\u7406\u7b49\u3002<\/li>\n<li><strong>\u5f02\u6b65\u7f16\u7a0b<\/strong>\uff1a\u9002\u7528\u4e8eI\/O\u5bc6\u96c6\u578b\u4efb\u52a1\uff0c\u5c24\u5176\u662f\u9700\u8981\u5904\u7406\u5927\u91cf\u5e76\u53d1I\/O\u64cd\u4f5c\u7684\u573a\u666f\u3002<\/li>\n<\/ul>\n<p><p>\u6839\u636e\u4efb\u52a1\u7684\u5177\u4f53\u9700\u6c42\uff0c\u9009\u62e9\u5408\u9002\u7684\u6280\u672f\u53ef\u4ee5\u663e\u8457\u63d0\u9ad8\u7a0b\u5e8f\u7684\u6027\u80fd\u548c\u6548\u7387\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u5728Python\u4e2d\u5b9e\u73b0\u591a\u7ebf\u7a0b\u6216\u591a\u8fdb\u7a0b\u6765\u540c\u65f6\u8fd0\u884c\u4e24\u4e2a\u4ee3\u7801\uff1f<\/strong><\/p>\n<p>\u5728Python\u4e2d\uff0c\u53ef\u4ee5\u4f7f\u7528<code>threading<\/code>\u6a21\u5757\u6765\u5b9e\u73b0\u591a\u7ebf\u7a0b\uff0c\u6216\u8005\u4f7f\u7528<code>multiprocessing<\/code>\u6a21\u5757\u6765\u5b9e\u73b0\u591a\u8fdb\u7a0b\u3002\u8fd9\u4e24\u79cd\u65b9\u5f0f\u5141\u8bb8\u4f60\u540c\u65f6\u8fd0\u884c\u591a\u4e2a\u4ee3\u7801\u5757\u3002\u591a\u7ebf\u7a0b\u9002\u5408I\/O\u5bc6\u96c6\u578b\u4efb\u52a1\uff0c\u800c\u591a\u8fdb\u7a0b\u9002\u5408CPU\u5bc6\u96c6\u578b\u4efb\u52a1\u3002\u4f60\u53ef\u4ee5\u6839\u636e\u5b9e\u9645\u9700\u6c42\u9009\u62e9\u9002\u5408\u7684\u65b9\u5f0f\u3002<\/p>\n<p><strong>\u4f7f\u7528\u5f02\u6b65\u7f16\u7a0b\u662f\u5426\u53ef\u4ee5\u5b9e\u73b0\u540c\u65f6\u8fd0\u884c\u4e24\u4e2aPython\u4ee3\u7801\uff1f<\/strong><\/p>\n<p>\u5f02\u6b65\u7f16\u7a0b\u662f\u53e6\u4e00\u79cd\u5b9e\u73b0\u540c\u65f6\u8fd0\u884c\u4ee3\u7801\u7684\u65b9\u5f0f\u3002\u901a\u8fc7\u4f7f\u7528<code>asyncio<\/code>\u5e93\uff0c\u53ef\u4ee5\u521b\u5efa\u534f\u7a0b\uff0c\u5e76\u5229\u7528\u4e8b\u4ef6\u5faa\u73af\u6765\u5904\u7406\u591a\u4e2a\u4efb\u52a1\u3002\u8fd9\u6837\u53ef\u4ee5\u5728\u4e00\u4e2a\u7ebf\u7a0b\u4e2d\u5904\u7406\u591a\u4e2a\u64cd\u4f5c\uff0c\u7279\u522b\u9002\u5408\u4e8e\u9700\u8981\u7b49\u5f85I\/O\u64cd\u4f5c\u7684\u573a\u666f\uff0c\u5982\u7f51\u7edc\u8bf7\u6c42\u6216\u6587\u4ef6\u8bfb\u5199\u3002<\/p>\n<p><strong>\u5728Python\u4e2d\u5982\u4f55\u7ba1\u7406\u540c\u65f6\u8fd0\u884c\u7684\u4ee3\u7801\u7684\u8f93\u51fa\uff1f<\/strong><\/p>\n<p>\u5f53\u540c\u65f6\u8fd0\u884c\u591a\u4e2a\u4ee3\u7801\u65f6\uff0c\u7ba1\u7406\u8f93\u51fa\u975e\u5e38\u91cd\u8981\u3002\u53ef\u4ee5\u901a\u8fc7\u4f7f\u7528\u7ebf\u7a0b\u9501\uff08<code>threading.Lock<\/code>\uff09\u6216\u961f\u5217\uff08<code>queue.Queue<\/code>\uff09\u6765\u4fdd\u8bc1\u8f93\u51fa\u7684\u987a\u5e8f\u548c\u5b8c\u6574\u6027\u3002\u8fd9\u6837\u53ef\u4ee5\u907f\u514d\u591a\u4e2a\u7ebf\u7a0b\u6216\u8fdb\u7a0b\u540c\u65f6\u5199\u5165\u63a7\u5236\u53f0\u800c\u5bfc\u81f4\u8f93\u51fa\u6df7\u4e71\u7684\u60c5\u51b5\u3002\u6b64\u5916\uff0c\u4f7f\u7528\u65e5\u5fd7\u8bb0\u5f55\u529f\u80fd\u4e5f\u80fd\u5e2e\u52a9\u4f60\u66f4\u6e05\u6670\u5730\u7ba1\u7406\u548c\u8ffd\u8e2a\u5404\u4e2a\u4ee3\u7801\u5757\u7684\u8f93\u51fa\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u4f7f\u7528\u591a\u7ebf\u7a0b\u3001\u4f7f\u7528\u591a\u8fdb\u7a0b\u3001\u4f7f\u7528\u5f02\u6b65\u7f16\u7a0b\u3002\u4f7f\u7528\u591a\u7ebf\u7a0b\u53ef\u4ee5\u5728\u5355\u4e2a\u8fdb\u7a0b\u5185\u5e76\u53d1\u6267\u884c\u4ee3\u7801\uff0c\u9002\u7528\u4e8eI\/O\u5bc6\u96c6\u578b\u4efb\u52a1\uff1b\u4f7f\u7528\u591a\u8fdb [&hellip;]","protected":false},"author":3,"featured_media":1117158,"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\/1117151"}],"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=1117151"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1117151\/revisions"}],"predecessor-version":[{"id":1117161,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1117151\/revisions\/1117161"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/1117158"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=1117151"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=1117151"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=1117151"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}