{"id":1024880,"date":"2024-12-30T14:17:41","date_gmt":"2024-12-30T06:17:41","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1024880.html"},"modified":"2024-12-30T14:17:44","modified_gmt":"2024-12-30T06:17:44","slug":"python%e5%a6%82%e4%bd%95%e8%ae%a9%e7%a8%8b%e5%ba%8f%e5%a4%b1%e6%95%88-2","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/1024880.html","title":{"rendered":"Python\u5982\u4f55\u8ba9\u7a0b\u5e8f\u5931\u6548"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-docs.pingcode.com\/wp-content\/uploads\/2024\/12\/a898a579-2b92-4e36-a9f0-8038cc8ca6d8.webp?x-oss-process=image\/auto-orient,1\/format,webp\" alt=\"Python\u5982\u4f55\u8ba9\u7a0b\u5e8f\u5931\u6548\" \/><\/p>\n<p><p> \u4e00\u3001Python\u5982\u4f55\u8ba9\u7a0b\u5e8f\u5931\u6548<\/p>\n<\/p>\n<p><p><strong>\u5728Python\u4e2d\u8ba9\u7a0b\u5e8f\u5931\u6548\u7684\u65b9\u6cd5\u6709\u5f88\u591a\u79cd\uff0c\u5305\u62ec\u5f15\u53d1\u5f02\u5e38\u3001\u4f7f\u7528sys.exit()\u51fd\u6570\u3001\u4f7f\u7528\u65e0\u9650\u5faa\u73af\u3001\u4f7f\u7528\u6761\u4ef6\u8bed\u53e5\u548c\u903b\u8f91\u9519\u8bef\u7b49<\/strong>\u3002\u5176\u4e2d\uff0c\u6700\u5e38\u7528\u7684\u65b9\u6cd5\u662f\u901a\u8fc7\u5f15\u53d1\u5f02\u5e38\u548c\u4f7f\u7528sys.exit()\u51fd\u6570\u6765\u7ec8\u6b62\u7a0b\u5e8f\u3002<strong>\u5f15\u53d1\u5f02\u5e38<\/strong>\u53ef\u4ee5\u5728\u7a0b\u5e8f\u6267\u884c\u8fc7\u7a0b\u4e2d\u9047\u5230\u7279\u5b9a\u6761\u4ef6\u65f6\uff0c\u4e3b\u52a8\u629b\u51fa\u5f02\u5e38\uff0c\u4ece\u800c\u7ec8\u6b62\u7a0b\u5e8f\u7684\u6267\u884c\u3002\u4e0b\u9762\u5c06\u8be6\u7ec6\u4ecb\u7ecd\u8fd9\u4e24\u79cd\u65b9\u6cd5\u3002<\/p>\n<\/p>\n<p><p><strong>\u5f15\u53d1\u5f02\u5e38<\/strong>\u662f\u4e00\u79cd\u5e38\u7528\u7684\u65b9\u6cd5\uff0c\u901a\u8fc7\u5728\u4ee3\u7801\u4e2d\u4e3b\u52a8\u629b\u51fa\u5f02\u5e38\uff0c\u53ef\u4ee5\u5728\u7279\u5b9a\u6761\u4ef6\u4e0b\u7ec8\u6b62\u7a0b\u5e8f\u7684\u6267\u884c\u3002\u4f8b\u5982\uff0c\u5728\u5904\u7406\u7528\u6237\u8f93\u5165\u65f6\uff0c\u5982\u679c\u8f93\u5165\u4e0d\u7b26\u5408\u9884\u671f\uff0c\u53ef\u4ee5\u5f15\u53d1\u5f02\u5e38\u6765\u63d0\u9192\u7528\u6237\u8f93\u5165\u9519\u8bef\uff0c\u5e76\u7ec8\u6b62\u7a0b\u5e8f\u3002\u5f15\u53d1\u5f02\u5e38\u7684\u597d\u5904\u5728\u4e8e\uff0c\u53ef\u4ee5\u901a\u8fc7\u6355\u6349\u548c\u5904\u7406\u5f02\u5e38\uff0c\u63d0\u4f9b\u66f4\u53cb\u597d\u7684\u9519\u8bef\u63d0\u793a\u548c\u5904\u7406\u65b9\u5f0f\uff0c\u4f7f\u7a0b\u5e8f\u66f4\u5065\u58ee\u3002<\/p>\n<\/p>\n<p><p><strong>\u4f7f\u7528sys.exit()\u51fd\u6570<\/strong>\u662f\u53e6\u4e00\u79cd\u5e38\u7528\u7684\u65b9\u6cd5\uff0c\u901a\u8fc7\u8c03\u7528sys.exit()\u51fd\u6570\uff0c\u53ef\u4ee5\u7acb\u5373\u7ec8\u6b62\u7a0b\u5e8f\u7684\u6267\u884c\uff0c\u5e76\u8fd4\u56de\u4e00\u4e2a\u72b6\u6001\u7801\u3002\u72b6\u6001\u7801\u4e3a0\u8868\u793a\u6b63\u5e38\u9000\u51fa\uff0c\u5176\u4ed6\u72b6\u6001\u7801\u8868\u793a\u5f02\u5e38\u9000\u51fa\u3002\u8fd9\u79cd\u65b9\u6cd5\u7b80\u5355\u76f4\u63a5\uff0c\u9002\u7528\u4e8e\u9700\u8981\u7acb\u5373\u7ec8\u6b62\u7a0b\u5e8f\u7684\u573a\u666f\u3002<\/p>\n<\/p>\n<p><p>\u4e8c\u3001\u5f15\u53d1\u5f02\u5e38<\/p>\n<\/p>\n<p><p>\u5f15\u53d1\u5f02\u5e38\u662fPython\u4e2d\u8ba9\u7a0b\u5e8f\u5931\u6548\u7684\u4e00\u79cd\u5e38\u7528\u65b9\u6cd5\u3002\u901a\u8fc7\u5728\u4ee3\u7801\u4e2d\u4e3b\u52a8\u629b\u51fa\u5f02\u5e38\uff0c\u53ef\u4ee5\u5728\u7279\u5b9a\u6761\u4ef6\u4e0b\u7ec8\u6b62\u7a0b\u5e8f\u7684\u6267\u884c\u3002\u4f8b\u5982\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">def divide(a, b):<\/p>\n<p>    if b == 0:<\/p>\n<p>        r<a href=\"https:\/\/docs.pingcode.com\/blog\/59162.html\" target=\"_blank\">AI<\/a>se ValueError(&quot;Division by zero is not allowed&quot;)<\/p>\n<p>    return a \/ b<\/p>\n<p>try:<\/p>\n<p>    result = divide(10, 0)<\/p>\n<p>except ValueError as e:<\/p>\n<p>    print(f&quot;Error: {e}&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u4f8b\u5b50\u4e2d\uff0c\u5f53\u9664\u6570\u4e3a0\u65f6\uff0c\u4e3b\u52a8\u629b\u51faValueError\u5f02\u5e38\uff0c\u4ece\u800c\u7ec8\u6b62\u7a0b\u5e8f\u7684\u6267\u884c\u3002\u901a\u8fc7\u6355\u6349\u548c\u5904\u7406\u5f02\u5e38\uff0c\u53ef\u4ee5\u63d0\u4f9b\u66f4\u53cb\u597d\u7684\u9519\u8bef\u63d0\u793a\u548c\u5904\u7406\u65b9\u5f0f\u3002<\/p>\n<\/p>\n<p><p>\u5f15\u53d1\u5f02\u5e38\u7684\u597d\u5904\u5728\u4e8e\uff0c\u53ef\u4ee5\u901a\u8fc7\u6355\u6349\u548c\u5904\u7406\u5f02\u5e38\uff0c\u4f7f\u7a0b\u5e8f\u5728\u9047\u5230\u9519\u8bef\u65f6\u80fd\u591f\u5e73\u7a33\u9000\u51fa\uff0c\u907f\u514d\u7a0b\u5e8f\u5d29\u6e83\u3002\u5e38\u89c1\u7684\u5f02\u5e38\u7c7b\u578b\u5305\u62ecValueError\u3001TypeError\u3001IndexError\u7b49\uff0c\u5177\u4f53\u4f7f\u7528\u65f6\u53ef\u4ee5\u6839\u636e\u5b9e\u9645\u60c5\u51b5\u9009\u62e9\u5408\u9002\u7684\u5f02\u5e38\u7c7b\u578b\u3002<\/p>\n<\/p>\n<p><p>\u4e09\u3001\u4f7f\u7528sys.exit()\u51fd\u6570<\/p>\n<\/p>\n<p><p>\u4f7f\u7528sys.exit()\u51fd\u6570\u662f\u53e6\u4e00\u79cd\u5e38\u7528\u7684\u65b9\u6cd5\uff0c\u901a\u8fc7\u8c03\u7528sys.exit()\u51fd\u6570\uff0c\u53ef\u4ee5\u7acb\u5373\u7ec8\u6b62\u7a0b\u5e8f\u7684\u6267\u884c\uff0c\u5e76\u8fd4\u56de\u4e00\u4e2a\u72b6\u6001\u7801\u3002\u4f8b\u5982\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import sys<\/p>\n<p>def main():<\/p>\n<p>    print(&quot;Program started&quot;)<\/p>\n<p>    sys.exit(1)<\/p>\n<p>    print(&quot;This line will not be executed&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\u4f8b\u5b50\u4e2d\uff0c\u8c03\u7528sys.exit(1)\u51fd\u6570\u540e\uff0c\u7a0b\u5e8f\u7acb\u5373\u7ec8\u6b62\uff0c\u5e76\u8fd4\u56de\u72b6\u6001\u78011\u3002\u72b6\u6001\u7801\u4e3a0\u8868\u793a\u6b63\u5e38\u9000\u51fa\uff0c\u5176\u4ed6\u72b6\u6001\u7801\u8868\u793a\u5f02\u5e38\u9000\u51fa\u3002<\/p>\n<\/p>\n<p><p>sys.exit()\u51fd\u6570\u7684\u597d\u5904\u5728\u4e8e\uff0c\u7b80\u5355\u76f4\u63a5\uff0c\u9002\u7528\u4e8e\u9700\u8981\u7acb\u5373\u7ec8\u6b62\u7a0b\u5e8f\u7684\u573a\u666f\u3002\u901a\u8fc7\u8fd4\u56de\u4e0d\u540c\u7684\u72b6\u6001\u7801\uff0c\u53ef\u4ee5\u533a\u5206\u7a0b\u5e8f\u662f\u6b63\u5e38\u9000\u51fa\u8fd8\u662f\u5f02\u5e38\u9000\u51fa\uff0c\u6709\u52a9\u4e8e\u8fdb\u884c\u9519\u8bef\u6392\u67e5\u548c\u5904\u7406\u3002<\/p>\n<\/p>\n<p><p>\u56db\u3001\u4f7f\u7528\u65e0\u9650\u5faa\u73af<\/p>\n<\/p>\n<p><p>\u65e0\u9650\u5faa\u73af\u662f\u53e6\u4e00\u79cd\u8ba9\u7a0b\u5e8f\u5931\u6548\u7684\u65b9\u6cd5\uff0c\u901a\u8fc7\u6784\u9020\u4e00\u4e2a\u6c38\u8fdc\u4e0d\u4f1a\u7ed3\u675f\u7684\u5faa\u73af\uff0c\u53ef\u4ee5\u4f7f\u7a0b\u5e8f\u9677\u5165\u6b7b\u5faa\u73af\uff0c\u4ece\u800c\u5931\u6548\u3002\u4f8b\u5982\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">while True:<\/p>\n<p>    pass<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u4f8b\u5b50\u4e2d\uff0c\u7a0b\u5e8f\u8fdb\u5165\u4e00\u4e2a\u65e0\u9650\u5faa\u73af\uff0c\u6c38\u8fdc\u4e0d\u4f1a\u7ed3\u675f\uff0c\u4ece\u800c\u4f7f\u7a0b\u5e8f\u5931\u6548\u3002\u4f7f\u7528\u65e0\u9650\u5faa\u73af\u7684\u65b9\u6cd5\u9002\u7528\u4e8e\u9700\u8981\u6a21\u62df\u7a0b\u5e8f\u5931\u6548\u7684\u573a\u666f\uff0c\u4f46\u9700\u8981\u6ce8\u610f\u907f\u514d\u5360\u7528\u8fc7\u591a\u7cfb\u7edf\u8d44\u6e90\u3002<\/p>\n<\/p>\n<p><p>\u4e94\u3001\u4f7f\u7528\u6761\u4ef6\u8bed\u53e5\u548c\u903b\u8f91\u9519\u8bef<\/p>\n<\/p>\n<p><p>\u4f7f\u7528\u6761\u4ef6\u8bed\u53e5\u548c\u903b\u8f91\u9519\u8bef\u4e5f\u662f\u8ba9\u7a0b\u5e8f\u5931\u6548\u7684\u4e00\u79cd\u65b9\u6cd5\uff0c\u901a\u8fc7\u5728\u4ee3\u7801\u4e2d\u6784\u9020\u9519\u8bef\u7684\u903b\u8f91\uff0c\u53ef\u4ee5\u4f7f\u7a0b\u5e8f\u5728\u7279\u5b9a\u6761\u4ef6\u4e0b\u5931\u6548\u3002\u4f8b\u5982\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">def check_positive(number):<\/p>\n<p>    if number &lt; 0:<\/p>\n<p>        print(&quot;Number is positive&quot;)<\/p>\n<p>    else:<\/p>\n<p>        print(&quot;Number is negative&quot;)<\/p>\n<p>check_positive(-10)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u4f8b\u5b50\u4e2d\uff0c\u901a\u8fc7\u6784\u9020\u9519\u8bef\u7684\u903b\u8f91\uff0c\u4f7f\u7a0b\u5e8f\u5728\u5224\u65ad\u8d1f\u6570\u65f6\u8f93\u51fa\u9519\u8bef\u7684\u63d0\u793a\uff0c\u4ece\u800c\u5931\u6548\u3002\u4f7f\u7528\u6761\u4ef6\u8bed\u53e5\u548c\u903b\u8f91\u9519\u8bef\u7684\u65b9\u6cd5\u9002\u7528\u4e8e\u9700\u8981\u6a21\u62df\u7a0b\u5e8f\u5931\u6548\u7684\u573a\u666f\uff0c\u4f46\u9700\u8981\u6ce8\u610f\u907f\u514d\u5f71\u54cd\u7a0b\u5e8f\u7684\u6b63\u5e38\u529f\u80fd\u3002<\/p>\n<\/p>\n<p><p>\u516d\u3001\u603b\u7ed3<\/p>\n<\/p>\n<p><p>\u5728Python\u4e2d\u8ba9\u7a0b\u5e8f\u5931\u6548\u7684\u65b9\u6cd5\u6709\u5f88\u591a\u79cd\uff0c\u5305\u62ec\u5f15\u53d1\u5f02\u5e38\u3001\u4f7f\u7528sys.exit()\u51fd\u6570\u3001\u4f7f\u7528\u65e0\u9650\u5faa\u73af\u3001\u4f7f\u7528\u6761\u4ef6\u8bed\u53e5\u548c\u903b\u8f91\u9519\u8bef\u7b49\u3002\u5f15\u53d1\u5f02\u5e38\u548c\u4f7f\u7528sys.exit()\u51fd\u6570\u662f\u6700\u5e38\u7528\u7684\u65b9\u6cd5\uff0c\u901a\u8fc7\u5f15\u53d1\u5f02\u5e38\u53ef\u4ee5\u5728\u7a0b\u5e8f\u6267\u884c\u8fc7\u7a0b\u4e2d\u9047\u5230\u7279\u5b9a\u6761\u4ef6\u65f6\u4e3b\u52a8\u7ec8\u6b62\u7a0b\u5e8f\uff0c\u4f7f\u7528sys.exit()\u51fd\u6570\u53ef\u4ee5\u7acb\u5373\u7ec8\u6b62\u7a0b\u5e8f\u5e76\u8fd4\u56de\u72b6\u6001\u7801\u3002\u65e0\u9650\u5faa\u73af\u548c\u6761\u4ef6\u8bed\u53e5\u3001\u903b\u8f91\u9519\u8bef\u662f\u5176\u4ed6\u5e38\u7528\u7684\u65b9\u6cd5\uff0c\u53ef\u4ee5\u6839\u636e\u5b9e\u9645\u60c5\u51b5\u9009\u62e9\u5408\u9002\u7684\u65b9\u6cd5\u6765\u5b9e\u73b0\u7a0b\u5e8f\u5931\u6548\u3002\u901a\u8fc7\u5408\u7406\u4f7f\u7528\u8fd9\u4e9b\u65b9\u6cd5\uff0c\u53ef\u4ee5\u63d0\u9ad8\u7a0b\u5e8f\u7684\u5065\u58ee\u6027\u548c\u53ef\u7ef4\u62a4\u6027\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u5728Python\u4e2d\u5b9e\u73b0\u7a0b\u5e8f\u7684\u81ea\u6211\u7ec8\u6b62\u529f\u80fd\uff1f<\/strong><br \/>\u5728Python\u4e2d\uff0c\u53ef\u4ee5\u4f7f\u7528<code>sys.exit()<\/code>\u51fd\u6570\u6765\u5b9e\u73b0\u7a0b\u5e8f\u7684\u81ea\u6211\u7ec8\u6b62\u3002\u901a\u8fc7\u8c03\u7528\u8fd9\u4e2a\u51fd\u6570\uff0c\u7a0b\u5e8f\u4f1a\u7acb\u5373\u505c\u6b62\u6267\u884c\uff0c\u5e76\u4e14\u53ef\u4ee5\u9009\u62e9\u6027\u5730\u8fd4\u56de\u4e00\u4e2a\u9000\u51fa\u72b6\u6001\u7801\u3002\u6b64\u5916\uff0c\u4f7f\u7528<code>os._exit()<\/code>\u4e5f\u80fd\u5f3a\u5236\u7ec8\u6b62\u7a0b\u5e8f\uff0c\u4f46\u4e0d\u5efa\u8bae\u5728\u6b63\u5e38\u60c5\u51b5\u4e0b\u4f7f\u7528\uff0c\u56e0\u4e3a\u5b83\u4e0d\u4f1a\u8fdb\u884c\u6e05\u7406\u5de5\u4f5c\u3002\u786e\u4fdd\u5728\u9700\u8981\u65f6\u59a5\u5584\u4f7f\u7528\u8fd9\u4e9b\u529f\u80fd\u3002<\/p>\n<p><strong>\u5728\u4ec0\u4e48\u60c5\u51b5\u4e0b\u9700\u8981\u8ba9Python\u7a0b\u5e8f\u5931\u6548\uff1f<\/strong><br \/>\u6709\u591a\u79cd\u60c5\u51b5\u53ef\u80fd\u9700\u8981\u8ba9\u7a0b\u5e8f\u5931\u6548\u3002\u4f8b\u5982\uff0c\u5f53\u68c0\u6d4b\u5230\u4e25\u91cd\u9519\u8bef\u6216\u5f02\u5e38\u72b6\u6001\u65f6\uff0c\u7a0b\u5e8f\u53ef\u80fd\u65e0\u6cd5\u5b89\u5168\u7ee7\u7eed\u6267\u884c\u3002\u5728\u5904\u7406\u654f\u611f\u6570\u636e\u6216\u5b89\u5168\u6027\u9ad8\u7684\u5e94\u7528\u4e2d\uff0c\u7a0b\u5e8f\u5931\u6548\u53ef\u4ee5\u9632\u6b62\u6570\u636e\u6cc4\u9732\u6216\u7cfb\u7edf\u88ab\u653b\u51fb\u7684\u98ce\u9669\u3002\u786e\u4fdd\u5728\u8fd9\u4e9b\u60c5\u51b5\u4e0b\u4f7f\u7528\u5408\u9002\u7684\u9519\u8bef\u5904\u7406\u548c\u9000\u51fa\u673a\u5236\u6765\u4fdd\u62a4\u7cfb\u7edf\u3002<\/p>\n<p><strong>\u5982\u4f55\u4f18\u96c5\u5730\u5904\u7406Python\u7a0b\u5e8f\u7684\u5931\u6548\u60c5\u51b5\uff1f<\/strong><br \/>\u4e3a\u4e86\u4f18\u96c5\u5730\u5904\u7406\u7a0b\u5e8f\u5931\u6548\uff0c\u53ef\u4ee5\u4f7f\u7528\u5f02\u5e38\u5904\u7406\u673a\u5236\u3002\u5728\u6355\u83b7\u5230\u7279\u5b9a\u5f02\u5e38\u65f6\uff0c\u7a0b\u5e8f\u53ef\u4ee5\u8f93\u51fa\u9519\u8bef\u4fe1\u606f\uff0c\u6267\u884c\u5fc5\u8981\u7684\u6e05\u7406\u64cd\u4f5c\u540e\u518d\u8c03\u7528<code>sys.exit()<\/code>\u3002\u6b64\u5916\uff0c\u4f7f\u7528<code>try...except<\/code>\u7ed3\u6784\u53ef\u4ee5\u786e\u4fdd\u5373\u4f7f\u5728\u53d1\u751f\u9519\u8bef\u65f6\uff0c\u7528\u6237\u4e5f\u80fd\u83b7\u5f97\u53cb\u597d\u7684\u63d0\u793a\uff0c\u907f\u514d\u7a0b\u5e8f\u76f4\u63a5\u5d29\u6e83\u800c\u5bfc\u81f4\u7684\u7528\u6237\u56f0\u6270\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u4e00\u3001Python\u5982\u4f55\u8ba9\u7a0b\u5e8f\u5931\u6548 \u5728Python\u4e2d\u8ba9\u7a0b\u5e8f\u5931\u6548\u7684\u65b9\u6cd5\u6709\u5f88\u591a\u79cd\uff0c\u5305\u62ec\u5f15\u53d1\u5f02\u5e38\u3001\u4f7f\u7528sys.exit( [&hellip;]","protected":false},"author":3,"featured_media":1024897,"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\/1024880"}],"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=1024880"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1024880\/revisions"}],"predecessor-version":[{"id":1024904,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1024880\/revisions\/1024904"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/1024897"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=1024880"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=1024880"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=1024880"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}