{"id":1174673,"date":"2025-01-15T17:21:35","date_gmt":"2025-01-15T09:21:35","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1174673.html"},"modified":"2025-01-15T17:21:37","modified_gmt":"2025-01-15T09:21:37","slug":"python%e5%a6%82%e4%bd%95%e7%bb%88%e6%ad%a2%e8%bf%90%e8%a1%8c%e7%a8%8b%e5%ba%8f","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/1174673.html","title":{"rendered":"python\u5982\u4f55\u7ec8\u6b62\u8fd0\u884c\u7a0b\u5e8f"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/25110338\/f314cb24-25af-4105-8bdf-8e278518d5fa.webp\" alt=\"python\u5982\u4f55\u7ec8\u6b62\u8fd0\u884c\u7a0b\u5e8f\" \/><\/p>\n<p><p> <strong>\u5728Python\u4e2d\uff0c\u6709\u51e0\u79cd\u65b9\u6cd5\u53ef\u4ee5\u7ec8\u6b62\u8fd0\u884c\u7a0b\u5e8f\uff0c\u4e3b\u8981\u5305\u62ec\u4f7f\u7528exit()\u51fd\u6570\u3001sys.exit()\u65b9\u6cd5\u3001os._exit()\u65b9\u6cd5\u3001r<a href=\"https:\/\/docs.pingcode.com\/blog\/59162.html\" target=\"_blank\">AI<\/a>se SystemExit\u5f02\u5e38\u3001\u4ee5\u53ca\u901a\u8fc7\u6355\u6349\u4fe1\u53f7\u6765\u7ec8\u6b62\u7a0b\u5e8f\u3002<\/strong>\u5176\u4e2d\uff0c\u6700\u5e38\u7528\u7684\u662f\u4f7f\u7528sys.exit()\u65b9\u6cd5\uff0c\u8fd9\u79cd\u65b9\u6cd5\u4e0d\u4ec5\u9002\u7528\u4e8e\u811a\u672c\u7a0b\u5e8f\uff0c\u4e5f\u9002\u7528\u4e8e\u56fe\u5f62\u754c\u9762\u7a0b\u5e8f\u548c\u540e\u53f0\u670d\u52a1\u3002sys.exit()\u65b9\u6cd5\u4f1a\u5f15\u53d1\u4e00\u4e2aSystemExit\u5f02\u5e38\uff0c\u4ece\u800c\u7ec8\u6b62\u7a0b\u5e8f\u7684\u8fd0\u884c\uff0c\u5e76\u4e14\u53ef\u4ee5\u8fd4\u56de\u4e00\u4e2a\u72b6\u6001\u7801\u7ed9\u64cd\u4f5c\u7cfb\u7edf\u4ee5\u4f9b\u8fdb\u4e00\u6b65\u5904\u7406\u3002\u63a5\u4e0b\u6765\u5c06\u8be6\u7ec6\u4ecb\u7ecd\u8fd9\u51e0\u79cd\u65b9\u6cd5\u53ca\u5176\u5177\u4f53\u4f7f\u7528\u573a\u666f\u3002<\/p>\n<\/p>\n<p><h3>\u4e00\u3001\u4f7f\u7528exit()\u51fd\u6570<\/h3>\n<\/p>\n<p><p>exit()\u51fd\u6570\u662fPython\u5185\u5efa\u7684\u4e00\u4e2a\u65b9\u4fbf\u65b9\u6cd5\uff0c\u4e3b\u8981\u7528\u4e8e\u5728\u4ea4\u4e92\u5f0f\u73af\u5883\u4e2d\u9000\u51faPython\u89e3\u91ca\u5668\u3002\u5b83\u662f\u76f4\u63a5\u4ece\u5185\u5efa\u7684sys\u6a21\u5757\u4e2d\u8c03\u7528\u7684\uff0c\u4f46\u5728\u811a\u672c\u4e2d\u4f7f\u7528\u65f6\u5e76\u4e0d\u63a8\u8350\uff0c\u56e0\u4e3a\u5b83\u4f1a\u5728\u5927\u591a\u6570\u60c5\u51b5\u4e0b\u629b\u51faSystemExit\u5f02\u5e38\uff0c\u4e14\u65e0\u6cd5\u88ab\u6355\u6349\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">exit()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u4e8c\u3001\u4f7f\u7528sys.exit()\u65b9\u6cd5<\/h3>\n<\/p>\n<p><p>sys.exit()\u662f\u7ec8\u6b62Python\u7a0b\u5e8f\u6700\u5e38\u7528\u7684\u65b9\u6cd5\uff0c\u9002\u7528\u4e8e\u5927\u591a\u6570\u5e94\u7528\u573a\u666f\u3002\u5b83\u4e0d\u4ec5\u80fd\u4f18\u96c5\u5730\u7ec8\u6b62\u7a0b\u5e8f\uff0c\u8fd8\u80fd\u8fd4\u56de\u4e00\u4e2a\u72b6\u6001\u7801\u7ed9\u64cd\u4f5c\u7cfb\u7edf\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import sys<\/p>\n<p>sys.exit(0)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>1. \u57fa\u672c\u7528\u6cd5<\/h4>\n<\/p>\n<p><p>sys.exit()\u65b9\u6cd5\u80fd\u591f\u63a5\u53d7\u4e00\u4e2a\u6574\u6570\u53c2\u6570\u4f5c\u4e3a\u8fd4\u56de\u72b6\u6001\u7801\uff0c0\u8868\u793a\u6b63\u5e38\u9000\u51fa\uff0c\u975e0\u8868\u793a\u5f02\u5e38\u9000\u51fa\u3002\u4e5f\u53ef\u4ee5\u4f20\u5165\u4e00\u4e2a\u5b57\u7b26\u4e32\u53c2\u6570\uff0c\u7528\u4e8e\u63cf\u8ff0\u9000\u51fa\u539f\u56e0\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import sys<\/p>\n<p>def main():<\/p>\n<p>    if some_condition:<\/p>\n<p>        sys.exit(&quot;Error: some_condition is not met.&quot;)<\/p>\n<p>if __name__ == &quot;__main__&quot;:<\/p>\n<p>    main()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>2. \u6355\u6349SystemExit\u5f02\u5e38<\/h4>\n<\/p>\n<p><p>\u5728\u67d0\u4e9b\u60c5\u51b5\u4e0b\uff0c\u53ef\u80fd\u9700\u8981\u6355\u6349\u5e76\u5904\u7406SystemExit\u5f02\u5e38\u3002\u53ef\u4ee5\u4f7f\u7528try-except\u5757\u6765\u6355\u6349SystemExit\u5f02\u5e38\uff0c\u5e76\u5728\u6355\u6349\u5230\u5f02\u5e38\u65f6\u6267\u884c\u7279\u5b9a\u64cd\u4f5c\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import sys<\/p>\n<p>try:<\/p>\n<p>    sys.exit(&quot;Exiting program&quot;)<\/p>\n<p>except SystemExit as e:<\/p>\n<p>    print(f&quot;Program exited with message: {e}&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u4e09\u3001\u4f7f\u7528os._exit()\u65b9\u6cd5<\/h3>\n<\/p>\n<p><p>os._exit()\u65b9\u6cd5\u662f\u76f4\u63a5\u8c03\u7528\u64cd\u4f5c\u7cfb\u7edf\u7684\u9000\u51fa\u51fd\u6570\uff0c\u7acb\u5373\u7ec8\u6b62\u7a0b\u5e8f\uff0c\u4e0d\u4f1a\u6267\u884c\u4efb\u4f55\u6e05\u7406\u64cd\u4f5c\uff0c\u4f8b\u5982\u6e05\u7406\u6253\u5f00\u7684\u6587\u4ef6\u3001\u5237\u65b0\u7f13\u51b2\u533a\u7b49\u3002\u5b83\u901a\u5e38\u7528\u4e8e\u5b50\u8fdb\u7a0b\u5728\u5b8c\u6210\u4efb\u52a1\u540e\u76f4\u63a5\u9000\u51fa\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import os<\/p>\n<p>os._exit(0)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>1. \u4f7f\u7528\u573a\u666f<\/h4>\n<\/p>\n<p><p>os._exit()\u65b9\u6cd5\u4e3b\u8981\u7528\u4e8e\u591a\u8fdb\u7a0b\u7f16\u7a0b\u4e2d\uff0c\u5b50\u8fdb\u7a0b\u5728\u5b8c\u6210\u4efb\u52a1\u540e\u76f4\u63a5\u9000\u51fa\uff0c\u800c\u4e0d\u5f71\u54cd\u4e3b\u8fdb\u7a0b\u6216\u5176\u4ed6\u5b50\u8fdb\u7a0b\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import os<\/p>\n<p>import multiprocessing<\/p>\n<p>def child_process():<\/p>\n<p>    print(&quot;Child process started&quot;)<\/p>\n<p>    os._exit(0)<\/p>\n<p>if __name__ == &quot;__main__&quot;:<\/p>\n<p>    p = multiprocessing.Process(target=child_process)<\/p>\n<p>    p.start()<\/p>\n<p>    p.join()<\/p>\n<p>    print(&quot;Main process continues&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u56db\u3001raise SystemExit\u5f02\u5e38<\/h3>\n<\/p>\n<p><p>\u901a\u8fc7\u76f4\u63a5\u5f15\u53d1SystemExit\u5f02\u5e38\uff0c\u4e5f\u53ef\u4ee5\u7ec8\u6b62\u7a0b\u5e8f\u8fd0\u884c\u3002\u4e0esys.exit()\u65b9\u6cd5\u7c7b\u4f3c\uff0c\u8fd9\u79cd\u65b9\u6cd5\u4e5f\u80fd\u8fd4\u56de\u72b6\u6001\u7801\uff0c\u5e76\u4e14\u80fd\u88ab\u6355\u6349\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">raise SystemExit(0)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>1. \u6355\u6349SystemExit\u5f02\u5e38<\/h4>\n<\/p>\n<p><pre><code class=\"language-python\">try:<\/p>\n<p>    raise SystemExit(&quot;Exiting program&quot;)<\/p>\n<p>except SystemExit as e:<\/p>\n<p>    print(f&quot;Program exited with message: {e}&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u4e94\u3001\u901a\u8fc7\u6355\u6349\u4fe1\u53f7\u7ec8\u6b62\u7a0b\u5e8f<\/h3>\n<\/p>\n<p><p>\u5728\u67d0\u4e9b\u573a\u666f\u4e0b\uff0c\u53ef\u4ee5\u901a\u8fc7\u6355\u6349\u64cd\u4f5c\u7cfb\u7edf\u53d1\u9001\u7684\u4fe1\u53f7\u6765\u7ec8\u6b62\u7a0b\u5e8f\u3002\u4f8b\u5982\uff0c\u6355\u6349SIGINT\u4fe1\u53f7\uff08\u901a\u5e38\u7531Ctrl+C\u89e6\u53d1\uff09\uff0c\u53ef\u4ee5\u4f18\u96c5\u5730\u7ec8\u6b62\u7a0b\u5e8f\u3002<\/p>\n<\/p>\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;You pressed Ctrl+C!&#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<p><h3>1. \u4fe1\u53f7\u5904\u7406\u5668\u7684\u4f7f\u7528<\/h3>\n<\/p>\n<p><p>\u901a\u8fc7\u5b9a\u4e49\u4e00\u4e2a\u4fe1\u53f7\u5904\u7406\u5668\u51fd\u6570\uff0c\u53ef\u4ee5\u5728\u6355\u6349\u5230\u7279\u5b9a\u4fe1\u53f7\u65f6\u6267\u884c\u7279\u5b9a\u64cd\u4f5c\u3002\u7136\u540e\u4f7f\u7528signal.signal()\u65b9\u6cd5\u5c06\u4fe1\u53f7\u5904\u7406\u5668\u4e0e\u4fe1\u53f7\u5173\u8054\u8d77\u6765\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import signal<\/p>\n<p>import sys<\/p>\n<p>def cleanup():<\/p>\n<p>    print(&quot;Cleaning up before exit&quot;)<\/p>\n<p>def signal_handler(sig, frame):<\/p>\n<p>    cleanup()<\/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<p><h3>\u516d\u3001\u603b\u7ed3<\/h3>\n<\/p>\n<p><p>\u5728Python\u4e2d\uff0c\u6709\u591a\u79cd\u65b9\u6cd5\u53ef\u4ee5\u7ec8\u6b62\u7a0b\u5e8f\u8fd0\u884c\uff0c\u6bcf\u79cd\u65b9\u6cd5\u90fd\u6709\u5176\u9002\u7528\u7684\u573a\u666f\u3002<strong>sys.exit()\u65b9\u6cd5<\/strong>\u662f\u6700\u5e38\u7528\u7684\u7ec8\u6b62\u7a0b\u5e8f\u7684\u65b9\u6cd5\uff0c\u56e0\u4e3a\u5b83\u80fd\u591f\u4f18\u96c5\u5730\u9000\u51fa\u7a0b\u5e8f\uff0c\u5e76\u8fd4\u56de\u72b6\u6001\u7801\u3002<strong>os._exit()\u65b9\u6cd5<\/strong>\u5219\u9002\u7528\u4e8e\u591a\u8fdb\u7a0b\u7f16\u7a0b\u4e2d\u7684\u5b50\u8fdb\u7a0b\u76f4\u63a5\u9000\u51fa\u3002<strong>raise SystemExit\u5f02\u5e38<\/strong>\u4e0esys.exit()\u65b9\u6cd5\u7c7b\u4f3c\uff0c\u4e5f\u80fd\u7ec8\u6b62\u7a0b\u5e8f\u5e76\u8fd4\u56de\u72b6\u6001\u7801\u3002<strong>exit()\u51fd\u6570<\/strong>\u4e3b\u8981\u7528\u4e8e\u4ea4\u4e92\u5f0f\u73af\u5883\uff0c\u4e0d\u63a8\u8350\u5728\u811a\u672c\u4e2d\u4f7f\u7528\u3002\u6700\u540e\uff0c\u901a\u8fc7\u6355\u6349\u4fe1\u53f7\u4e5f\u53ef\u4ee5\u5b9e\u73b0\u4f18\u96c5\u5730\u7ec8\u6b62\u7a0b\u5e8f\uff0c\u7279\u522b\u662f\u5728\u9700\u8981\u6267\u884c\u4e00\u4e9b\u6e05\u7406\u64cd\u4f5c\u65f6\u3002\u4e86\u89e3\u5e76\u638c\u63e1\u8fd9\u4e9b\u65b9\u6cd5\uff0c\u53ef\u4ee5\u6839\u636e\u5177\u4f53\u9700\u6c42\u9009\u62e9\u5408\u9002\u7684\u65b9\u6cd5\u6765\u7ec8\u6b62Python\u7a0b\u5e8f\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u5728Python\u4e2d\u5b89\u5168\u5730\u7ec8\u6b62\u4e00\u4e2a\u6b63\u5728\u8fd0\u884c\u7684\u7a0b\u5e8f\uff1f<\/strong><br \/>\u5728Python\u4e2d\uff0c\u60a8\u53ef\u4ee5\u4f7f\u7528<code>sys.exit()<\/code>\u51fd\u6570\u5b89\u5168\u5730\u7ec8\u6b62\u7a0b\u5e8f\u3002\u8fd9\u79cd\u65b9\u6cd5\u5141\u8bb8\u60a8\u5728\u4ee3\u7801\u4e2d\u6307\u5b9a\u9000\u51fa\u72b6\u6001\uff0c\u5e76\u4e14\u53ef\u4ee5\u5728\u9700\u8981\u65f6\u8fdb\u884c\u6e05\u7406\u64cd\u4f5c\u3002\u6b64\u5916\uff0c\u4f7f\u7528<code>KeyboardInterrupt<\/code>\u5f02\u5e38\u4e5f\u53ef\u4ee5\u624b\u52a8\u4e2d\u65ad\u7a0b\u5e8f\u7684\u6267\u884c\uff0c\u901a\u5e38\u662f\u5728\u547d\u4ee4\u884c\u4e2d\u6309<code>Ctrl + C<\/code>\u3002<\/p>\n<p><strong>\u5982\u679c\u6211\u7684\u7a0b\u5e8f\u8fdb\u5165\u4e86\u65e0\u9650\u5faa\u73af\uff0c\u6211\u8be5\u5982\u4f55\u5f3a\u5236\u7ec8\u6b62\u5b83\uff1f<\/strong><br \/>\u5728\u547d\u4ee4\u884c\u73af\u5883\u4e2d\uff0c\u60a8\u53ef\u4ee5\u901a\u8fc7\u6309<code>Ctrl + C<\/code>\u6765\u5f3a\u5236\u7ec8\u6b62\u6b63\u5728\u6267\u884c\u7684\u7a0b\u5e8f\u3002\u8fd9\u4f1a\u5f15\u53d1<code>KeyboardInterrupt<\/code>\u5f02\u5e38\uff0c\u7a0b\u5e8f\u4f1a\u7acb\u5373\u505c\u6b62\u3002\u5982\u679c\u60a8\u5728\u4f7f\u7528\u96c6\u6210\u5f00\u53d1\u73af\u5883\uff08IDE\uff09\uff0c\u901a\u5e38\u53ef\u4ee5\u627e\u5230\u4e00\u4e2a\u505c\u6b62\u6309\u94ae\u6765\u7ec8\u6b62\u7a0b\u5e8f\u7684\u6267\u884c\u3002<\/p>\n<p><strong>\u5982\u4f55\u5728Python\u4e2d\u4f7f\u7528try\/except\u6765\u5904\u7406\u7a0b\u5e8f\u7ec8\u6b62\uff1f<\/strong><br \/>\u901a\u8fc7\u4f7f\u7528<code>try\/except<\/code>\u7ed3\u6784\uff0c\u60a8\u53ef\u4ee5\u6355\u83b7\u7528\u6237\u53d1\u51fa\u7684\u7ec8\u6b62\u4fe1\u53f7\uff0c\u4f8b\u5982<code>KeyboardInterrupt<\/code>\u3002\u8fd9\u6837\uff0c\u60a8\u53ef\u4ee5\u5728\u7a0b\u5e8f\u7ec8\u6b62\u4e4b\u524d\u6267\u884c\u4e00\u4e9b\u6e05\u7406\u64cd\u4f5c\uff0c\u6bd4\u5982\u4fdd\u5b58\u6570\u636e\u6216\u91ca\u653e\u8d44\u6e90\u3002\u4ee5\u4e0b\u662f\u4e00\u4e2a\u793a\u4f8b\u4ee3\u7801\uff1a  <\/p>\n<pre><code class=\"language-python\">import time\n\ntry:\n    while True:\n        print(&quot;\u7a0b\u5e8f\u6b63\u5728\u8fd0\u884c...&quot;)\n        time.sleep(1)\nexcept KeyboardInterrupt:\n    print(&quot;\u7a0b\u5e8f\u5df2\u88ab\u7528\u6237\u7ec8\u6b62\u3002&quot;)\n<\/code><\/pre>\n<p><strong>\u5728Python\u811a\u672c\u4e2d\u662f\u5426\u53ef\u4ee5\u901a\u8fc7\u81ea\u5b9a\u4e49\u6761\u4ef6\u6765\u7ec8\u6b62\u7a0b\u5e8f\uff1f<\/strong><br \/>\u662f\u7684\uff0c\u60a8\u53ef\u4ee5\u901a\u8fc7\u7f16\u5199\u6761\u4ef6\u8bed\u53e5\u6765\u63a7\u5236\u7a0b\u5e8f\u7684\u7ec8\u6b62\u3002\u4f8b\u5982\uff0c\u60a8\u53ef\u4ee5\u8bbe\u7f6e\u4e00\u4e2a\u6807\u5fd7\u53d8\u91cf\uff0c\u5f53\u6ee1\u8db3\u7279\u5b9a\u6761\u4ef6\u65f6\uff0c\u4f7f\u7528<code>break<\/code>\u8bed\u53e5\u6216<code>sys.exit()<\/code>\u6765\u9000\u51fa\u5faa\u73af\u6216\u7a0b\u5e8f\u3002\u8fd9\u4f7f\u5f97\u7a0b\u5e8f\u5728\u8fd0\u884c\u65f6\u80fd\u591f\u6839\u636e\u5b9e\u65f6\u6570\u636e\u6216\u7528\u6237\u8f93\u5165\u7075\u6d3b\u8c03\u6574\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u5728Python\u4e2d\uff0c\u6709\u51e0\u79cd\u65b9\u6cd5\u53ef\u4ee5\u7ec8\u6b62\u8fd0\u884c\u7a0b\u5e8f\uff0c\u4e3b\u8981\u5305\u62ec\u4f7f\u7528exit()\u51fd\u6570\u3001sys.exit()\u65b9\u6cd5\u3001os._ [&hellip;]","protected":false},"author":3,"featured_media":1174677,"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\/1174673"}],"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=1174673"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1174673\/revisions"}],"predecessor-version":[{"id":1174678,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1174673\/revisions\/1174678"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/1174677"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=1174673"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=1174673"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=1174673"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}