{"id":1080401,"date":"2025-01-08T12:29:48","date_gmt":"2025-01-08T04:29:48","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1080401.html"},"modified":"2025-01-08T12:29:51","modified_gmt":"2025-01-08T04:29:51","slug":"python%e5%a6%82%e4%bd%95%e7%bb%88%e6%ad%a2%e8%bf%90%e8%a1%8c%e4%b8%ad%e7%9a%84%e7%a8%8b%e5%ba%8f%e8%bf%90%e8%a1%8c-2","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/1080401.html","title":{"rendered":"python\u5982\u4f55\u7ec8\u6b62\u8fd0\u884c\u4e2d\u7684\u7a0b\u5e8f\u8fd0\u884c"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/24182947\/62c6540b-5f80-4725-b710-0c62bf24592f.webp\" alt=\"python\u5982\u4f55\u7ec8\u6b62\u8fd0\u884c\u4e2d\u7684\u7a0b\u5e8f\u8fd0\u884c\" \/><\/p>\n<p><p> <strong>\u5728Python\u4e2d\u7ec8\u6b62\u8fd0\u884c\u4e2d\u7684\u7a0b\u5e8f\u53ef\u4ee5\u901a\u8fc7\u591a\u79cd\u65b9\u6cd5\u5b9e\u73b0\uff0c\u5305\u62ec\u4f7f\u7528\u952e\u76d8\u4e2d\u65ad\u3001sys.exit()\u51fd\u6570\u3001os._exit()\u51fd\u6570\u7b49\u3002<\/strong> \u5176\u4e2d\uff0c\u6700\u5e38\u7528\u7684\u65b9\u6cd5\u662f\u901a\u8fc7\u952e\u76d8\u4e2d\u65ad\uff08\u901a\u5e38\u662fCtrl+C\uff09\u6765\u7ec8\u6b62\u7a0b\u5e8f\uff0c\u6216\u8005\u4f7f\u7528sys.exit()\u51fd\u6570\u6765\u5728\u4ee3\u7801\u4e2d\u4e3b\u52a8\u9000\u51fa\u7a0b\u5e8f\u3002\u4e0b\u9762\u5c06\u8be6\u7ec6\u4ecb\u7ecd\u5176\u4e2d\u7684\u4e00\u79cd\u65b9\u6cd5\uff0c\u5373\u4f7f\u7528sys.exit()\u51fd\u6570\u6765\u7ec8\u6b62\u7a0b\u5e8f\u8fd0\u884c\u3002<\/p>\n<\/p>\n<p><p><strong>sys.exit()\u51fd\u6570\uff1a<\/strong><\/p>\n<p>sys.exit()\u51fd\u6570\u662fPython\u6807\u51c6\u5e93\u4e2d\u7684\u4e00\u4e2a\u51fd\u6570\uff0c\u5b83\u53ef\u4ee5\u7528\u6765\u9000\u51faPython\u7a0b\u5e8f\u3002\u8fd9\u4e2a\u51fd\u6570\u4f1a\u5f15\u53d1\u4e00\u4e2aSystemExit\u5f02\u5e38\uff0c\u4ece\u800c\u7ec8\u6b62\u7a0b\u5e8f\u7684\u6267\u884c\u3002\u5982\u679c\u5728try&#8230;except\u7ed3\u6784\u4e2d\u6355\u83b7\u4e86\u8fd9\u4e2a\u5f02\u5e38\uff0c\u7a0b\u5e8f\u5c31\u4e0d\u4f1a\u9000\u51fa\u3002sys.exit()\u53ef\u4ee5\u63a5\u53d7\u4e00\u4e2a\u53ef\u9009\u7684\u53c2\u6570\uff0c\u8be5\u53c2\u6570\u53ef\u4ee5\u662f\u6574\u6570\u6216\u8005\u5b57\u7b26\u4e32\uff0c\u8868\u793a\u9000\u51fa\u65f6\u7684\u72b6\u6001\u7801\u6216\u6d88\u606f\u3002\u901a\u5e38\uff0c0\u8868\u793a\u7a0b\u5e8f\u6b63\u5e38\u9000\u51fa\uff0c\u975e\u96f6\u8868\u793a\u7a0b\u5e8f\u5f02\u5e38\u9000\u51fa\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\u5f00\u53d1\u548c\u8c03\u8bd5Python\u7a0b\u5e8f\u65f6\uff0c\u6700\u5e38\u7528\u7684\u65b9\u6cd5\u4e4b\u4e00\u662f\u4f7f\u7528\u952e\u76d8\u4e2d\u65ad\u6765\u7ec8\u6b62\u8fd0\u884c\u4e2d\u7684\u7a0b\u5e8f\u3002\u952e\u76d8\u4e2d\u65ad\u662f\u901a\u8fc7\u6309\u4e0bCtrl+C\u952e\u6765\u5b9e\u73b0\u7684\uff0c\u5f53\u7a0b\u5e8f\u6355\u83b7\u5230\u8fd9\u4e2a\u4e2d\u65ad\u4fe1\u53f7\u65f6\uff0c\u4f1a\u5f15\u53d1\u4e00\u4e2aKeyboardInterrupt\u5f02\u5e38\uff0c\u4ece\u800c\u7ec8\u6b62\u7a0b\u5e8f\u7684\u8fd0\u884c\u3002\u4e0b\u9762\u662f\u4e00\u4e2a\u7b80\u5355\u7684\u793a\u4f8b\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">try:<\/p>\n<p>    while True:<\/p>\n<p>        print(&quot;\u7a0b\u5e8f\u6b63\u5728\u8fd0\u884c...&quot;)<\/p>\n<p>except KeyboardInterrupt:<\/p>\n<p>    print(&quot;\u7a0b\u5e8f\u5df2\u7ec8\u6b62\u3002&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u793a\u4f8b\u4e2d\uff0c\u7a0b\u5e8f\u4f1a\u4e0d\u65ad\u5730\u6253\u5370&quot;\u7a0b\u5e8f\u6b63\u5728\u8fd0\u884c&#8230;&quot;\uff0c\u76f4\u5230\u7528\u6237\u6309\u4e0bCtrl+C\u952e\uff0c\u6b64\u65f6\u7a0b\u5e8f\u4f1a\u6355\u83b7\u5230KeyboardInterrupt\u5f02\u5e38\uff0c\u5e76\u6253\u5370&quot;\u7a0b\u5e8f\u5df2\u7ec8\u6b62\u3002&quot;\u7136\u540e\u9000\u51fa\u7a0b\u5e8f\u3002<\/p>\n<\/p>\n<p><p>\u4e8c\u3001\u4f7f\u7528sys.exit()\u51fd\u6570<\/p>\n<\/p>\n<p><p>\u53e6\u4e00\u4e2a\u5e38\u7528\u7684\u65b9\u6cd5\u662f\u4f7f\u7528sys.exit()\u51fd\u6570\u6765\u4e3b\u52a8\u9000\u51fa\u7a0b\u5e8f\u3002sys.exit()\u51fd\u6570\u4f1a\u5f15\u53d1\u4e00\u4e2aSystemExit\u5f02\u5e38\uff0c\u4ece\u800c\u7ec8\u6b62\u7a0b\u5e8f\u7684\u6267\u884c\u3002\u6211\u4eec\u53ef\u4ee5\u5728\u9700\u8981\u7ec8\u6b62\u7a0b\u5e8f\u7684\u5730\u65b9\u8c03\u7528sys.exit()\u51fd\u6570\u3002\u4e0b\u9762\u662f\u4e00\u4e2a\u793a\u4f8b\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import sys<\/p>\n<p>def m<a href=\"https:\/\/docs.pingcode.com\/blog\/59162.html\" target=\"_blank\">AI<\/a>n():<\/p>\n<p>    print(&quot;\u7a0b\u5e8f\u5f00\u59cb\u8fd0\u884c...&quot;)<\/p>\n<p>    # \u5728\u9700\u8981\u7ec8\u6b62\u7a0b\u5e8f\u7684\u5730\u65b9\u8c03\u7528sys.exit()<\/p>\n<p>    sys.exit(&quot;\u7a0b\u5e8f\u5df2\u7ec8\u6b62\u3002&quot;)<\/p>\n<p>    print(&quot;\u8fd9\u884c\u4ee3\u7801\u4e0d\u4f1a\u6267\u884c\u3002&quot;)<\/p>\n<p>if __name__ == &quot;__main__&quot;:<\/p>\n<p>    main()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u793a\u4f8b\u4e2d\uff0c\u7a0b\u5e8f\u4f1a\u6253\u5370&quot;\u7a0b\u5e8f\u5f00\u59cb\u8fd0\u884c&#8230;&quot;\uff0c\u7136\u540e\u8c03\u7528sys.exit()\u51fd\u6570\uff0c\u5e76\u4f20\u9012\u4e00\u4e2a\u9000\u51fa\u6d88\u606f&quot;\u7a0b\u5e8f\u5df2\u7ec8\u6b62\u3002&quot;\u7a0b\u5e8f\u4f1a\u6355\u83b7\u5230SystemExit\u5f02\u5e38\uff0c\u5e76\u7ec8\u6b62\u6267\u884c\uff0c\u540e\u7eed\u7684\u4ee3\u7801\u4e0d\u4f1a\u88ab\u6267\u884c\u3002<\/p>\n<\/p>\n<p><p>\u4e09\u3001\u4f7f\u7528os._exit()\u51fd\u6570<\/p>\n<\/p>\n<p><p>\u5728\u67d0\u4e9b\u60c5\u51b5\u4e0b\uff0c\u6211\u4eec\u53ef\u80fd\u9700\u8981\u5728\u7a0b\u5e8f\u4e2d\u5f3a\u5236\u9000\u51fa\uff0c\u800c\u4e0d\u89e6\u53d1\u4efb\u4f55\u5f02\u5e38\u5904\u7406\u3002os._exit()\u51fd\u6570\u53ef\u4ee5\u5b9e\u73b0\u8fd9\u4e00\u70b9\u3002os._exit()\u51fd\u6570\u4f1a\u76f4\u63a5\u7ec8\u6b62\u7a0b\u5e8f\u7684\u6267\u884c\uff0c\u5e76\u8fd4\u56de\u6307\u5b9a\u7684\u72b6\u6001\u7801\u3002\u4e0b\u9762\u662f\u4e00\u4e2a\u793a\u4f8b\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import os<\/p>\n<p>def main():<\/p>\n<p>    print(&quot;\u7a0b\u5e8f\u5f00\u59cb\u8fd0\u884c...&quot;)<\/p>\n<p>    # \u5728\u9700\u8981\u5f3a\u5236\u9000\u51fa\u7a0b\u5e8f\u7684\u5730\u65b9\u8c03\u7528os._exit()<\/p>\n<p>    os._exit(0)<\/p>\n<p>    print(&quot;\u8fd9\u884c\u4ee3\u7801\u4e0d\u4f1a\u6267\u884c\u3002&quot;)<\/p>\n<p>if __name__ == &quot;__main__&quot;:<\/p>\n<p>    main()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u793a\u4f8b\u4e2d\uff0c\u7a0b\u5e8f\u4f1a\u6253\u5370&quot;\u7a0b\u5e8f\u5f00\u59cb\u8fd0\u884c&#8230;&quot;\uff0c\u7136\u540e\u8c03\u7528os._exit(0)\u51fd\u6570\uff0c\u76f4\u63a5\u7ec8\u6b62\u7a0b\u5e8f\u7684\u6267\u884c\uff0c\u540e\u7eed\u7684\u4ee3\u7801\u4e0d\u4f1a\u88ab\u6267\u884c\u3002<\/p>\n<\/p>\n<p><p>\u56db\u3001\u901a\u8fc7\u7ebf\u7a0b\u6765\u7ec8\u6b62\u7a0b\u5e8f<\/p>\n<\/p>\n<p><p>\u5728\u591a\u7ebf\u7a0b\u7f16\u7a0b\u4e2d\uff0c\u6211\u4eec\u53ef\u4ee5\u4f7f\u7528\u7ebf\u7a0b\u5bf9\u8c61\u7684join()\u65b9\u6cd5\u548c\u6807\u5fd7\u53d8\u91cf\u6765\u7ec8\u6b62\u7a0b\u5e8f\u3002\u4e0b\u9762\u662f\u4e00\u4e2a\u4f7f\u7528\u7ebf\u7a0b\u6765\u7ec8\u6b62\u7a0b\u5e8f\u7684\u793a\u4f8b\uff1a<\/p>\n<\/p>\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;\u7ebf\u7a0b\u6b63\u5728\u8fd0\u884c...&quot;)<\/p>\n<p>        time.sleep(1)<\/p>\n<p>def main():<\/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>    print(&quot;\u7a0b\u5e8f\u5df2\u7ec8\u6b62\u3002&quot;)<\/p>\n<p>if __name__ == &quot;__main__&quot;:<\/p>\n<p>    main()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u793a\u4f8b\u4e2d\uff0cworker\u7ebf\u7a0b\u4f1a\u4e0d\u65ad\u5730\u6253\u5370&quot;\u7ebf\u7a0b\u6b63\u5728\u8fd0\u884c&#8230;&quot;\uff0c\u76f4\u5230\u4e3b\u7ebf\u7a0b\u57285\u79d2\u540e\u8bbe\u7f6estop_event\u4e8b\u4ef6\u6807\u5fd7\uff0c\u5e76\u8c03\u7528thread.join()\u65b9\u6cd5\u7b49\u5f85\u7ebf\u7a0b\u7ed3\u675f\u3002\u6700\u7ec8\uff0c\u7a0b\u5e8f\u4f1a\u6253\u5370&quot;\u7a0b\u5e8f\u5df2\u7ec8\u6b62\u3002&quot;\u5e76\u9000\u51fa\u3002<\/p>\n<\/p>\n<p><p>\u4e94\u3001\u901a\u8fc7\u4fe1\u53f7\u5904\u7406\u6765\u7ec8\u6b62\u7a0b\u5e8f<\/p>\n<\/p>\n<p><p>\u5728\u67d0\u4e9b\u60c5\u51b5\u4e0b\uff0c\u6211\u4eec\u53ef\u80fd\u9700\u8981\u6355\u83b7\u548c\u5904\u7406\u7cfb\u7edf\u4fe1\u53f7\uff08\u4f8b\u5982SIGTERM\uff09\u6765\u7ec8\u6b62\u7a0b\u5e8f\u3002Python\u7684signal\u6a21\u5757\u63d0\u4f9b\u4e86\u5904\u7406\u7cfb\u7edf\u4fe1\u53f7\u7684\u529f\u80fd\u3002\u4e0b\u9762\u662f\u4e00\u4e2a\u793a\u4f8b\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import signal<\/p>\n<p>import time<\/p>\n<p>def signal_handler(signum, frame):<\/p>\n<p>    print(&quot;\u63a5\u6536\u5230\u4fe1\u53f7\uff0c\u7a0b\u5e8f\u5df2\u7ec8\u6b62\u3002&quot;)<\/p>\n<p>    exit(0)<\/p>\n<p>signal.signal(signal.SIGTERM, signal_handler)<\/p>\n<p>def main():<\/p>\n<p>    print(&quot;\u7a0b\u5e8f\u5f00\u59cb\u8fd0\u884c...&quot;)<\/p>\n<p>    while True:<\/p>\n<p>        time.sleep(1)<\/p>\n<p>if __name__ == &quot;__main__&quot;:<\/p>\n<p>    main()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u793a\u4f8b\u4e2d\uff0c\u7a0b\u5e8f\u4f1a\u4e0d\u65ad\u5730\u8fd0\u884c\uff0c\u76f4\u5230\u63a5\u6536\u5230SIGTERM\u4fe1\u53f7\u3002signal_handler\u51fd\u6570\u4f1a\u6355\u83b7\u5230\u8fd9\u4e2a\u4fe1\u53f7\uff0c\u5e76\u6253\u5370&quot;\u63a5\u6536\u5230\u4fe1\u53f7\uff0c\u7a0b\u5e8f\u5df2\u7ec8\u6b62\u3002&quot;\u7136\u540e\u9000\u51fa\u7a0b\u5e8f\u3002<\/p>\n<\/p>\n<p><p>\u7efc\u4e0a\u6240\u8ff0\uff0cPython\u63d0\u4f9b\u4e86\u591a\u79cd\u65b9\u6cd5\u6765\u7ec8\u6b62\u8fd0\u884c\u4e2d\u7684\u7a0b\u5e8f\uff0c\u5305\u62ec\u4f7f\u7528\u952e\u76d8\u4e2d\u65ad\u3001sys.exit()\u51fd\u6570\u3001os._exit()\u51fd\u6570\u3001\u7ebf\u7a0b\u548c\u4fe1\u53f7\u5904\u7406\u7b49\u3002\u6211\u4eec\u53ef\u4ee5\u6839\u636e\u5177\u4f53\u9700\u6c42\u9009\u62e9\u5408\u9002\u7684\u65b9\u6cd5\u6765\u7ec8\u6b62\u7a0b\u5e8f\u7684\u8fd0\u884c\u3002\u5728\u5b9e\u9645\u5f00\u53d1\u4e2d\uff0c\u5408\u7406\u5730\u4f7f\u7528\u8fd9\u4e9b\u65b9\u6cd5\u53ef\u4ee5\u5e2e\u52a9\u6211\u4eec\u66f4\u597d\u5730\u63a7\u5236\u7a0b\u5e8f\u7684\u6267\u884c\u548c\u9000\u51fa\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u4f7f\u7528\u5feb\u6377\u952e\u7ec8\u6b62Python\u7a0b\u5e8f\uff1f<\/strong><br \/>\u5728\u5927\u591a\u6570\u5f00\u53d1\u73af\u5883\u4e2d\uff0c\u53ef\u4ee5\u901a\u8fc7\u4f7f\u7528\u5feb\u6377\u952e\u6765\u5feb\u901f\u7ec8\u6b62\u6b63\u5728\u8fd0\u884c\u7684Python\u7a0b\u5e8f\u3002\u4f8b\u5982\uff0c\u5728\u547d\u4ee4\u884c\u6216\u7ec8\u7aef\u4e2d\uff0c\u53ef\u4ee5\u4f7f\u7528Ctrl + C\u6765\u4e2d\u65ad\u7a0b\u5e8f\u7684\u6267\u884c\u3002\u5bf9\u4e8e\u67d0\u4e9bIDE\uff0c\u5982PyCharm\u6216VS Code\uff0c\u901a\u5e38\u4e5f\u53ef\u4ee5\u5728\u8fd0\u884c\u7a97\u53e3\u4e2d\u627e\u5230\u505c\u6b62\u6309\u94ae\u6765\u7ed3\u675f\u7a0b\u5e8f\u3002<\/p>\n<p><strong>\u5982\u679c\u7a0b\u5e8f\u6ca1\u6709\u54cd\u5e94\uff0c\u600e\u4e48\u529e\uff1f<\/strong><br \/>\u5f53Python\u7a0b\u5e8f\u65e0\u54cd\u5e94\u6216\u9677\u5165\u6b7b\u5faa\u73af\u65f6\uff0c\u53ef\u4ee5\u901a\u8fc7\u4efb\u52a1\u7ba1\u7406\u5668\uff08Windows\uff09\u6216\u6d3b\u52a8\u76d1\u89c6\u5668\uff08Mac\uff09\u6765\u5f3a\u5236\u5173\u95ed\u8be5\u7a0b\u5e8f\u3002\u5728\u4efb\u52a1\u7ba1\u7406\u5668\u4e2d\uff0c\u627e\u5230Python\u8fdb\u7a0b\uff0c\u53f3\u952e\u70b9\u51fb\u5e76\u9009\u62e9\u7ed3\u675f\u4efb\u52a1\u3002\u8fd9\u79cd\u65b9\u6cd5\u80fd\u6709\u6548\u89e3\u51b3\u7a0b\u5e8f\u5361\u6b7b\u7684\u95ee\u9898\u3002<\/p>\n<p><strong>\u5982\u4f55\u5728\u4ee3\u7801\u4e2d\u8bbe\u7f6e\u6761\u4ef6\u7ec8\u6b62\u7a0b\u5e8f\u8fd0\u884c\uff1f<\/strong><br \/>\u5728Python\u4ee3\u7801\u4e2d\uff0c\u53ef\u4ee5\u4f7f\u7528\u6761\u4ef6\u8bed\u53e5\u6765\u63a7\u5236\u7a0b\u5e8f\u7684\u7ed3\u675f\u3002\u4f8b\u5982\uff0c\u4f7f\u7528<code>break<\/code>\u8bed\u53e5\u5728\u5faa\u73af\u4e2d\u8fbe\u5230\u7279\u5b9a\u6761\u4ef6\u65f6\u9000\u51fa\uff0c\u6216\u8005\u4f7f\u7528<code>sys.exit()<\/code>\u51fd\u6570\u76f4\u63a5\u7ed3\u675f\u7a0b\u5e8f\u3002\u8fd9\u6837\u7684\u8bbe\u8ba1\u53ef\u4ee5\u63d0\u9ad8\u7a0b\u5e8f\u7684\u7075\u6d3b\u6027\uff0c\u786e\u4fdd\u5728\u6ee1\u8db3\u7279\u5b9a\u6761\u4ef6\u65f6\u80fd\u591f\u987a\u5229\u7ec8\u6b62\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u5728Python\u4e2d\u7ec8\u6b62\u8fd0\u884c\u4e2d\u7684\u7a0b\u5e8f\u53ef\u4ee5\u901a\u8fc7\u591a\u79cd\u65b9\u6cd5\u5b9e\u73b0\uff0c\u5305\u62ec\u4f7f\u7528\u952e\u76d8\u4e2d\u65ad\u3001sys.exit()\u51fd\u6570\u3001os._ex [&hellip;]","protected":false},"author":3,"featured_media":1080417,"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\/1080401"}],"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=1080401"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1080401\/revisions"}],"predecessor-version":[{"id":1080419,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1080401\/revisions\/1080419"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/1080417"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=1080401"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=1080401"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=1080401"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}