{"id":962843,"date":"2024-12-27T04:12:04","date_gmt":"2024-12-26T20:12:04","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/962843.html"},"modified":"2024-12-27T04:12:06","modified_gmt":"2024-12-26T20:12:06","slug":"python%e6%a8%a1%e5%bc%8f%e4%b8%8b%e5%a6%82%e4%bd%95%e9%80%80%e5%87%ba","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/962843.html","title":{"rendered":"python\u6a21\u5f0f\u4e0b\u5982\u4f55\u9000\u51fa"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/24180443\/1b5a6f53-cc6b-4389-aab0-3664b87923e7.webp\" alt=\"python\u6a21\u5f0f\u4e0b\u5982\u4f55\u9000\u51fa\" \/><\/p>\n<p><p> \u5728Python\u6a21\u5f0f\u4e0b\uff0c\u9000\u51fa\u89e3\u91ca\u5668\u7684\u65b9\u6cd5\u6709\u591a\u79cd\uff0c\u4e3b\u8981\u5305\u62ec<strong>\u4f7f\u7528<code>exit()<\/code>\u547d\u4ee4\u3001\u4f7f\u7528\u5feb\u6377\u952e\u7ec4\u5408<code>Ctrl + D<\/code>\uff08\u5728Unix\u6216Mac\u7cfb\u7edf\u4e0a\uff09\u6216<code>Ctrl + Z<\/code>\u52a0<code>Enter<\/code>\uff08\u5728Windows\u7cfb\u7edf\u4e0a\uff09<\/strong>\u3002\u4e0b\u9762\u5c06\u8be6\u7ec6\u4ecb\u7ecd\u5176\u4e2d\u4e00\u79cd\u65b9\u6cd5\uff1a\u4f7f\u7528<code>exit()<\/code>\u547d\u4ee4\u6765\u9000\u51faPython\u89e3\u91ca\u5668\u3002<code>exit()<\/code>\u547d\u4ee4\u662fPython\u5185\u7f6e\u7684\u9000\u51fa\u529f\u80fd\uff0c\u4f7f\u7528\u7b80\u5355\u4e14\u901a\u7528\u3002\u8981\u9000\u51faPython\u89e3\u91ca\u5668\uff0c\u53ea\u9700\u5728\u63d0\u793a\u7b26\u4e0b\u8f93\u5165<code>exit()<\/code>\u5e76\u6309\u4e0b\u56de\u8f66\u952e\u5373\u53ef\u3002\u8fd9\u79cd\u65b9\u6cd5\u9002\u7528\u4e8e\u6240\u6709\u64cd\u4f5c\u7cfb\u7edf\uff0c\u5e76\u4e14\u5bf9\u4e8e\u65b0\u624b\u6765\u8bf4\u975e\u5e38\u76f4\u89c2\uff0c\u56e0\u4e3a\u5b83\u660e\u786e\u5730\u8868\u660e\u4e86\u9000\u51fa\u7684\u610f\u56fe\u3002<\/p>\n<\/p>\n<p><p>\u4e00\u3001\u4f7f\u7528<code>exit()<\/code>\u547d\u4ee4\u9000\u51faPython<\/p>\n<\/p>\n<p><p><code>exit()<\/code>\u547d\u4ee4\u662fPython\u6807\u51c6\u5e93\u63d0\u4f9b\u7684\u4e00\u4e2a\u7b80\u4fbf\u65b9\u6cd5\u6765\u9000\u51fa\u89e3\u91ca\u5668\u3002\u5b83\u662f<code>sys.exit()<\/code>\u7684\u4e00\u4e2a\u7b80\u5355\u5c01\u88c5\uff0c\u9002\u7528\u4e8e\u4ea4\u4e92\u6a21\u5f0f\u6216\u811a\u672c\u4e2d\u3002<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u5728\u4ea4\u4e92\u6a21\u5f0f\u4e0b\u4f7f\u7528<code>exit()<\/code><\/strong><\/p>\n<\/p>\n<p><p>\u5728Python\u4ea4\u4e92\u6a21\u5f0f\u4e0b\uff0c\u7528\u6237\u53ef\u4ee5\u4f7f\u7528<code>exit()<\/code>\u547d\u4ee4\u9000\u51fa\u3002\u53ea\u9700\u5728\u63d0\u793a\u7b26\u4e0b\u8f93\u5165<code>exit()<\/code>\u5e76\u6309\u56de\u8f66\u952e\uff0cPython\u89e3\u91ca\u5668\u5c06\u4f1a\u7ec8\u6b62\u5f53\u524d\u4f1a\u8bdd\u3002\u8fd9\u79cd\u65b9\u6cd5\u975e\u5e38\u9002\u5408\u521d\u5b66\u8005\u6216\u5076\u5c14\u4f7f\u7528Python\u7684\u4eba\uff0c\u56e0\u4e3a\u5b83\u4e0d\u9700\u8981\u8bb0\u4f4f\u590d\u6742\u7684\u5feb\u6377\u952e\u7ec4\u5408\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u5728\u811a\u672c\u4e2d\u4f7f\u7528<code>exit()<\/code><\/strong><\/p>\n<\/p>\n<p><p>\u5728Python\u811a\u672c\u4e2d\uff0c\u53ef\u4ee5\u901a\u8fc7\u8c03\u7528<code>exit()<\/code>\u51fd\u6570\u6765\u7ec8\u6b62\u7a0b\u5e8f\u7684\u6267\u884c\u3002\u8fd9\u5728\u9700\u8981\u6839\u636e\u67d0\u4e9b\u6761\u4ef6\u4e2d\u6b62\u811a\u672c\u8fd0\u884c\u65f6\u975e\u5e38\u6709\u7528\u3002\u4f8b\u5982\uff0c\u5728\u5904\u7406\u9519\u8bef\u6216\u5f02\u5e38\u65f6\uff0c\u4f7f\u7528<code>exit()<\/code>\u53ef\u4ee5\u5b89\u5168\u5730\u9000\u51fa\u7a0b\u5e8f\u3002\u9700\u8981\u6ce8\u610f\u7684\u662f\uff0c\u5728\u811a\u672c\u4e2d\u4f7f\u7528<code>exit()<\/code>\u65f6\uff0c\u5e94\u786e\u4fdd\u5bfc\u5165<code>sys<\/code>\u6a21\u5757\uff0c\u56e0\u4e3a<code>exit()<\/code>\u5b9e\u9645\u4e0a\u662f<code>sys.exit()<\/code>\u7684\u4e00\u4e2a\u522b\u540d\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u4e8c\u3001\u4f7f\u7528\u5feb\u6377\u952e\u7ec4\u5408\u9000\u51faPython<\/p>\n<\/p>\n<p><p>\u5728\u4e0d\u540c\u7684\u64cd\u4f5c\u7cfb\u7edf\u4e2d\uff0c\u53ef\u4ee5\u4f7f\u7528\u4e0d\u540c\u7684\u5feb\u6377\u952e\u7ec4\u5408\u6765\u5feb\u901f\u9000\u51faPython\u89e3\u91ca\u5668\u3002<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>Unix\u6216Mac\u7cfb\u7edf<\/strong><\/p>\n<\/p>\n<p><p>\u5728Unix\u6216Mac\u7cfb\u7edf\u4e0a\uff0c\u7528\u6237\u53ef\u4ee5\u901a\u8fc7\u6309\u4e0b<code>Ctrl + D<\/code>\u7ec4\u5408\u952e\u6765\u9000\u51faPython\u89e3\u91ca\u5668\u3002\u8fd9\u79cd\u65b9\u6cd5\u5feb\u901f\u4e14\u6709\u6548\uff0c\u9002\u5408\u719f\u6089\u952e\u76d8\u64cd\u4f5c\u7684\u7528\u6237\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>Windows\u7cfb\u7edf<\/strong><\/p>\n<\/p>\n<p><p>\u5728Windows\u7cfb\u7edf\u4e0a\uff0c\u7528\u6237\u53ef\u4ee5\u901a\u8fc7\u6309\u4e0b<code>Ctrl + Z<\/code>\u7ec4\u5408\u952e\uff0c\u7136\u540e\u518d\u6309<code>Enter<\/code>\u952e\u6765\u9000\u51faPython\u89e3\u91ca\u5668\u3002\u8fd9\u79cd\u65b9\u6cd5\u4e0eUnix\u6216Mac\u7cfb\u7edf\u7565\u6709\u4e0d\u540c\uff0c\u4f46\u540c\u6837\u7b80\u5355\u5feb\u6377\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u4e09\u3001\u4f7f\u7528<code>sys.exit()<\/code>\u9000\u51faPython<\/p>\n<\/p>\n<p><p>\u9664\u4e86\u4f7f\u7528<code>exit()<\/code>\u547d\u4ee4\u548c\u5feb\u6377\u952e\u7ec4\u5408\u5916\uff0c\u8fd8\u53ef\u4ee5\u4f7f\u7528<code>sys.exit()<\/code>\u51fd\u6570\u6765\u9000\u51faPython\u89e3\u91ca\u5668\u3002<code>sys.exit()<\/code>\u662fPython\u6807\u51c6\u5e93\u63d0\u4f9b\u7684\u4e00\u4e2a\u51fd\u6570\uff0c\u5141\u8bb8\u7a0b\u5e8f\u5458\u5728\u9700\u8981\u65f6\u7ec8\u6b62\u7a0b\u5e8f\u7684\u6267\u884c\u3002<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u5728\u4ea4\u4e92\u6a21\u5f0f\u4e0b\u4f7f\u7528<code>sys.exit()<\/code><\/strong><\/p>\n<\/p>\n<p><p>\u5728\u4ea4\u4e92\u6a21\u5f0f\u4e0b\uff0c\u7528\u6237\u53ef\u4ee5\u901a\u8fc7\u8c03\u7528<code>sys.exit()<\/code>\u51fd\u6570\u6765\u9000\u51faPython\u89e3\u91ca\u5668\u3002\u4e0e<code>exit()<\/code>\u4e0d\u540c\u7684\u662f\uff0c\u4f7f\u7528<code>sys.exit()<\/code>\u9700\u8981\u5148\u5bfc\u5165<code>sys<\/code>\u6a21\u5757\u3002\u56e0\u6b64\uff0c\u5728\u4f7f\u7528\u524d\uff0c\u9700\u8981\u8f93\u5165<code>import sys<\/code>\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u5728\u811a\u672c\u4e2d\u4f7f\u7528<code>sys.exit()<\/code><\/strong><\/p>\n<\/p>\n<p><p>\u5728Python\u811a\u672c\u4e2d\uff0c<code>sys.exit()<\/code>\u51fd\u6570\u5e38\u7528\u4e8e\u6839\u636e\u67d0\u4e9b\u6761\u4ef6\u9000\u51fa\u7a0b\u5e8f\u3002\u4f8b\u5982\uff0c\u5f53\u68c0\u6d4b\u5230\u81f4\u547d\u9519\u8bef\u6216\u4e0d\u6ee1\u8db3\u7684\u6761\u4ef6\u65f6\uff0c\u53ef\u4ee5\u8c03\u7528<code>sys.exit()<\/code>\u6765\u4e2d\u6b62\u811a\u672c\u6267\u884c\u3002\u6b64\u5916\uff0c<code>sys.exit()<\/code>\u8fd8\u53ef\u4ee5\u63a5\u53d7\u4e00\u4e2a\u6574\u6570\u53c2\u6570\uff0c\u8868\u793a\u9000\u51fa\u72b6\u6001\u7801\u3002\u72b6\u6001\u7801\u4e3a0\u8868\u793a\u6210\u529f\u9000\u51fa\uff0c\u975e\u96f6\u503c\u8868\u793a\u5f02\u5e38\u9000\u51fa\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u56db\u3001\u901a\u8fc7\u5f02\u5e38\u9000\u51faPython<\/p>\n<\/p>\n<p><p>\u5728Python\u4e2d\uff0c\u53ef\u4ee5\u901a\u8fc7\u5f15\u53d1\u5f02\u5e38\u6765\u9000\u51fa\u7a0b\u5e8f\u3002\u8fd9\u79cd\u65b9\u6cd5\u901a\u5e38\u7528\u4e8e\u9519\u8bef\u5904\u7406\u6216\u6761\u4ef6\u4e0d\u6ee1\u8db3\u65f6\u7684\u9000\u51fa\u3002<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u5f15\u53d1\u7cfb\u7edf\u9000\u51fa\u5f02\u5e38<\/strong><\/p>\n<\/p>\n<p><p>Python\u63d0\u4f9b\u4e86<code>SystemExit<\/code>\u5f02\u5e38\uff0c\u5141\u8bb8\u7a0b\u5e8f\u5458\u5728\u9700\u8981\u65f6\u4e2d\u6b62\u7a0b\u5e8f\u7684\u6267\u884c\u3002\u901a\u8fc7\u5f15\u53d1<code>SystemExit<\/code>\u5f02\u5e38\uff0c\u53ef\u4ee5\u7acb\u5373\u9000\u51fa\u7a0b\u5e8f\uff0c\u5e76\u53ef\u4ee5\u6307\u5b9a\u4e00\u4e2a\u9000\u51fa\u72b6\u6001\u7801\u3002\u4f8b\u5982\uff0c\u5728\u811a\u672c\u4e2d\uff0c\u53ef\u4ee5\u4f7f\u7528<code>r<a href=\"https:\/\/docs.pingcode.com\/blog\/59162.html\" target=\"_blank\">AI<\/a>se SystemExit(0)<\/code>\u6765\u5b89\u5168\u9000\u51fa\u7a0b\u5e8f\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u6355\u83b7\u548c\u5904\u7406\u9000\u51fa\u5f02\u5e38<\/strong><\/p>\n<\/p>\n<p><p>\u5728\u67d0\u4e9b\u60c5\u51b5\u4e0b\uff0c\u53ef\u80fd\u9700\u8981\u6355\u83b7\u548c\u5904\u7406\u9000\u51fa\u5f02\u5e38\u3002\u4f8b\u5982\uff0c\u5f53\u9700\u8981\u5728\u9000\u51fa\u524d\u6267\u884c\u4e00\u4e9b\u6e05\u7406\u64cd\u4f5c\u65f6\uff0c\u53ef\u4ee5\u4f7f\u7528<code>try-except<\/code>\u8bed\u53e5\u6355\u83b7<code>SystemExit<\/code>\u5f02\u5e38\uff0c\u5e76\u5728<code>except<\/code>\u5757\u4e2d\u6267\u884c\u5fc5\u8981\u7684\u64cd\u4f5c\u3002\u5904\u7406\u5b8c\u6bd5\u540e\uff0c\u53ef\u4ee5\u4f7f\u7528<code>raise<\/code>\u8bed\u53e5\u91cd\u65b0\u5f15\u53d1\u5f02\u5e38\uff0c\u4ee5\u786e\u4fdd\u7a0b\u5e8f\u6b63\u5e38\u9000\u51fa\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u4e94\u3001\u4f7f\u7528<code>os._exit()<\/code>\u5f3a\u5236\u9000\u51faPython<\/p>\n<\/p>\n<p><p>\u5728\u67d0\u4e9b\u60c5\u51b5\u4e0b\uff0c\u53ef\u80fd\u9700\u8981\u5f3a\u5236\u9000\u51faPython\u7a0b\u5e8f\uff0c\u4f8b\u5982\u5f53\u7a0b\u5e8f\u8fdb\u5165\u6b7b\u5faa\u73af\u6216\u65e0\u6cd5\u6b63\u5e38\u7ec8\u6b62\u65f6\u3002Python\u7684<code>os<\/code>\u6a21\u5757\u63d0\u4f9b\u4e86<code>os._exit()<\/code>\u51fd\u6570\uff0c\u7528\u4e8e\u7acb\u5373\u7ec8\u6b62\u8fdb\u7a0b\u3002<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u5728\u811a\u672c\u4e2d\u4f7f\u7528<code>os._exit()<\/code><\/strong><\/p>\n<\/p>\n<p><p><code>os._exit()<\/code>\u51fd\u6570\u76f4\u63a5\u8c03\u7528\u64cd\u4f5c\u7cfb\u7edf\u5e95\u5c42\u63a5\u53e3\uff0c\u4ee5\u7ec8\u6b62\u5f53\u524d\u8fdb\u7a0b\u3002\u4e0e<code>sys.exit()<\/code>\u4e0d\u540c\uff0c<code>os._exit()<\/code>\u4e0d\u4f1a\u6267\u884c\u4efb\u4f55\u6e05\u7406\u64cd\u4f5c\uff0c\u4f8b\u5982\u5173\u95ed\u6253\u5f00\u7684\u6587\u4ef6\u6216\u5237\u65b0\u7f13\u51b2\u533a\u3002\u56e0\u6b64\uff0c<code>os._exit()<\/code>\u901a\u5e38\u7528\u4e8e\u9700\u8981\u7acb\u5373\u7ec8\u6b62\u7a0b\u5e8f\u7684\u573a\u666f\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u6ce8\u610f\u4e8b\u9879<\/strong><\/p>\n<\/p>\n<p><p>\u4f7f\u7528<code>os._exit()<\/code>\u65f6\u9700\u8981\u8c28\u614e\uff0c\u56e0\u4e3a\u5b83\u4f1a\u8df3\u8fc7\u6240\u6709\u7684\u6e05\u7406\u64cd\u4f5c\uff0c\u53ef\u80fd\u5bfc\u81f4\u8d44\u6e90\u6cc4\u6f0f\u6216\u6570\u636e\u4e22\u5931\u3002\u5728\u5927\u591a\u6570\u60c5\u51b5\u4e0b\uff0c\u5e94\u4f18\u5148\u8003\u8651\u4f7f\u7528<code>sys.exit()<\/code>\u6216\u5f15\u53d1<code>SystemExit<\/code>\u5f02\u5e38\u6765\u9000\u51fa\u7a0b\u5e8f\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u603b\u7ed3\uff1a<\/p>\n<\/p>\n<p><p>\u5728Python\u4e2d\uff0c\u9000\u51fa\u89e3\u91ca\u5668\u7684\u65b9\u6cd5\u6709\u591a\u79cd\u9009\u62e9\uff0c\u5177\u4f53\u53d6\u51b3\u4e8e\u4f7f\u7528\u573a\u666f\u548c\u9700\u6c42\u3002\u5bf9\u4e8e\u521d\u5b66\u8005\u6216\u5076\u5c14\u4f7f\u7528Python\u7684\u4eba\uff0c<code>exit()<\/code>\u547d\u4ee4\u662f\u6700\u7b80\u5355\u548c\u76f4\u89c2\u7684\u9009\u62e9\u3002\u5bf9\u4e8e\u811a\u672c\u6216\u7a0b\u5e8f\u4e2d\u9700\u8981\u6761\u4ef6\u9000\u51fa\u7684\u60c5\u51b5\uff0c<code>sys.exit()<\/code>\u548c\u5f15\u53d1<code>SystemExit<\/code>\u5f02\u5e38\u662f\u5e38\u7528\u7684\u65b9\u6cd5\u3002\u5728\u9700\u8981\u5f3a\u5236\u9000\u51fa\u7684\u60c5\u51b5\u4e0b\uff0c\u53ef\u4ee5\u4f7f\u7528<code>os._exit()<\/code>\uff0c\u4f46\u9700\u8c28\u614e\u4f7f\u7528\u4ee5\u907f\u514d\u8d44\u6e90\u6cc4\u6f0f\u3002\u901a\u8fc7\u4e86\u89e3\u8fd9\u4e9b\u4e0d\u540c\u7684\u65b9\u6cd5\uff0c\u7528\u6237\u53ef\u4ee5\u6839\u636e\u5177\u4f53\u9700\u6c42\u9009\u62e9\u5408\u9002\u7684\u9000\u51fa\u65b9\u5f0f\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u5728Python\u4ea4\u4e92\u6a21\u5f0f\u4e0b\u5b89\u5168\u9000\u51fa\uff1f<\/strong><br \/>\u5728Python\u7684\u4ea4\u4e92\u6a21\u5f0f\u4e2d\uff0c\u53ef\u4ee5\u901a\u8fc7\u8f93\u5165<code>exit()<\/code>\u6216<code>quit()<\/code>\u547d\u4ee4\u6765\u5b89\u5168\u9000\u51fa\u3002\u8fd9\u4e24\u4e2a\u547d\u4ee4\u662fPython\u5185\u7f6e\u7684\uff0c\u8f93\u5165\u540e\u6309\u56de\u8f66\u5373\u53ef\u9000\u51fa\u3002\u5982\u679c\u4f60\u4f7f\u7528\u7684\u662fWindows\u7cfb\u7edf\uff0c\u4e5f\u53ef\u4ee5\u76f4\u63a5\u6309<code>Ctrl + Z<\/code>\u7136\u540e\u6309\u56de\u8f66\u6765\u9000\u51fa\u3002<\/p>\n<p><strong>\u5728Linux\u6216Mac\u7cfb\u7edf\u4e2d\uff0c\u5982\u4f55\u9000\u51faPython\u4ea4\u4e92\u6a21\u5f0f\uff1f<\/strong><br \/>\u5728Linux\u6216Mac\u7cfb\u7edf\u4e2d\uff0c\u4f60\u53ef\u4ee5\u901a\u8fc7\u6309<code>Ctrl + D<\/code>\u6765\u9000\u51faPython\u4ea4\u4e92\u6a21\u5f0f\u3002\u8fd9\u662f\u53d1\u9001EOF\uff08\u6587\u4ef6\u7ed3\u675f\u7b26\uff09\u7684\u5feb\u6377\u65b9\u5f0f\uff0cPython\u4f1a\u8bc6\u522b\u5e76\u7ec8\u6b62\u4f1a\u8bdd\u3002<\/p>\n<p><strong>\u5982\u679c\u5728Python\u811a\u672c\u4e2d\u60f3\u8981\u63d0\u524d\u9000\u51fa\uff0c\u5e94\u8be5\u600e\u4e48\u505a\uff1f<\/strong><br \/>\u5728Python\u811a\u672c\u4e2d\uff0c\u53ef\u4ee5\u4f7f\u7528<code>sys.exit()<\/code>\u51fd\u6570\u6765\u63d0\u524d\u9000\u51fa\u7a0b\u5e8f\u3002\u9700\u8981\u5728\u811a\u672c\u5f00\u5934\u5bfc\u5165<code>sys<\/code>\u6a21\u5757\uff0c\u901a\u8fc7\u8c03\u7528<code>sys.exit()<\/code>\u53ef\u4ee5\u5b89\u5168\u9000\u51fa\uff0c\u5e76\u53ef\u4ee5\u9009\u62e9\u6027\u5730\u8fd4\u56de\u4e00\u4e2a\u72b6\u6001\u7801\u3002\u8be5\u72b6\u6001\u7801\u901a\u5e38\u4e3a0\u8868\u793a\u6b63\u5e38\u9000\u51fa\uff0c\u5176\u4ed6\u6570\u5b57\u5219\u8868\u793a\u5f02\u5e38\u9000\u51fa\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u5728Python\u6a21\u5f0f\u4e0b\uff0c\u9000\u51fa\u89e3\u91ca\u5668\u7684\u65b9\u6cd5\u6709\u591a\u79cd\uff0c\u4e3b\u8981\u5305\u62ec\u4f7f\u7528exit()\u547d\u4ee4\u3001\u4f7f\u7528\u5feb\u6377\u952e\u7ec4\u5408Ctrl + D\uff08\u5728 [&hellip;]","protected":false},"author":3,"featured_media":962849,"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\/962843"}],"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=962843"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/962843\/revisions"}],"predecessor-version":[{"id":962853,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/962843\/revisions\/962853"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/962849"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=962843"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=962843"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=962843"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}