{"id":993397,"date":"2024-12-27T08:45:41","date_gmt":"2024-12-27T00:45:41","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/993397.html"},"modified":"2024-12-27T08:45:44","modified_gmt":"2024-12-27T00:45:44","slug":"python%e5%a6%82%e4%bd%95%e5%ae%9e%e7%8e%b0%e8%b6%85%e6%97%b6%e9%80%80%e5%87%ba","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/993397.html","title":{"rendered":"python\u5982\u4f55\u5b9e\u73b0\u8d85\u65f6\u9000\u51fa"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/25070817\/c0b6418f-3e0b-4277-ba2f-5a28e7ac591b.webp\" alt=\"python\u5982\u4f55\u5b9e\u73b0\u8d85\u65f6\u9000\u51fa\" \/><\/p>\n<p><p> <strong>\u5728Python\u4e2d\u5b9e\u73b0\u8d85\u65f6\u9000\u51fa\u7684\u65b9\u6cd5\u6709\u591a\u79cd\uff0c\u5e38\u7528\u7684\u5305\u62ec\uff1a\u4f7f\u7528\u4fe1\u53f7\u548c\u591a\u7ebf\u7a0b\u3001\u5229\u7528\u7b2c\u4e09\u65b9\u5e93\u5982<code>timeout-decorator<\/code>\u3001\u4f7f\u7528\u5f02\u6b65IO\u3002\u8fd9\u4e9b\u65b9\u6cd5\u5404\u6709\u4f18\u7f3a\u70b9\uff0c\u9009\u62e9\u5408\u9002\u7684\u65b9\u5f0f\u9700\u8981\u6839\u636e\u5177\u4f53\u7684\u5e94\u7528\u573a\u666f\u3002<\/strong>\u5176\u4e2d\uff0c\u4f7f\u7528\u4fe1\u53f7\u548c\u591a\u7ebf\u7a0b\u7684\u65b9\u6cd5\u8f83\u4e3a\u76f4\u63a5\uff0c\u9002\u5408\u5728Linux\u7cfb\u7edf\u4e2d\u4f7f\u7528\uff1b\u800c<code>timeout-decorator<\/code>\u5e93\u63d0\u4f9b\u4e86\u7b80\u4fbf\u7684\u88c5\u9970\u5668\u65b9\u5f0f\uff0c\u9002\u5408\u5feb\u901f\u5b9e\u73b0\uff1b\u5f02\u6b65IO\u5219\u9002\u5408\u5904\u7406\u5927\u91cf\u5e76\u53d1\u4efb\u52a1\u7684\u573a\u666f\u3002\u4e0b\u9762\u5c06\u8be6\u7ec6\u4ecb\u7ecd\u8fd9\u4e9b\u65b9\u6cd5\u3002<\/p>\n<\/p>\n<p><p>\u4e00\u3001\u4fe1\u53f7\u4e0e\u591a\u7ebf\u7a0b<\/p>\n<\/p>\n<p><p>\u5728Python\u4e2d\uff0c\u53ef\u4ee5\u5229\u7528\u4fe1\u53f7\u6a21\u5757\u548c\u591a\u7ebf\u7a0b\u6765\u5b9e\u73b0\u8d85\u65f6\u9000\u51fa\u3002\u4fe1\u53f7\u6a21\u5757\u9002\u7528\u4e8eUnix\u7cfb\u7edf\uff0c\u5141\u8bb8\u6211\u4eec\u8bbe\u7f6e\u4e00\u4e2a\u5b9a\u65f6\u5668\uff0c\u5728\u8d85\u65f6\u65f6\u89e6\u53d1\u4e00\u4e2a\u4fe1\u53f7\u6765\u7ec8\u6b62\u64cd\u4f5c\u3002<\/p>\n<\/p>\n<p><h3>\u4f7f\u7528\u4fe1\u53f7\u6a21\u5757<\/h3>\n<\/p>\n<p><p>\u4fe1\u53f7\u6a21\u5757\u63d0\u4f9b\u4e86\u4e00\u79cd\u76f8\u5bf9\u7b80\u5355\u7684\u65b9\u6cd5\u6765\u5904\u7406\u8d85\u65f6\uff0c\u4f46\u5b83\u4ec5\u5728Unix\u7cfb\u7edf\u4e0a\u6709\u6548\u3002\u901a\u8fc7\u8bbe\u7f6e\u4e00\u4e2a\u95f9\u949f\u4fe1\u53f7\uff0c\u53ef\u4ee5\u5728\u8fbe\u5230\u6307\u5b9a\u65f6\u95f4\u540e\u4e2d\u65ad\u64cd\u4f5c\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import signal<\/p>\n<p>def handler(signum, frame):<\/p>\n<p>    r<a href=\"https:\/\/docs.pingcode.com\/blog\/59162.html\" target=\"_blank\">AI<\/a>se TimeoutError(&quot;Function execution timed out.&quot;)<\/p>\n<p>signal.signal(signal.SIGALRM, handler)<\/p>\n<p>def long_running_function():<\/p>\n<p>    # Simulate a long-running operation<\/p>\n<p>    while True:<\/p>\n<p>        pass<\/p>\n<p>try:<\/p>\n<p>    signal.alarm(5)  # Set the timeout to 5 seconds<\/p>\n<p>    long_running_function()<\/p>\n<p>except TimeoutError as e:<\/p>\n<p>    print(e)<\/p>\n<p>finally:<\/p>\n<p>    signal.alarm(0)  # Disable the alarm<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u4e0a\u9762\u7684\u4ee3\u7801\u4e2d\uff0c\u6211\u4eec\u8bbe\u7f6e\u4e86\u4e00\u4e2a5\u79d2\u7684\u95f9\u949f\u4fe1\u53f7\uff0c\u5982\u679c\u51fd\u6570\u57285\u79d2\u5185\u672a\u7ed3\u675f\uff0c\u8d85\u65f6\u5f02\u5e38\u5c06\u88ab\u629b\u51fa\u3002<\/p>\n<\/p>\n<p><h3>\u4f7f\u7528\u591a\u7ebf\u7a0b<\/h3>\n<\/p>\n<p><p>\u5728\u591a\u7ebf\u7a0b\u573a\u666f\u4e2d\uff0c\u53ef\u4ee5\u901a\u8fc7\u521b\u5efa\u4e00\u4e2a\u72ec\u7acb\u7ebf\u7a0b\u6765\u6267\u884c\u76ee\u6807\u51fd\u6570\uff0c\u5e76\u4f7f\u7528<code>join<\/code>\u65b9\u6cd5\u7b49\u5f85\u7ebf\u7a0b\u5b8c\u6210\u3002\u5728\u7b49\u5f85\u65f6\u8bbe\u7f6e\u8d85\u65f6\u65f6\u95f4\uff0c\u5982\u679c\u8d85\u65f6\u5219\u4e3b\u7ebf\u7a0b\u7ee7\u7eed\u6267\u884c\uff0c\u800c\u5b50\u7ebf\u7a0b\u5219\u88ab\u653e\u5f03\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import threading<\/p>\n<p>def long_running_function():<\/p>\n<p>    # Simulate a long-running operation<\/p>\n<p>    while True:<\/p>\n<p>        pass<\/p>\n<p>thread = threading.Thread(target=long_running_function)<\/p>\n<p>thread.start()<\/p>\n<p>thread.join(timeout=5)<\/p>\n<p>if thread.is_alive():<\/p>\n<p>    print(&quot;Function execution timed out.&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u79cd\u65b9\u6cd5\u9002\u7528\u4e8e\u8de8\u5e73\u53f0\uff0c\u4f46\u9700\u8981\u6ce8\u610f\u7684\u662fPython\u7684\u7ebf\u7a0b\u4e0d\u80fd\u88ab\u5f3a\u5236\u7ec8\u6b62\uff0c\u56e0\u6b64\u957f\u65f6\u95f4\u8fd0\u884c\u7684\u7ebf\u7a0b\u9700\u8981\u81ea\u884c\u68c0\u67e5\u8d85\u65f6\u6807\u5fd7\u6765\u505c\u6b62\u6267\u884c\u3002<\/p>\n<\/p>\n<p><p>\u4e8c\u3001\u4f7f\u7528<code>timeout-decorator<\/code>\u5e93<\/p>\n<\/p>\n<p><p><code>timeout-decorator<\/code>\u662f\u4e00\u4e2a\u7b2c\u4e09\u65b9\u5e93\uff0c\u5b83\u901a\u8fc7\u88c5\u9970\u5668\u7684\u65b9\u5f0f\u63d0\u4f9b\u8d85\u65f6\u529f\u80fd\uff0c\u4f7f\u7528\u7b80\u5355\u4e14\u6613\u4e8e\u96c6\u6210\u3002<\/p>\n<\/p>\n<p><h3>\u5b89\u88c5<code>timeout-decorator<\/code><\/h3>\n<\/p>\n<p><p>\u9996\u5148\uff0c\u5b89\u88c5<code>timeout-decorator<\/code>\u5e93\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">pip install timeout-decorator<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u4f7f\u7528\u88c5\u9970\u5668<\/h3>\n<\/p>\n<p><p>\u4f7f\u7528<code>timeout-decorator<\/code>\u5e93\u7684\u5173\u952e\u5728\u4e8e\u901a\u8fc7\u88c5\u9970\u5668\u4e3a\u51fd\u6570\u6dfb\u52a0\u8d85\u65f6\u529f\u80fd\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import timeout_decorator<\/p>\n<p>@timeout_decorator.timeout(5)<\/p>\n<p>def long_running_function():<\/p>\n<p>    # Simulate a long-running operation<\/p>\n<p>    while True:<\/p>\n<p>        pass<\/p>\n<p>try:<\/p>\n<p>    long_running_function()<\/p>\n<p>except timeout_decorator.timeout_decorator.TimeoutError:<\/p>\n<p>    print(&quot;Function execution timed out.&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u4e2a\u5e93\u7684\u4f18\u52bf\u5728\u4e8e\u7b80\u6d01\uff0c\u4f46\u5b83\u5728\u5185\u90e8\u662f\u901a\u8fc7\u4fe1\u53f7\u5b9e\u73b0\u7684\uff0c\u56e0\u6b64\u4e5f\u4ec5\u5728Unix\u7cfb\u7edf\u4e0a\u6709\u6548\u3002<\/p>\n<\/p>\n<p><p>\u4e09\u3001\u5f02\u6b65IO\uff08asyncio\uff09<\/p>\n<\/p>\n<p><p>\u5bf9\u4e8e\u9700\u8981\u5904\u7406\u5927\u91cf\u5e76\u53d1\u4efb\u52a1\u7684\u5e94\u7528\u573a\u666f\uff0c\u53ef\u4ee5\u4f7f\u7528Python\u7684\u5f02\u6b65IO\u5e93<code>asyncio<\/code>\u6765\u5b9e\u73b0\u8d85\u65f6\u63a7\u5236\u3002<\/p>\n<\/p>\n<p><h3>\u4f7f\u7528<code>asyncio.wait_for<\/code><\/h3>\n<\/p>\n<p><p><code>asyncio<\/code>\u63d0\u4f9b\u4e86<code>wait_for<\/code>\u51fd\u6570\uff0c\u53ef\u4ee5\u5728\u534f\u7a0b\u4e0a\u8bbe\u7f6e\u8d85\u65f6\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import asyncio<\/p>\n<p>async def long_running_function():<\/p>\n<p>    # Simulate a long-running operation<\/p>\n<p>    while True:<\/p>\n<p>        await asyncio.sleep(1)<\/p>\n<p>async def main():<\/p>\n<p>    try:<\/p>\n<p>        await asyncio.wait_for(long_running_function(), timeout=5)<\/p>\n<p>    except asyncio.TimeoutError:<\/p>\n<p>        print(&quot;Function execution timed out.&quot;)<\/p>\n<p>asyncio.run(main())<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p><code>asyncio<\/code>\u7684\u4f18\u52bf\u5728\u4e8e\u5b83\u7684\u9ad8\u6548\u548c\u7075\u6d3b\u6027\uff0c\u7279\u522b\u9002\u5408\u7f51\u7edc\u7f16\u7a0b\u548c\u9700\u8981\u9ad8\u5e76\u53d1\u7684\u573a\u666f\u3002<\/p>\n<\/p>\n<p><h3>\u5b9e\u73b0\u5f02\u6b65\u4efb\u52a1\u8d85\u65f6<\/h3>\n<\/p>\n<p><p>\u9664\u4e86\u5355\u4e2a\u4efb\u52a1\u7684\u8d85\u65f6\uff0c<code>asyncio<\/code>\u8fd8\u53ef\u4ee5\u5904\u7406\u591a\u4e2a\u4efb\u52a1\u5e76\u5bf9\u5176\u8fdb\u884c\u8d85\u65f6\u63a7\u5236\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import asyncio<\/p>\n<p>async def long_running_function(name):<\/p>\n<p>    # Simulate a long-running operation<\/p>\n<p>    while True:<\/p>\n<p>        print(f&quot;Running {name}&quot;)<\/p>\n<p>        await asyncio.sleep(1)<\/p>\n<p>async def main():<\/p>\n<p>    tasks = [<\/p>\n<p>        asyncio.create_task(long_running_function(&quot;Task1&quot;)),<\/p>\n<p>        asyncio.create_task(long_running_function(&quot;Task2&quot;)),<\/p>\n<p>    ]<\/p>\n<p>    done, pending = await asyncio.wait(tasks, timeout=5)<\/p>\n<p>    for task in pending:<\/p>\n<p>        task.cancel()<\/p>\n<p>    print(&quot;Function execution timed out.&quot;)<\/p>\n<p>asyncio.run(main())<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u4f8b\u5b50\u4e2d\uff0c\u6211\u4eec\u521b\u5efa\u4e86\u4e24\u4e2a\u5f02\u6b65\u4efb\u52a1\uff0c\u5e76\u4f7f\u7528<code>asyncio.wait<\/code>\u6765\u7b49\u5f85\u5b83\u4eec\u5b8c\u6210\u3002\u5982\u679c\u8d85\u65f6\uff0c\u5219\u53d6\u6d88\u672a\u5b8c\u6210\u7684\u4efb\u52a1\u3002<\/p>\n<\/p>\n<p><p>\u56db\u3001\u9009\u62e9\u5408\u9002\u7684\u65b9\u6cd5<\/p>\n<\/p>\n<p><p>\u5728\u9009\u62e9\u5b9e\u73b0\u8d85\u65f6\u9000\u51fa\u7684\u65b9\u6cd5\u65f6\uff0c\u9700\u8981\u8003\u8651\u4ee5\u4e0b\u56e0\u7d20\uff1a<\/p>\n<\/p>\n<ul>\n<li><strong>\u64cd\u4f5c\u7cfb\u7edf<\/strong>\uff1a\u4fe1\u53f7\u6a21\u5757\u53ea\u9002\u7528\u4e8eUnix\u7cfb\u7edf\uff0c\u800c\u591a\u7ebf\u7a0b\u548c\u5f02\u6b65IO\u662f\u8de8\u5e73\u53f0\u7684\u3002<\/li>\n<li><strong>\u4efb\u52a1\u7279\u6027<\/strong>\uff1a\u5bf9\u4e8e\u957f\u65f6\u95f4\u8fd0\u884c\u7684\u963b\u585e\u4efb\u52a1\uff0c\u4fe1\u53f7\u548c\u591a\u7ebf\u7a0b\u9002\u5408\uff1b\u5bf9\u4e8eIO\u5bc6\u96c6\u578b\u548c\u9ad8\u5e76\u53d1\u4efb\u52a1\uff0c\u5f02\u6b65IO\u66f4\u5408\u9002\u3002<\/li>\n<li><strong>\u5b9e\u73b0\u590d\u6742\u5ea6<\/strong>\uff1a<code>timeout-decorator<\/code>\u63d0\u4f9b\u4e86\u7b80\u5355\u7684\u88c5\u9970\u5668\uff0c\u4f46\u53d7\u9650\u4e8e\u5176\u5b9e\u73b0\u65b9\u5f0f\u3002<\/li>\n<\/ul>\n<p><p>\u901a\u8fc7\u4e86\u89e3\u8fd9\u4e9b\u65b9\u6cd5\u7684\u4f18\u7f3a\u70b9\uff0c\u53ef\u4ee5\u66f4\u597d\u5730\u9009\u62e9\u9002\u5408\u81ea\u5df1\u9700\u6c42\u7684\u8d85\u65f6\u5b9e\u73b0\u65b9\u6848\u3002\u65e0\u8bba\u662f\u901a\u8fc7\u4fe1\u53f7\u3001\u591a\u7ebf\u7a0b\u8fd8\u662f\u5f02\u6b65IO\uff0c\u8d85\u65f6\u673a\u5236\u90fd\u80fd\u5e2e\u52a9\u6211\u4eec\u66f4\u597d\u5730\u63a7\u5236\u7a0b\u5e8f\u7684\u6267\u884c\u65f6\u95f4\uff0c\u907f\u514d\u56e0\u957f\u65f6\u95f4\u7b49\u5f85\u800c\u5f71\u54cd\u7cfb\u7edf\u6027\u80fd\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u5728Python\u4e2d\u8bbe\u7f6e\u8d85\u65f6\u9000\u51fa\uff1f<\/strong><br \/>\u5728Python\u4e2d\uff0c\u53ef\u4ee5\u4f7f\u7528<code>signal<\/code>\u6a21\u5757\u6765\u8bbe\u7f6e\u8d85\u65f6\u9000\u51fa\u3002\u901a\u8fc7\u5b9a\u4e49\u4e00\u4e2a\u4fe1\u53f7\u5904\u7406\u51fd\u6570\u548c\u8bbe\u7f6e\u4e00\u4e2a\u5b9a\u65f6\u5668\uff0c\u53ef\u4ee5\u5728\u6307\u5b9a\u65f6\u95f4\u5185\u81ea\u52a8\u9000\u51fa\u5f53\u524d\u7684\u8fd0\u884c\u73af\u5883\u3002\u9700\u8981\u6ce8\u610f\u7684\u662f\uff0c\u8fd9\u79cd\u65b9\u6cd5\u901a\u5e38\u9002\u7528\u4e8eUnix\u7cfb\u7edf\uff0c\u800c\u5728Windows\u4e0a\u53ef\u80fd\u9700\u8981\u5176\u4ed6\u65b9\u5f0f\uff0c\u5982\u4f7f\u7528\u7ebf\u7a0b\u6216\u5f02\u6b65\u7f16\u7a0b\u3002<\/p>\n<p><strong>Python\u4e2d\u6709\u54ea\u4e9b\u5e93\u53ef\u4ee5\u5e2e\u52a9\u6211\u5b9e\u73b0\u8d85\u65f6\u529f\u80fd\uff1f<\/strong><br \/>\u6709\u51e0\u4e2a\u5e93\u53ef\u4ee5\u5e2e\u52a9\u5b9e\u73b0\u8d85\u65f6\u529f\u80fd\u3002<code>threading<\/code>\u6a21\u5757\u5141\u8bb8\u521b\u5efa\u4e00\u4e2a\u5355\u72ec\u7684\u7ebf\u7a0b\u6765\u6267\u884c\u4efb\u52a1\uff0c\u5e76\u5728\u4e3b\u7ebf\u7a0b\u4e2d\u76d1\u63a7\u65f6\u95f4\u3002<code>concurrent.futures<\/code>\u6a21\u5757\u63d0\u4f9b\u4e86\u66f4\u9ad8\u7ea7\u7684\u63a5\u53e3\uff0c\u5141\u8bb8\u4f7f\u7528<code>Future<\/code>\u5bf9\u8c61\u6765\u8bbe\u7f6e\u8d85\u65f6\u3002<code>asyncio<\/code>\u5e93\u4e5f\u80fd\u901a\u8fc7\u5f02\u6b65\u7f16\u7a0b\u5b9e\u73b0\u8d85\u65f6\u673a\u5236\uff0c\u975e\u5e38\u9002\u5408I\/O\u5bc6\u96c6\u578b\u7684\u5e94\u7528\u3002<\/p>\n<p><strong>\u5728Python\u4e2d\u5982\u4f55\u5904\u7406\u8d85\u65f6\u540e\u6267\u884c\u7684\u6e05\u7406\u64cd\u4f5c\uff1f<\/strong><br \/>\u53ef\u4ee5\u901a\u8fc7\u5f02\u5e38\u5904\u7406\u673a\u5236\u6765\u5904\u7406\u8d85\u65f6\u540e\u7684\u6e05\u7406\u64cd\u4f5c\u3002\u5728\u5b9a\u4e49\u8d85\u65f6\u4efb\u52a1\u65f6\uff0c\u53ef\u4ee5\u4f7f\u7528<code>try<\/code>\u548c<code>except<\/code>\u5757\u6765\u6355\u83b7\u8d85\u65f6\u5f02\u5e38\uff0c\u5e76\u5728\u5f02\u5e38\u5904\u7406\u5757\u4e2d\u6267\u884c\u6e05\u7406\u4ee3\u7801\uff0c\u6bd4\u5982\u5173\u95ed\u6587\u4ef6\u3001\u91ca\u653e\u8d44\u6e90\u7b49\u3002\u786e\u4fdd\u5728\u8d85\u65f6\u9000\u51fa\u524d\u5b8c\u6210\u6240\u6709\u5fc5\u8981\u7684\u6e05\u7406\u6b65\u9aa4\uff0c\u4ee5\u907f\u514d\u8d44\u6e90\u6cc4\u6f0f\u6216\u6570\u636e\u635f\u574f\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u5728Python\u4e2d\u5b9e\u73b0\u8d85\u65f6\u9000\u51fa\u7684\u65b9\u6cd5\u6709\u591a\u79cd\uff0c\u5e38\u7528\u7684\u5305\u62ec\uff1a\u4f7f\u7528\u4fe1\u53f7\u548c\u591a\u7ebf\u7a0b\u3001\u5229\u7528\u7b2c\u4e09\u65b9\u5e93\u5982timeout-deco [&hellip;]","protected":false},"author":3,"featured_media":993405,"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\/993397"}],"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=993397"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/993397\/revisions"}],"predecessor-version":[{"id":993408,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/993397\/revisions\/993408"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/993405"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=993397"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=993397"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=993397"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}