{"id":1020426,"date":"2024-12-27T13:11:47","date_gmt":"2024-12-27T05:11:47","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1020426.html"},"modified":"2024-12-27T13:11:50","modified_gmt":"2024-12-27T05:11:50","slug":"%e7%bb%88%e7%ab%af%e4%b8%ad%e5%a6%82%e4%bd%95%e9%80%80%e5%87%bapython","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/1020426.html","title":{"rendered":"\u7ec8\u7aef\u4e2d\u5982\u4f55\u9000\u51fapython"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/25162824\/d988be5f-a823-4a7a-9307-b5b2d6f016bf.webp\" alt=\"\u7ec8\u7aef\u4e2d\u5982\u4f55\u9000\u51fapython\" \/><\/p>\n<p><p> \u5728\u7ec8\u7aef\u4e2d\u9000\u51faPython\u7684\u65b9\u5f0f\u6709\u591a\u79cd\uff0c<strong>\u4f60\u53ef\u4ee5\u4f7f\u7528\u5feb\u6377\u952e\u3001\u5185\u7f6e\u547d\u4ee4\u6216\u7ec8\u6b62\u4fe1\u53f7<\/strong>\u3002\u6700\u5e38\u7528\u7684\u65b9\u5f0f\u662f\u6309\u4e0b<code>Ctrl+D<\/code>\uff08\u9002\u7528\u4e8eUnix\/Linux\u548cmacOS\u7cfb\u7edf\uff09\u6216<code>Ctrl+Z<\/code>\u7136\u540e\u6309<code>Enter<\/code>\uff08\u9002\u7528\u4e8eWindows\u7cfb\u7edf\uff09\uff0c\u8fd9\u4e9b\u5feb\u6377\u952e\u5c06\u53d1\u9001\u4e00\u4e2aEOF\uff08End of File\uff09\u4fe1\u53f7\u6765\u7ec8\u6b62Python\u89e3\u91ca\u5668\u4f1a\u8bdd\u3002<strong>\u6b64\u5916\uff0c\u8f93\u5165<code>exit()<\/code>\u6216<code>quit()<\/code>\u4e5f\u662f\u4e00\u79cd\u5e38\u89c1\u7684\u9000\u51fa\u65b9\u5f0f<\/strong>\uff0c\u56e0\u4e3a\u5b83\u4eec\u662fPython\u5185\u7f6e\u7684\u9000\u51fa\u547d\u4ee4\u3002<strong>\u5728\u67d0\u4e9b\u60c5\u51b5\u4e0b\uff0c\u4f7f\u7528\u7cfb\u7edf\u547d\u4ee4\u5982<code>kill<\/code>\u6216<code>taskkill<\/code>\u6765\u5f3a\u5236\u7ec8\u6b62Python\u8fdb\u7a0b\u4e5f\u662f\u4e00\u79cd\u9009\u62e9<\/strong>\u3002\u4e0b\u9762\u6211\u4eec\u5c06\u8be6\u7ec6\u4ecb\u7ecd\u8fd9\u4e9b\u65b9\u6cd5\u7684\u4f7f\u7528\u573a\u666f\u548c\u6ce8\u610f\u4e8b\u9879\u3002<\/p>\n<\/p>\n<p><p>\u4e00\u3001\u5feb\u6377\u952e\u9000\u51fa<\/p>\n<\/p>\n<p><p>\u5728\u7ec8\u7aef\u4e2d\u4f7f\u7528\u5feb\u6377\u952e\u9000\u51faPython\u4f1a\u8bdd\u662f\u4e00\u79cd\u5feb\u901f\u4e14\u7b80\u5355\u7684\u65b9\u5f0f\u3002\u5bf9\u4e8e\u4e0d\u540c\u7684\u64cd\u4f5c\u7cfb\u7edf\uff0c\u5feb\u6377\u952e\u7565\u6709\u4e0d\u540c\u3002<\/p>\n<\/p>\n<ol>\n<li><strong>Unix\/Linux\u548cmacOS\u7cfb\u7edf<\/strong><\/li>\n<\/ol>\n<p><p>\u5728Unix\/Linux\u548cmacOS\u7cfb\u7edf\u4e2d\uff0c\u6309\u4e0b<code>Ctrl+D<\/code>\u53ef\u4ee5\u53d1\u9001EOF\u4fe1\u53f7\u7ed9Python\u89e3\u91ca\u5668\uff0c\u4ece\u800c\u7ec8\u6b62\u4f1a\u8bdd\u3002\u8fd9\u79cd\u65b9\u5f0f\u7b80\u5355\u9ad8\u6548\uff0c\u9002\u7528\u4e8e\u5927\u591a\u6570\u60c5\u51b5\u3002EOF\u4fe1\u53f7\u8868\u793a\u8f93\u5165\u7684\u7ed3\u675f\uff0c\u5728\u547d\u4ee4\u884c\u4e2d\u88abPython\u89e3\u91ca\u5668\u8bc6\u522b\u4e3a\u7ed3\u675f\u6307\u4ee4\u3002<\/p>\n<\/p>\n<ol start=\"2\">\n<li><strong>Windows\u7cfb\u7edf<\/strong><\/li>\n<\/ol>\n<p><p>\u5728Windows\u7cfb\u7edf\u4e2d\uff0c<code>Ctrl+Z<\/code>\u52a0\u4e0a<code>Enter<\/code>\u952e\u7684\u7ec4\u5408\u53ef\u4ee5\u8fbe\u5230\u76f8\u540c\u7684\u6548\u679c\u3002\u6309\u4e0b<code>Ctrl+Z<\/code>\u4f1a\u5c06\u63a7\u5236\u53f0\u7f6e\u4e8e&quot;\u6682\u505c&quot;\u72b6\u6001\uff0c\u968f\u540e\u6309\u4e0b<code>Enter<\/code>\u952e\u786e\u8ba4\u9000\u51fa\u3002\u8fd9\u79cd\u65b9\u5f0f\u540c\u6837\u53d1\u9001EOF\u4fe1\u53f7\u7ed9Python\u89e3\u91ca\u5668\u3002<\/p>\n<\/p>\n<p><p>\u4e8c\u3001\u4f7f\u7528\u5185\u7f6e\u547d\u4ee4\u9000\u51fa<\/p>\n<\/p>\n<p><p>Python\u63d0\u4f9b\u4e86\u4e24\u79cd\u5185\u7f6e\u547d\u4ee4\u6765\u9000\u51fa\u89e3\u91ca\u5668\uff1a<code>exit()<\/code>\u548c<code>quit()<\/code>\u3002\u8fd9\u4e24\u8005\u5728\u529f\u80fd\u4e0a\u5b8c\u5168\u76f8\u540c\uff0c\u5747\u53ef\u7528\u4e8e\u5b89\u5168\u5730\u9000\u51faPython\u4f1a\u8bdd\u3002<\/p>\n<\/p>\n<ol>\n<li><strong>exit()\u547d\u4ee4<\/strong><\/li>\n<\/ol>\n<p><p>\u5728Python\u7684\u4ea4\u4e92\u5f0f\u89e3\u91ca\u5668\u4e2d\u8f93\u5165<code>exit()<\/code>\u5e76\u6309\u4e0b<code>Enter<\/code>\u952e\uff0c\u89e3\u91ca\u5668\u4f1a\u63d0\u793a\u7528\u6237\u786e\u8ba4\u9000\u51fa\u3002\u5982\u679c\u662f\u5728\u4e00\u4e2a\u811a\u672c\u4e2d\u4f7f\u7528\u8be5\u547d\u4ee4\uff0cPython\u4f1a\u7acb\u5373\u7ec8\u6b62\u6267\u884c\uff0c\u5e76\u8fd4\u56de\u5230\u64cd\u4f5c\u7cfb\u7edf\u7684\u547d\u4ee4\u884c\u63d0\u793a\u7b26\u3002<\/p>\n<\/p>\n<ol start=\"2\">\n<li><strong>quit()\u547d\u4ee4<\/strong><\/li>\n<\/ol>\n<p><p><code>quit()<\/code>\u547d\u4ee4\u7684\u4f7f\u7528\u65b9\u6cd5\u4e0e<code>exit()<\/code>\u547d\u4ee4\u5b8c\u5168\u4e00\u81f4\u3002\u5728Python\u7684\u4ea4\u4e92\u5f0f\u89e3\u91ca\u5668\u4e2d\u8f93\u5165<code>quit()<\/code>\u5e76\u6309\u4e0b<code>Enter<\/code>\u952e\uff0cPython\u4f1a\u7acb\u5373\u9000\u51fa\u3002\u5bf9\u4e8e\u7528\u6237\u6765\u8bf4\uff0c\u8fd9\u4e24\u79cd\u547d\u4ee4\u53ef\u4ee5\u4e92\u6362\u4f7f\u7528\uff0c\u6ca1\u6709\u529f\u80fd\u4e0a\u7684\u533a\u522b\u3002<\/p>\n<\/p>\n<p><p>\u4e09\u3001\u4f7f\u7528\u7cfb\u7edf\u547d\u4ee4\u9000\u51fa<\/p>\n<\/p>\n<p><p>\u5728\u67d0\u4e9b\u60c5\u51b5\u4e0b\uff0c\u7279\u522b\u662f\u5f53Python\u8fdb\u7a0b\u5931\u53bb\u54cd\u5e94\u65f6\uff0c\u4f7f\u7528\u7cfb\u7edf\u547d\u4ee4\u6765\u5f3a\u5236\u7ec8\u6b62Python\u8fdb\u7a0b\u662f\u5fc5\u8981\u7684\u3002<\/p>\n<\/p>\n<ol>\n<li><strong>Unix\/Linux\u548cmacOS\u7cfb\u7edf<\/strong><\/li>\n<\/ol>\n<p><p>\u5728\u8fd9\u4e9b\u7cfb\u7edf\u4e2d\uff0c\u53ef\u4ee5\u4f7f\u7528<code>kill<\/code>\u547d\u4ee4\u6765\u7ec8\u6b62Python\u8fdb\u7a0b\u3002\u9996\u5148\u9700\u8981\u4f7f\u7528<code>ps<\/code>\u547d\u4ee4\u6765\u67e5\u770b\u5f53\u524d\u8fd0\u884c\u7684\u8fdb\u7a0b\uff0c\u627e\u5230Python\u8fdb\u7a0b\u7684PID\uff08\u8fdb\u7a0bID\uff09\u3002\u7136\u540e\u4f7f\u7528<code>kill [PID]<\/code>\u547d\u4ee4\u6765\u7ec8\u6b62\u8be5\u8fdb\u7a0b\u3002\u5982\u679c\u8fdb\u7a0b\u4e0d\u54cd\u5e94\uff0c\u53ef\u4ee5\u5c1d\u8bd5\u4f7f\u7528<code>kill -9 [PID]<\/code>\u6765\u5f3a\u5236\u7ec8\u6b62\u3002<\/p>\n<\/p>\n<ol start=\"2\">\n<li><strong>Windows\u7cfb\u7edf<\/strong><\/li>\n<\/ol>\n<p><p>\u5728Windows\u7cfb\u7edf\u4e2d\uff0c\u4f7f\u7528<code>tasklist<\/code>\u547d\u4ee4\u53ef\u4ee5\u67e5\u770b\u5f53\u524d\u8fd0\u884c\u7684\u8fdb\u7a0b\uff0c\u627e\u5230Python\u8fdb\u7a0b\u7684PID\u3002\u7136\u540e\u4f7f\u7528<code>taskkill \/PID [PID]<\/code>\u6765\u7ec8\u6b62\u8be5\u8fdb\u7a0b\u3002\u5982\u679c\u9700\u8981\u5f3a\u5236\u7ec8\u6b62\uff0c\u53ef\u4ee5\u6dfb\u52a0<code>\/F<\/code>\u53c2\u6570\u3002<\/p>\n<\/p>\n<p><p>\u56db\u3001\u4f7f\u7528Python\u811a\u672c\u9000\u51fa<\/p>\n<\/p>\n<p><p>\u5728\u7f16\u5199Python\u811a\u672c\u65f6\uff0c\u4e5f\u53ef\u4ee5\u5728\u4ee3\u7801\u4e2d\u8c03\u7528\u7cfb\u7edf\u547d\u4ee4\u6765\u9000\u51fa\u7a0b\u5e8f\u3002\u8fd9\u901a\u5e38\u7528\u4e8e\u5728\u7279\u5b9a\u6761\u4ef6\u4e0b\u81ea\u52a8\u9000\u51fa\u811a\u672c\u3002<\/p>\n<\/p>\n<ol>\n<li><strong>\u4f7f\u7528sys.exit()<\/strong><\/li>\n<\/ol>\n<p><p>Python\u7684<code>sys<\/code>\u6a21\u5757\u63d0\u4f9b\u4e86<code>sys.exit()<\/code>\u51fd\u6570\uff0c\u53ef\u4ee5\u5728\u811a\u672c\u4e2d\u8c03\u7528\u4ee5\u9000\u51fa\u7a0b\u5e8f\u3002\u5728\u811a\u672c\u4e2d\u8c03\u7528\u8be5\u51fd\u6570\u65f6\uff0c\u53ef\u4ee5\u4f20\u9012\u4e00\u4e2a\u6574\u6570\u53c2\u6570\uff0c\u8868\u793a\u9000\u51fa\u72b6\u6001\u7801\uff0c\u9ed8\u8ba4\u503c\u4e3a0\u8868\u793a\u6b63\u5e38\u9000\u51fa\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import sys<\/p>\n<h2><strong>\u6761\u4ef6\u5224\u65ad<\/strong><\/h2>\n<p>if some_condition:<\/p>\n<p>    sys.exit(0)  # \u6b63\u5e38\u9000\u51fa<\/p>\n<p>else:<\/p>\n<p>    sys.exit(1)  # \u5f02\u5e38\u9000\u51fa<\/p>\n<p><\/code><\/pre>\n<\/p>\n<ol start=\"2\">\n<li><strong>\u4f7f\u7528os._exit()<\/strong><\/li>\n<\/ol>\n<p><p>\u867d\u7136\u4e0d\u5e38\u7528\uff0c\u4f46<code>os<\/code>\u6a21\u5757\u63d0\u4f9b\u7684<code>os._exit()<\/code>\u51fd\u6570\u4e5f\u53ef\u4ee5\u7528\u4e8e\u9000\u51faPython\u7a0b\u5e8f\u3002\u4e0e<code>sys.exit()<\/code>\u4e0d\u540c\uff0c<code>os._exit()<\/code>\u4f1a\u7acb\u5373\u7ec8\u6b62\u7a0b\u5e8f\u800c\u4e0d\u629b\u51fa\u5f02\u5e38\uff0c\u5e76\u4e14\u4e0d\u4f1a\u8c03\u7528\u4efb\u4f55\u6e05\u7406\u64cd\u4f5c\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import os<\/p>\n<h2><strong>\u6761\u4ef6\u5224\u65ad<\/strong><\/h2>\n<p>if some_condition:<\/p>\n<p>    os._exit(0)  # \u6b63\u5e38\u9000\u51fa<\/p>\n<p>else:<\/p>\n<p>    os._exit(1)  # \u5f02\u5e38\u9000\u51fa<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u4e94\u3001\u6ce8\u610f\u4e8b\u9879<\/p>\n<\/p>\n<p><p>\u5728\u4f7f\u7528\u4ee5\u4e0a\u65b9\u6cd5\u9000\u51faPython\u65f6\uff0c\u9700\u8981\u6ce8\u610f\u4e00\u4e9b\u4e8b\u9879\u4ee5\u786e\u4fdd\u7a0b\u5e8f\u7684\u7a33\u5b9a\u6027\u548c\u6570\u636e\u5b8c\u6574\u6027\u3002<\/p>\n<\/p>\n<ol>\n<li><strong>\u6e05\u7406\u64cd\u4f5c<\/strong><\/li>\n<\/ol>\n<p><p>\u5728\u9000\u51faPython\u7a0b\u5e8f\u4e4b\u524d\uff0c\u786e\u4fdd\u4efb\u4f55\u5fc5\u8981\u7684\u6e05\u7406\u64cd\u4f5c\u5df2\u7ecf\u5b8c\u6210\uff0c\u4f8b\u5982\u5173\u95ed\u6587\u4ef6\u3001\u91ca\u653e\u8d44\u6e90\u6216\u4fdd\u5b58\u6570\u636e\u3002\u672a\u80fd\u6b63\u786e\u5b8c\u6210\u8fd9\u4e9b\u64cd\u4f5c\u53ef\u80fd\u5bfc\u81f4\u6570\u636e\u4e22\u5931\u6216\u8d44\u6e90\u6cc4\u6f0f\u3002<\/p>\n<\/p>\n<ol start=\"2\">\n<li><strong>\u9000\u51fa\u72b6\u6001\u7801<\/strong><\/li>\n<\/ol>\n<p><p>\u5728\u7f16\u5199\u811a\u672c\u65f6\uff0c\u5408\u7406\u4f7f\u7528\u9000\u51fa\u72b6\u6001\u7801\u53ef\u4ee5\u5e2e\u52a9\u8bc6\u522b\u7a0b\u5e8f\u7684\u9000\u51fa\u539f\u56e0\u3002\u901a\u5e38\uff0c0\u8868\u793a\u6b63\u5e38\u9000\u51fa\uff0c\u800c\u975e0\u503c\u8868\u793a\u51fa\u73b0\u9519\u8bef\u3002<\/p>\n<\/p>\n<ol start=\"3\">\n<li><strong>\u4fe1\u53f7\u5904\u7406<\/strong><\/li>\n<\/ol>\n<p><p>\u5728\u67d0\u4e9b\u590d\u6742\u7684Python\u5e94\u7528\u4e2d\uff0c\u53ef\u80fd\u9700\u8981\u5904\u7406\u7cfb\u7edf\u4fe1\u53f7\u4ee5\u786e\u4fdd\u7a0b\u5e8f\u6b63\u786e\u9000\u51fa\u3002\u53ef\u4ee5\u4f7f\u7528<code>signal<\/code>\u6a21\u5757\u6765\u6355\u6349\u548c\u5904\u7406\u4fe1\u53f7\uff0c\u4ece\u800c\u5b9e\u73b0\u81ea\u5b9a\u4e49\u7684\u9000\u51fa\u884c\u4e3a\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;Exiting gracefully...&#39;)<\/p>\n<p>    sys.exit(0)<\/p>\n<p>signal.signal(signal.SIGINT, signal_handler)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u901a\u8fc7\u7ed3\u5408\u4f7f\u7528\u5feb\u6377\u952e\u3001\u5185\u7f6e\u547d\u4ee4\u3001\u7cfb\u7edf\u547d\u4ee4\u548c\u811a\u672c\u4e2d\u7684\u9000\u51fa\u6307\u4ee4\uff0c\u53ef\u4ee5\u7075\u6d3b\u5730\u7ba1\u7406Python\u4f1a\u8bdd\u548c\u811a\u672c\u7684\u9000\u51fa\u8fc7\u7a0b\u3002\u6839\u636e\u5177\u4f53\u7684\u4f7f\u7528\u573a\u666f\u9009\u62e9\u5408\u9002\u7684\u65b9\u6cd5\uff0c\u4e0d\u4ec5\u53ef\u4ee5\u63d0\u9ad8\u5de5\u4f5c\u6548\u7387\uff0c\u8fd8\u80fd\u786e\u4fdd\u7a0b\u5e8f\u7684\u7a33\u5b9a\u6027\u548c\u6570\u636e\u5b89\u5168\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u5728\u7ec8\u7aef\u4e2d\u5b89\u5168\u9000\u51faPython\u73af\u5883\uff1f<\/strong><br \/>\u5728\u7ec8\u7aef\u4e2d\u9000\u51faPython\u73af\u5883\uff0c\u53ef\u4ee5\u4f7f\u7528 <code>exit()<\/code> \u6216 <code>quit()<\/code> \u547d\u4ee4\u3002\u8fd9\u4e9b\u547d\u4ee4\u4f1a\u5b89\u5168\u5730\u7ed3\u675f\u5f53\u524d\u7684Python\u4f1a\u8bdd\u3002\u6b64\u5916\uff0c\u4f60\u4e5f\u53ef\u4ee5\u4f7f\u7528\u5feb\u6377\u952e Ctrl + D\uff08\u5728Linux\u548cMac\u4e0a\uff09\u6216\u8005 Ctrl + Z\uff08\u5728Windows\u4e0a\uff09\uff0c\u8fd9\u5c06\u4f7f\u7ec8\u7aef\u8fd4\u56de\u5230\u547d\u4ee4\u884c\u754c\u9762\u3002<\/p>\n<p><strong>\u662f\u5426\u53ef\u4ee5\u4f7f\u7528\u5176\u4ed6\u65b9\u5f0f\u9000\u51faPython\uff1f<\/strong><br \/>\u662f\u7684\uff0c\u9664\u4e86\u4f7f\u7528\u4e0a\u8ff0\u547d\u4ee4\u548c\u5feb\u6377\u952e\u5916\uff0c\u4f60\u8fd8\u53ef\u4ee5\u76f4\u63a5\u5173\u95ed\u7ec8\u7aef\u7a97\u53e3\u6216\u6807\u7b7e\u9875\u3002\u8fd9\u79cd\u65b9\u6cd5\u867d\u7136\u53ef\u4ee5\u9000\u51faPython\uff0c\u4f46\u53ef\u80fd\u4f1a\u5bfc\u81f4\u672a\u4fdd\u5b58\u7684\u5de5\u4f5c\u4e22\u5931\uff0c\u56e0\u6b64\u6700\u597d\u5728\u5173\u95ed\u4e4b\u524d\u786e\u4fdd\u6240\u6709\u91cd\u8981\u6570\u636e\u5df2\u88ab\u4fdd\u5b58\u3002<\/p>\n<p><strong>\u5728Python\u811a\u672c\u4e2d\u5982\u4f55\u5b9e\u73b0\u81ea\u52a8\u9000\u51fa\uff1f<\/strong><br \/>\u5982\u679c\u4f60\u5728\u7f16\u5199Python\u811a\u672c\u5e76\u5e0c\u671b\u5728\u8fd0\u884c\u7ed3\u675f\u540e\u81ea\u52a8\u9000\u51fa\uff0c\u53ef\u4ee5\u4f7f\u7528 <code>sys.exit()<\/code> \u51fd\u6570\u3002\u8fd9\u4e2a\u51fd\u6570\u53ef\u4ee5\u5728\u7a0b\u5e8f\u6267\u884c\u5230\u8fbe\u7279\u5b9a\u6761\u4ef6\u65f6\u7ec8\u6b62\u7a0b\u5e8f\u8fd0\u884c\uff0c\u975e\u5e38\u9002\u5408\u9700\u8981\u6839\u636e\u6761\u4ef6\u6765\u9000\u51fa\u7684\u573a\u666f\u3002\u5728\u4f7f\u7528\u524d\uff0c\u9700\u8981\u5148\u5bfc\u5165 <code>sys<\/code> \u6a21\u5757\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u5728\u7ec8\u7aef\u4e2d\u9000\u51faPython\u7684\u65b9\u5f0f\u6709\u591a\u79cd\uff0c\u4f60\u53ef\u4ee5\u4f7f\u7528\u5feb\u6377\u952e\u3001\u5185\u7f6e\u547d\u4ee4\u6216\u7ec8\u6b62\u4fe1\u53f7\u3002\u6700\u5e38\u7528\u7684\u65b9\u5f0f\u662f\u6309\u4e0bCtrl+D\uff08\u9002 [&hellip;]","protected":false},"author":3,"featured_media":1020428,"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\/1020426"}],"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=1020426"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1020426\/revisions"}],"predecessor-version":[{"id":1020429,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1020426\/revisions\/1020429"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/1020428"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=1020426"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=1020426"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=1020426"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}