{"id":1007482,"date":"2024-12-27T10:53:56","date_gmt":"2024-12-27T02:53:56","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1007482.html"},"modified":"2024-12-27T10:53:59","modified_gmt":"2024-12-27T02:53:59","slug":"%e5%a6%82%e4%bd%95%e5%bc%ba%e8%a1%8c%e7%bb%88%e6%ad%a2python%e8%bf%90%e8%a1%8c","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/1007482.html","title":{"rendered":"\u5982\u4f55\u5f3a\u884c\u7ec8\u6b62python\u8fd0\u884c"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/25083159\/60788def-72ab-4a31-8da3-092eeea10154.webp\" alt=\"\u5982\u4f55\u5f3a\u884c\u7ec8\u6b62python\u8fd0\u884c\" \/><\/p>\n<p><p> <strong>\u5f3a\u884c\u7ec8\u6b62Python\u8fd0\u884c\u7684\u5e38\u7528\u65b9\u6cd5\u6709\uff1a\u4f7f\u7528\u952e\u76d8\u4e2d\u65ad\uff08Ctrl+C\uff09\u3001\u4f7f\u7528sys.exit()\u51fd\u6570\u3001\u5728\u4ee3\u7801\u4e2d\u5f15\u5165\u5f02\u5e38\u5904\u7406\u673a\u5236\u3002<\/strong>\u5176\u4e2d\uff0c\u4f7f\u7528\u952e\u76d8\u4e2d\u65ad\u662f\u6700\u76f4\u63a5\u7684\u65b9\u5f0f\uff0c\u9002\u7528\u4e8e\u5728\u7ec8\u7aef\u6216\u547d\u4ee4\u884c\u4e2d\u8fd0\u884c\u7684Python\u7a0b\u5e8f\u3002\u5f53\u7a0b\u5e8f\u8fdb\u5165\u6b7b\u5faa\u73af\u6216\u6267\u884c\u65f6\u95f4\u8fc7\u957f\u65f6\uff0c\u6309\u4e0bCtrl+C\u53ef\u4ee5\u7acb\u5373\u4e2d\u65ad\u7a0b\u5e8f\u7684\u6267\u884c\u3002sys.exit()\u51fd\u6570\u53ef\u4ee5\u5728\u4ee3\u7801\u4e2d\u8c03\u7528\uff0c\u7528\u4e8e\u5728\u7a0b\u5e8f\u9047\u5230\u7279\u5b9a\u6761\u4ef6\u65f6\u4e3b\u52a8\u9000\u51fa\u3002\u6b64\u5916\uff0c\u901a\u8fc7\u5f15\u5165\u5f02\u5e38\u5904\u7406\u673a\u5236\uff0c\u53ef\u4ee5\u5728\u6355\u83b7\u5230\u67d0\u4e9b\u9519\u8bef\u6761\u4ef6\u65f6\u7ec8\u6b62\u7a0b\u5e8f\u8fd0\u884c\uff0c\u5e76\u8fdb\u884c\u5fc5\u8981\u7684\u6e05\u7406\u548c\u8d44\u6e90\u91ca\u653e\u3002<\/p>\n<\/p>\n<p><p>\u4e00\u3001\u4f7f\u7528\u952e\u76d8\u4e2d\u65ad\uff08Ctrl+C\uff09<\/p>\n<\/p>\n<p><p>\u5728\u5927\u591a\u6570\u64cd\u4f5c\u7cfb\u7edf\u4e2d\uff0c<strong>\u6309\u4e0bCtrl+C\u53ef\u4ee5\u7acb\u5373\u7ec8\u6b62\u6b63\u5728\u8fd0\u884c\u7684Python\u7a0b\u5e8f<\/strong>\u3002\u8fd9\u79cd\u65b9\u6cd5\u6700\u5e38\u7528\u4e8e\u5728\u547d\u4ee4\u884c\u6216\u7ec8\u7aef\u4e2d\u8fd0\u884c\u7684\u7a0b\u5e8f\u3002\u5176\u5de5\u4f5c\u539f\u7406\u662f\u5411\u7a0b\u5e8f\u53d1\u9001\u4e00\u4e2aSIGINT\u4fe1\u53f7\uff0c\u901a\u77e5\u7a0b\u5e8f\u5e94\u8be5\u505c\u6b62\u6267\u884c\u3002<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u9002\u7528\u573a\u666f<\/strong>\uff1a\u8fd9\u79cd\u65b9\u6cd5\u9002\u7528\u4e8e\u7a0b\u5e8f\u5728\u7ec8\u7aef\u4e2d\u8fd0\u884c\uff0c\u5e76\u4e14\u7528\u6237\u5e0c\u671b\u5728\u7a0b\u5e8f\u6267\u884c\u8fc7\u7a0b\u4e2d\u624b\u52a8\u4e2d\u65ad\u65f6\u4f7f\u7528\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u4f18\u52bf\u4e0e\u9650\u5236<\/strong>\uff1a\u8fd9\u79cd\u65b9\u6cd5\u7b80\u5355\u6709\u6548\uff0c\u4f46\u9700\u8981\u7528\u6237\u7684\u624b\u52a8\u64cd\u4f5c\u3002\u5982\u679c\u7a0b\u5e8f\u5728\u6ca1\u6709\u7528\u6237\u4ea4\u4e92\u7684\u73af\u5883\u4e2d\u8fd0\u884c\uff08\u5982\u540e\u53f0\u670d\u52a1\uff09\uff0c\u5219\u4e0d\u9002\u7528\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u4e8c\u3001\u4f7f\u7528sys.exit()\u51fd\u6570<\/p>\n<\/p>\n<p><p>\u5728Python\u4e2d\uff0c<strong>\u53ef\u4ee5\u901a\u8fc7\u8c03\u7528sys.exit()\u51fd\u6570\u6765\u7ec8\u6b62\u7a0b\u5e8f\u7684\u6267\u884c<\/strong>\u3002sys.exit()\u4f1a\u5f15\u53d1\u4e00\u4e2aSystemExit\u5f02\u5e38\uff0c\u7a0b\u5e8f\u53ef\u4ee5\u9009\u62e9\u6355\u83b7\u8fd9\u4e2a\u5f02\u5e38\u6765\u6267\u884c\u7279\u5b9a\u7684\u6e05\u7406\u64cd\u4f5c\u3002<\/p>\n<\/p>\n<ol>\n<li><strong>\u57fa\u672c\u7528\u6cd5<\/strong>\uff1a\u5728\u7a0b\u5e8f\u7684\u7279\u5b9a\u4f4d\u7f6e\u8c03\u7528sys.exit()\uff0c\u53ef\u9009\u62e9\u6027\u5730\u4f20\u9012\u4e00\u4e2a\u6574\u6570\u53c2\u6570\u4f5c\u4e3a\u9000\u51fa\u72b6\u6001\u7801\uff0c0\u8868\u793a\u6b63\u5e38\u9000\u51fa\uff0c\u975e0\u8868\u793a\u5f02\u5e38\u9000\u51fa\u3002<\/li>\n<\/ol>\n<p><pre><code class=\"language-python\">import sys<\/p>\n<p>def terminate_program():<\/p>\n<p>    print(&quot;Terminating program...&quot;)<\/p>\n<p>    sys.exit(0)<\/p>\n<h2><strong>Example usage<\/strong><\/h2>\n<p>if __name__ == &quot;__m<a href=\"https:\/\/docs.pingcode.com\/blog\/59162.html\" target=\"_blank\">AI<\/a>n__&quot;:<\/p>\n<p>    terminate_program()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<ol start=\"2\">\n<li><strong>\u5f02\u5e38\u6355\u83b7<\/strong>\uff1a\u53ef\u4ee5\u4f7f\u7528try-except\u5757\u6765\u6355\u83b7SystemExit\u5f02\u5e38\uff0c\u4ee5\u4fbf\u5728\u7a0b\u5e8f\u9000\u51fa\u524d\u6267\u884c\u5fc5\u8981\u7684\u6e05\u7406\u64cd\u4f5c\u3002<\/li>\n<\/ol>\n<p><pre><code class=\"language-python\">import sys<\/p>\n<p>try:<\/p>\n<p>    # Some code that might need termination<\/p>\n<p>    sys.exit(1)<\/p>\n<p>except SystemExit as e:<\/p>\n<p>    print(f&quot;Exiting with status {e.code}&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<ol start=\"3\">\n<li><strong>\u5e94\u7528\u573a\u666f<\/strong>\uff1a\u5728\u9700\u8981\u6839\u636e\u67d0\u4e9b\u6761\u4ef6\u4e3b\u52a8\u9000\u51fa\u7a0b\u5e8f\u65f6\u4f7f\u7528\uff0c\u6bd4\u5982\u5728\u68c0\u6d4b\u5230\u4e25\u91cd\u9519\u8bef\u6216\u5b8c\u6210\u67d0\u4e2a\u9700\u8981\u7acb\u5373\u7ec8\u6b62\u7684\u4efb\u52a1\u540e\u3002<\/li>\n<\/ol>\n<p><p>\u4e09\u3001\u5f15\u5165\u5f02\u5e38\u5904\u7406\u673a\u5236<\/p>\n<\/p>\n<p><p>\u5728Python\u7a0b\u5e8f\u4e2d\uff0c<strong>\u4f7f\u7528\u5f02\u5e38\u5904\u7406\u673a\u5236\u53ef\u4ee5\u6709\u6548\u5730\u7ba1\u7406\u7a0b\u5e8f\u4e2d\u7684\u9519\u8bef\u548c\u5f02\u5e38\u60c5\u51b5<\/strong>\u3002\u901a\u8fc7\u6355\u83b7\u5f02\u5e38\uff0c\u7a0b\u5e8f\u53ef\u4ee5\u5728\u9047\u5230\u65e0\u6cd5\u5904\u7406\u7684\u9519\u8bef\u65f6\u5b89\u5168\u5730\u7ec8\u6b62\u3002<\/p>\n<\/p>\n<ol>\n<li><strong>\u5f15\u5165\u5f02\u5e38\u673a\u5236<\/strong>\uff1a\u901a\u8fc7try-except\u5757\u6355\u83b7\u7279\u5b9a\u5f02\u5e38\uff0c\u5e76\u5728\u9700\u8981\u65f6\u7ec8\u6b62\u7a0b\u5e8f\u3002<\/li>\n<\/ol>\n<p><pre><code class=\"language-python\">try:<\/p>\n<p>    # Code that may raise an exception<\/p>\n<p>    result = 10 \/ 0<\/p>\n<p>except ZeroDivisionError:<\/p>\n<p>    print(&quot;Division by zero encountered, terminating program.&quot;)<\/p>\n<p>    raise SystemExit<\/p>\n<p><\/code><\/pre>\n<\/p>\n<ol start=\"2\">\n<li><strong>\u81ea\u5b9a\u4e49\u5f02\u5e38<\/strong>\uff1a\u5728\u67d0\u4e9b\u60c5\u51b5\u4e0b\uff0c\u53ef\u80fd\u9700\u8981\u521b\u5efa\u81ea\u5b9a\u4e49\u5f02\u5e38\u7c7b\uff0c\u4ee5\u4fbf\u5728\u7a0b\u5e8f\u4e2d\u6807\u8bc6\u7279\u5b9a\u7684\u9519\u8bef\u6761\u4ef6\u3002<\/li>\n<\/ol>\n<p><pre><code class=\"language-python\">class CustomError(Exception):<\/p>\n<p>    pass<\/p>\n<p>try:<\/p>\n<p>    raise CustomError(&quot;A custom error occurred&quot;)<\/p>\n<p>except CustomError as e:<\/p>\n<p>    print(e)<\/p>\n<p>    raise SystemExit<\/p>\n<p><\/code><\/pre>\n<\/p>\n<ol start=\"3\">\n<li><strong>\u6e05\u7406\u4e0e\u8d44\u6e90\u91ca\u653e<\/strong>\uff1a\u5728\u7a0b\u5e8f\u7ec8\u6b62\u524d\uff0c\u786e\u4fdd\u91ca\u653e\u6240\u6709\u5360\u7528\u7684\u8d44\u6e90\uff0c\u5982\u6587\u4ef6\u53e5\u67c4\u3001\u7f51\u7edc\u8fde\u63a5\u7b49\u3002\u53ef\u4ee5\u5728finally\u5757\u4e2d\u6267\u884c\u8fd9\u4e9b\u64cd\u4f5c\u3002<\/li>\n<\/ol>\n<p><pre><code class=\"language-python\">try:<\/p>\n<p>    # Open a file<\/p>\n<p>    file = open(&#39;data.txt&#39;, &#39;r&#39;)<\/p>\n<p>    # Perform file operations<\/p>\n<p>finally:<\/p>\n<p>    file.close()<\/p>\n<p>    print(&quot;File closed, program terminated.&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u56db\u3001\u5176\u4ed6\u65b9\u5f0f\u548c\u6ce8\u610f\u4e8b\u9879<\/p>\n<\/p>\n<p><p>\u9664\u4e86\u4e0a\u8ff0\u65b9\u6cd5\u5916\uff0c\u8fd8\u6709\u5176\u4ed6\u4e00\u4e9b\u65b9\u5f0f\u53ef\u4ee5\u5f3a\u5236\u7ec8\u6b62Python\u7a0b\u5e8f\u7684\u8fd0\u884c\uff0c\u4f46\u9700\u8981\u8c28\u614e\u4f7f\u7528\u4ee5\u907f\u514d\u5f15\u53d1\u5176\u4ed6\u95ee\u9898\u3002<\/p>\n<\/p>\n<ol>\n<li><strong>os._exit()\u51fd\u6570<\/strong>\uff1a\u8be5\u51fd\u6570\u4f1a\u7acb\u5373\u7ec8\u6b62\u7a0b\u5e8f\uff0c\u800c\u4e0d\u8fdb\u884c\u4efb\u4f55\u6e05\u7406\u6216\u5f02\u5e38\u5904\u7406\u3002\u901a\u5e38\u4e0d\u63a8\u8350\u4f7f\u7528\uff0c\u9664\u975e\u5728\u5b50\u8fdb\u7a0b\u4e2d\u9700\u8981\u5feb\u901f\u9000\u51fa\u3002<\/li>\n<\/ol>\n<p><pre><code class=\"language-python\">import os<\/p>\n<p>os._exit(0)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<ol start=\"2\">\n<li><strong>\u7ebf\u7a0b\u7ec8\u6b62<\/strong>\uff1a\u5728\u591a\u7ebf\u7a0b\u7a0b\u5e8f\u4e2d\uff0c\u901a\u5e38\u65e0\u6cd5\u76f4\u63a5\u7ec8\u6b62\u7ebf\u7a0b\u3002\u9700\u8981\u901a\u8fc7\u8bbe\u7f6e\u7ebf\u7a0b\u95f4\u7684\u6807\u5fd7\u6765\u5b9e\u73b0\u7ebf\u7a0b\u7684\u5b89\u5168\u7ec8\u6b62\u3002<\/li>\n<\/ol>\n<p><pre><code class=\"language-python\">import threading<\/p>\n<p>import time<\/p>\n<p>def worker(stop_event):<\/p>\n<p>    while not stop_event.is_set():<\/p>\n<p>        print(&quot;Working...&quot;)<\/p>\n<p>        time.sleep(1)<\/p>\n<p>stop_event = threading.Event()<\/p>\n<p>thread = threading.Thread(target=worker, args=(stop_event,))<\/p>\n<p>thread.start()<\/p>\n<p>time.sleep(5)<\/p>\n<p>stop_event.set()<\/p>\n<p>thread.join()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<ol start=\"3\">\n<li><strong>\u4fe1\u53f7\u5904\u7406<\/strong>\uff1a\u5bf9\u4e8e\u5728Unix\/Linux\u7cfb\u7edf\u4e0a\u8fd0\u884c\u7684\u7a0b\u5e8f\uff0c\u53ef\u4ee5\u4f7f\u7528\u4fe1\u53f7\u6a21\u5757\u6765\u5904\u7406\u548c\u54cd\u5e94\u7cfb\u7edf\u4fe1\u53f7\u3002<\/li>\n<\/ol>\n<p><pre><code class=\"language-python\">import signal<\/p>\n<p>import sys<\/p>\n<p>def signal_handler(sig, frame):<\/p>\n<p>    print(&#39;Received SIGINT, terminating program.&#39;)<\/p>\n<p>    sys.exit(0)<\/p>\n<p>signal.signal(signal.SIGINT, signal_handler)<\/p>\n<p>while True:<\/p>\n<p>    pass<\/p>\n<p><\/code><\/pre>\n<\/p>\n<ol start=\"4\">\n<li><strong>\u6ce8\u610f\u4e8b\u9879<\/strong>\uff1a\u5728\u7ec8\u6b62\u7a0b\u5e8f\u65f6\uff0c\u786e\u4fdd\u91ca\u653e\u6240\u6709\u5360\u7528\u7684\u8d44\u6e90\uff0c\u5e76\u4fdd\u5b58\u5fc5\u8981\u7684\u6570\u636e\uff0c\u4ee5\u907f\u514d\u6570\u636e\u4e22\u5931\u6216\u8d44\u6e90\u6cc4\u9732\u3002<\/li>\n<\/ol>\n<p><p>\u901a\u8fc7\u5bf9\u8fd9\u4e9b\u65b9\u6cd5\u7684\u5408\u7406\u5e94\u7528\uff0c\u53ef\u4ee5\u5728\u4e0d\u540c\u7684\u5e94\u7528\u573a\u666f\u4e2d\u6709\u6548\u5730\u7ec8\u6b62Python\u7a0b\u5e8f\u7684\u8fd0\u884c\uff0c\u786e\u4fdd\u7a0b\u5e8f\u7684\u7a33\u5b9a\u6027\u548c\u5b89\u5168\u6027\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u5728Python\u4e2d\u5f3a\u5236\u505c\u6b62\u4e00\u4e2a\u8fd0\u884c\u4e2d\u7684\u7a0b\u5e8f\uff1f<\/strong><br \/>\u5728Python\u4e2d\uff0c\u60a8\u53ef\u4ee5\u901a\u8fc7\u4f7f\u7528\u952e\u76d8\u5feb\u6377\u952e\u6765\u5f3a\u5236\u7ec8\u6b62\u6b63\u5728\u8fd0\u884c\u7684\u7a0b\u5e8f\u3002\u4f8b\u5982\uff0c\u5728\u5927\u591a\u6570\u7ec8\u7aef\u6216\u547d\u4ee4\u63d0\u793a\u7b26\u4e2d\uff0c\u53ef\u4ee5\u4f7f\u7528Ctrl + C\u7ec4\u5408\u952e\u3002\u8fd9\u4e2a\u64cd\u4f5c\u4f1a\u53d1\u9001\u4e00\u4e2a\u4e2d\u65ad\u4fe1\u53f7\uff0c\u901a\u5e38\u4f1a\u505c\u6b62\u5f53\u524d\u7684Python\u811a\u672c\u6267\u884c\u3002<\/p>\n<p><strong>\u662f\u5426\u6709\u5176\u4ed6\u65b9\u6cd5\u53ef\u4ee5\u505c\u6b62Python\u811a\u672c\uff1f<\/strong><br \/>\u9664\u4e86\u4f7f\u7528Ctrl + C\uff0c\u60a8\u8fd8\u53ef\u4ee5\u901a\u8fc7\u7f16\u7a0b\u65b9\u5f0f\u5728\u4ee3\u7801\u4e2d\u8bbe\u7f6e\u6761\u4ef6\u6765\u9000\u51fa\u7a0b\u5e8f\u3002\u6bd4\u5982\u4f7f\u7528<code>sys.exit()<\/code>\u51fd\u6570\u53ef\u4ee5\u5728\u4ee3\u7801\u4e2d\u6307\u5b9a\u7684\u6761\u4ef6\u4e0b\u505c\u6b62\u7a0b\u5e8f\u7684\u8fd0\u884c\u3002\u540c\u65f6\uff0c\u60a8\u4e5f\u53ef\u4ee5\u4f7f\u7528<code>os.kill()<\/code>\u65b9\u6cd5\u7ed3\u5408\u8fdb\u7a0bID\u6765\u5f3a\u5236\u7ec8\u6b62\u4e00\u4e2aPython\u8fdb\u7a0b\u3002<\/p>\n<p><strong>\u5728IDE\u4e2d\u5982\u4f55\u4e2d\u6b62Python\u7a0b\u5e8f\u7684\u6267\u884c\uff1f<\/strong><br \/>\u5982\u679c\u60a8\u5728\u96c6\u6210\u5f00\u53d1\u73af\u5883\uff08IDE\uff09\u4e2d\u8fd0\u884cPython\u7a0b\u5e8f\uff0c\u901a\u5e38\u4f1a\u6709\u4e00\u4e2a\u201c\u505c\u6b62\u201d\u6216\u201c\u4e2d\u65ad\u201d\u6309\u94ae\uff0c\u4f8b\u5982\u5728PyCharm\u6216VSCode\u4e2d\u3002\u8fd9\u4e9b\u6309\u94ae\u53ef\u4ee5\u76f4\u63a5\u7ec8\u6b62\u5f53\u524d\u6b63\u5728\u6267\u884c\u7684\u811a\u672c\uff0c\u800c\u65e0\u9700\u4f7f\u7528\u952e\u76d8\u5feb\u6377\u952e\u3002<\/p>\n<p><strong>\u5f3a\u5236\u7ec8\u6b62Python\u7a0b\u5e8f\u4f1a\u5bfc\u81f4\u6570\u636e\u4e22\u5931\u5417\uff1f<\/strong><br \/>\u662f\u7684\uff0c\u5f3a\u5236\u7ec8\u6b62Python\u7a0b\u5e8f\u53ef\u80fd\u4f1a\u5bfc\u81f4\u672a\u4fdd\u5b58\u7684\u6570\u636e\u4e22\u5931\uff0c\u7279\u522b\u662f\u5f53\u7a0b\u5e8f\u6b63\u5728\u5904\u7406\u6587\u4ef6\u6216\u6570\u636e\u5e93\u65f6\u3002\u4e3a\u4e86\u907f\u514d\u8fd9\u79cd\u60c5\u51b5\uff0c\u5efa\u8bae\u5728\u4ee3\u7801\u4e2d\u5b9e\u73b0\u5f02\u5e38\u5904\u7406\u548c\u6570\u636e\u4fdd\u5b58\u673a\u5236\uff0c\u4ee5\u786e\u4fdd\u5728\u7a0b\u5e8f\u610f\u5916\u4e2d\u65ad\u65f6\u6570\u636e\u7684\u5b8c\u6574\u6027\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u5f3a\u884c\u7ec8\u6b62Python\u8fd0\u884c\u7684\u5e38\u7528\u65b9\u6cd5\u6709\uff1a\u4f7f\u7528\u952e\u76d8\u4e2d\u65ad\uff08Ctrl+C\uff09\u3001\u4f7f\u7528sys.exit()\u51fd\u6570\u3001\u5728\u4ee3\u7801\u4e2d\u5f15\u5165 [&hellip;]","protected":false},"author":3,"featured_media":1007487,"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\/1007482"}],"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=1007482"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1007482\/revisions"}],"predecessor-version":[{"id":1007488,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1007482\/revisions\/1007488"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/1007487"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=1007482"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=1007482"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=1007482"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}