{"id":1187967,"date":"2025-01-15T20:11:36","date_gmt":"2025-01-15T12:11:36","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1187967.html"},"modified":"2025-01-15T20:11:39","modified_gmt":"2025-01-15T12:11:39","slug":"python%e5%be%aa%e7%8e%af%e4%b8%ad%e5%a6%82%e4%bd%95%e7%bb%93%e6%9d%9f%e8%be%93%e5%85%a5","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/1187967.html","title":{"rendered":"python\u5faa\u73af\u4e2d\u5982\u4f55\u7ed3\u675f\u8f93\u5165"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/25140414\/e357d75a-6ac5-49a8-ae94-c97fd346d231.webp\" alt=\"python\u5faa\u73af\u4e2d\u5982\u4f55\u7ed3\u675f\u8f93\u5165\" \/><\/p>\n<p><p> <strong>\u5728Python\u5faa\u73af\u4e2d\uff0c\u53ef\u4ee5\u4f7f\u7528<code>break<\/code>\u8bed\u53e5\u3001\u6355\u83b7\u7279\u5b9a\u7684\u8f93\u5165\u6761\u4ef6\u3001\u4f7f\u7528\u6807\u5fd7\u53d8\u91cf\u7b49\u65b9\u6cd5\u6765\u7ed3\u675f\u8f93\u5165\u3002<\/strong> \u5176\u4e2d\uff0c\u6700\u5e38\u89c1\u7684\u65b9\u6cd5\u662f\u4f7f\u7528<code>break<\/code>\u8bed\u53e5\u3002\u5728\u67d0\u4e9b\u6761\u4ef6\u6ee1\u8db3\u65f6\uff0c\u901a\u8fc7<code>break<\/code>\u8df3\u51fa\u5faa\u73af\u3002\u4f8b\u5982\uff0c\u5728\u7528\u6237\u8f93\u5165\u67d0\u4e2a\u7279\u5b9a\u5b57\u7b26\u6216\u5b57\u7b26\u4e32\u65f6\u7ed3\u675f\u5faa\u73af\u3002\u4e0b\u9762\u5c06\u8be6\u7ec6\u5c55\u5f00<code>break<\/code>\u8bed\u53e5\u7684\u4f7f\u7528\u3002<\/p>\n<\/p>\n<p><h3>\u4e00\u3001\u4f7f\u7528<code>break<\/code>\u8bed\u53e5\u7ed3\u675f\u8f93\u5165<\/h3>\n<\/p>\n<p><p><code>break<\/code>\u8bed\u53e5\u7528\u4e8e\u7ec8\u6b62\u5faa\u73af\u8bed\u53e5\u5e76\u8df3\u51fa\u5faa\u73af\u4f53\u3002\u5b83\u53ef\u4ee5\u7528\u4e8e<code>for<\/code>\u548c<code>while<\/code>\u5faa\u73af\u3002\u5f53\u5faa\u73af\u9047\u5230<code>break<\/code>\u8bed\u53e5\u65f6\uff0c\u5faa\u73af\u7acb\u5373\u505c\u6b62\u6267\u884c\uff0c\u7a0b\u5e8f\u63a7\u5236\u6743\u8df3\u5230\u5faa\u73af\u540e\u9762\u7684\u7b2c\u4e00\u6761\u8bed\u53e5\u3002<\/p>\n<\/p>\n<p><h4>1. \u4f7f\u7528<code>while<\/code>\u5faa\u73af\u548c<code>break<\/code>\u8bed\u53e5<\/h4>\n<\/p>\n<p><pre><code class=\"language-python\">while True:<\/p>\n<p>    user_input = input(&quot;Enter something (type &#39;exit&#39; to quit): &quot;)<\/p>\n<p>    if user_input.lower() == &#39;exit&#39;:<\/p>\n<p>        break<\/p>\n<p>    print(&quot;You entered:&quot;, user_input)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u793a\u4f8b\u4e2d\uff0c\u7a0b\u5e8f\u4f1a\u4e0d\u65ad\u63d0\u793a\u7528\u6237\u8f93\u5165\uff0c\u76f4\u5230\u7528\u6237\u8f93\u5165<code>exit<\/code>\u4e3a\u6b62\u3002\u8f93\u5165<code>exit<\/code>\u540e\uff0c<code>break<\/code>\u8bed\u53e5\u5c06\u7ec8\u6b62\u5faa\u73af\u3002<\/p>\n<\/p>\n<p><h4>2. \u4f7f\u7528<code>for<\/code>\u5faa\u73af\u548c<code>break<\/code>\u8bed\u53e5<\/h4>\n<\/p>\n<p><pre><code class=\"language-python\">for _ in range(10):  # \u5047\u8bbe\u6700\u591a\u8f93\u516510\u6b21<\/p>\n<p>    user_input = input(&quot;Enter something (type &#39;exit&#39; to quit): &quot;)<\/p>\n<p>    if user_input.lower() == &#39;exit&#39;:<\/p>\n<p>        break<\/p>\n<p>    print(&quot;You entered:&quot;, user_input)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u793a\u4f8b\u4e2d\uff0c<code>for<\/code>\u5faa\u73af\u6700\u591a\u6267\u884c10\u6b21\uff0c\u4f46\u5982\u679c\u7528\u6237\u8f93\u5165<code>exit<\/code>\uff0c<code>break<\/code>\u8bed\u53e5\u4f1a\u7acb\u5373\u7ec8\u6b62\u5faa\u73af\u3002<\/p>\n<\/p>\n<p><h3>\u4e8c\u3001\u4f7f\u7528\u7279\u5b9a\u7684\u8f93\u5165\u6761\u4ef6\u7ed3\u675f\u8f93\u5165<\/h3>\n<\/p>\n<p><p>\u9664\u4e86\u4f7f\u7528<code>break<\/code>\u8bed\u53e5\u5916\uff0c\u8fd8\u53ef\u4ee5\u6839\u636e\u7279\u5b9a\u7684\u8f93\u5165\u6761\u4ef6\u6765\u7ed3\u675f\u5faa\u73af\u3002\u4f8b\u5982\uff0c\u53ef\u4ee5\u901a\u8fc7\u68c0\u67e5\u7528\u6237\u8f93\u5165\u662f\u5426\u4e3a\u7a7a\u5b57\u7b26\u4e32\u6216\u7279\u5b9a\u7684\u5b57\u7b26\u6765\u51b3\u5b9a\u662f\u5426\u7ed3\u675f\u5faa\u73af\u3002<\/p>\n<\/p>\n<p><h4>1. \u68c0\u67e5\u7a7a\u8f93\u5165<\/h4>\n<\/p>\n<p><pre><code class=\"language-python\">while True:<\/p>\n<p>    user_input = input(&quot;Enter something (press Enter to quit): &quot;)<\/p>\n<p>    if user_input == &quot;&quot;:<\/p>\n<p>        break<\/p>\n<p>    print(&quot;You entered:&quot;, user_input)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u793a\u4f8b\u4e2d\uff0c\u5f53\u7528\u6237\u76f4\u63a5\u6309\u4e0bEnter\u952e\uff08\u8f93\u5165\u4e3a\u7a7a\u5b57\u7b26\u4e32\uff09\u65f6\uff0c\u5faa\u73af\u4f1a\u7ed3\u675f\u3002<\/p>\n<\/p>\n<p><h4>2. \u68c0\u67e5\u7279\u5b9a\u5b57\u7b26<\/h4>\n<\/p>\n<p><pre><code class=\"language-python\">while True:<\/p>\n<p>    user_input = input(&quot;Enter something (type &#39;q&#39; to quit): &quot;)<\/p>\n<p>    if user_input.lower() == &#39;q&#39;:<\/p>\n<p>        break<\/p>\n<p>    print(&quot;You entered:&quot;, user_input)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u793a\u4f8b\u4e2d\uff0c\u5f53\u7528\u6237\u8f93\u5165\u5b57\u7b26<code>q<\/code>\u65f6\uff0c\u5faa\u73af\u4f1a\u7ed3\u675f\u3002<\/p>\n<\/p>\n<p><h3>\u4e09\u3001\u4f7f\u7528\u6807\u5fd7\u53d8\u91cf\u7ed3\u675f\u8f93\u5165<\/h3>\n<\/p>\n<p><p>\u4f7f\u7528\u6807\u5fd7\u53d8\u91cf\u662f\u4e00\u79cd\u66f4\u7075\u6d3b\u7684\u65b9\u6cd5\uff0c\u9002\u7528\u4e8e\u66f4\u590d\u6742\u7684\u6761\u4ef6\u63a7\u5236\u3002\u5728\u5faa\u73af\u5916\u5b9a\u4e49\u4e00\u4e2a\u6807\u5fd7\u53d8\u91cf\uff0c\u5e76\u5728\u5faa\u73af\u5185\u90e8\u6839\u636e\u6761\u4ef6\u4fee\u6539\u8be5\u53d8\u91cf\u7684\u503c\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">keep_running = True<\/p>\n<p>while keep_running:<\/p>\n<p>    user_input = input(&quot;Enter something (type &#39;exit&#39; to quit): &quot;)<\/p>\n<p>    if user_input.lower() == &#39;exit&#39;:<\/p>\n<p>        keep_running = False<\/p>\n<p>    else:<\/p>\n<p>        print(&quot;You entered:&quot;, user_input)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u793a\u4f8b\u4e2d\uff0c<code>keep_running<\/code>\u6807\u5fd7\u53d8\u91cf\u63a7\u5236\u5faa\u73af\u7684\u6267\u884c\u3002\u5f53\u7528\u6237\u8f93\u5165<code>exit<\/code>\u65f6\uff0c\u6807\u5fd7\u53d8\u91cf\u88ab\u8bbe\u7f6e\u4e3a<code>False<\/code>\uff0c\u5faa\u73af\u7ed3\u675f\u3002<\/p>\n<\/p>\n<p><h3>\u56db\u3001\u4f7f\u7528try-except\u6355\u83b7\u5f02\u5e38\u7ed3\u675f\u8f93\u5165<\/h3>\n<\/p>\n<p><p>\u5728\u67d0\u4e9b\u60c5\u51b5\u4e0b\uff0c\u53ef\u4ee5\u5229\u7528\u5f02\u5e38\u5904\u7406\u673a\u5236\u6765\u7ed3\u675f\u8f93\u5165\uff0c\u4f8b\u5982\u6355\u83b7<code>EOFError<\/code>\u6216<code>KeyboardInterrupt<\/code>\u5f02\u5e38\u3002<\/p>\n<\/p>\n<p><h4>1. \u6355\u83b7<code>EOFError<\/code>\u5f02\u5e38<\/h4>\n<\/p>\n<p><pre><code class=\"language-python\">try:<\/p>\n<p>    while True:<\/p>\n<p>        user_input = input(&quot;Enter something (press Ctrl+D to quit): &quot;)<\/p>\n<p>        print(&quot;You entered:&quot;, user_input)<\/p>\n<p>except EOFError:<\/p>\n<p>    print(&quot;End of input detected. Exiting...&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u793a\u4f8b\u4e2d\uff0c\u5f53\u7528\u6237\u6309\u4e0b<code>Ctrl+D<\/code>\uff08Unix\/Linux\/Mac\uff09\u6216<code>Ctrl+Z<\/code>\uff08Windows\uff09\u65f6\uff0c\u4f1a\u89e6\u53d1<code>EOFError<\/code>\u5f02\u5e38\uff0c\u7a0b\u5e8f\u4f1a\u8df3\u51fa\u5faa\u73af\u5e76\u6253\u5370\u9000\u51fa\u6d88\u606f\u3002<\/p>\n<\/p>\n<p><h4>2. \u6355\u83b7<code>KeyboardInterrupt<\/code>\u5f02\u5e38<\/h4>\n<\/p>\n<p><pre><code class=\"language-python\">try:<\/p>\n<p>    while True:<\/p>\n<p>        user_input = input(&quot;Enter something (press Ctrl+C to quit): &quot;)<\/p>\n<p>        print(&quot;You entered:&quot;, user_input)<\/p>\n<p>except KeyboardInterrupt:<\/p>\n<p>    print(&quot;\\nKeyboard interrupt detected. Exiting...&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u793a\u4f8b\u4e2d\uff0c\u5f53\u7528\u6237\u6309\u4e0b<code>Ctrl+C<\/code>\u65f6\uff0c\u4f1a\u89e6\u53d1<code>KeyboardInterrupt<\/code>\u5f02\u5e38\uff0c\u7a0b\u5e8f\u4f1a\u8df3\u51fa\u5faa\u73af\u5e76\u6253\u5370\u9000\u51fa\u6d88\u606f\u3002<\/p>\n<\/p>\n<p><h3>\u4e94\u3001\u7efc\u5408\u8fd0\u7528\u591a\u79cd\u65b9\u6cd5<\/h3>\n<\/p>\n<p><p>\u5728\u5b9e\u9645\u5e94\u7528\u4e2d\uff0c\u53ef\u4ee5\u7efc\u5408\u8fd0\u7528\u591a\u79cd\u65b9\u6cd5\u6765\u5b9e\u73b0\u7075\u6d3b\u7684\u5faa\u73af\u63a7\u5236\u3002\u4f8b\u5982\uff0c\u53ef\u4ee5\u7ed3\u5408<code>break<\/code>\u8bed\u53e5\u3001\u7279\u5b9a\u8f93\u5165\u6761\u4ef6\u548c\u5f02\u5e38\u5904\u7406\u673a\u5236\u6765\u5b9e\u73b0\u66f4\u590d\u6742\u7684\u8f93\u5165\u7ed3\u675f\u6761\u4ef6\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">keep_running = True<\/p>\n<p>try:<\/p>\n<p>    while keep_running:<\/p>\n<p>        user_input = input(&quot;Enter something (type &#39;exit&#39; or press Ctrl+C to quit): &quot;)<\/p>\n<p>        if user_input.lower() == &#39;exit&#39;:<\/p>\n<p>            keep_running = False<\/p>\n<p>        else:<\/p>\n<p>            print(&quot;You entered:&quot;, user_input)<\/p>\n<p>except KeyboardInterrupt:<\/p>\n<p>    print(&quot;\\nKeyboard interrupt detected. Exiting...&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u793a\u4f8b\u4e2d\uff0c\u7528\u6237\u53ef\u4ee5\u901a\u8fc7\u8f93\u5165<code>exit<\/code>\u6216\u8005\u6309\u4e0b<code>Ctrl+C<\/code>\u6765\u7ed3\u675f\u5faa\u73af\u3002<\/p>\n<\/p>\n<p><h3>\u516d\u3001\u603b\u7ed3<\/h3>\n<\/p>\n<p><p>\u5728Python\u5faa\u73af\u4e2d\uff0c\u7ed3\u675f\u8f93\u5165\u7684\u65b9\u6cd5\u6709\u5f88\u591a\u79cd\uff0c\u5305\u62ec<strong>\u4f7f\u7528<code>break<\/code>\u8bed\u53e5\u3001\u68c0\u67e5\u7279\u5b9a\u7684\u8f93\u5165\u6761\u4ef6\u3001\u4f7f\u7528\u6807\u5fd7\u53d8\u91cf\u3001\u6355\u83b7\u5f02\u5e38\u7b49<\/strong>\u3002\u6bcf\u79cd\u65b9\u6cd5\u90fd\u6709\u5176\u9002\u7528\u7684\u573a\u666f\u548c\u4f18\u7f3a\u70b9\u3002\u5728\u5b9e\u9645\u7f16\u7a0b\u4e2d\uff0c\u53ef\u4ee5\u6839\u636e\u5177\u4f53\u9700\u6c42\u9009\u62e9\u5408\u9002\u7684\u65b9\u6cd5\uff0c\u751a\u81f3\u53ef\u4ee5\u7efc\u5408\u8fd0\u7528\u591a\u79cd\u65b9\u6cd5\u6765\u5b9e\u73b0\u66f4\u52a0\u7075\u6d3b\u7684\u8f93\u5165\u63a7\u5236\u3002<\/p>\n<\/p>\n<p><p>\u65e0\u8bba\u9009\u62e9\u54ea\u79cd\u65b9\u6cd5\uff0c\u90fd\u9700\u8981\u6ce8\u610f\u4ee3\u7801\u7684\u53ef\u8bfb\u6027\u548c\u53ef\u7ef4\u62a4\u6027\u3002\u5408\u7406\u7684\u4ee3\u7801\u7ed3\u6784\u548c\u6e05\u6670\u7684\u903b\u8f91\u80fd\u591f\u4f7f\u7a0b\u5e8f\u66f4\u6613\u4e8e\u7406\u89e3\u548c\u7ef4\u62a4\u3002\u5728\u5904\u7406\u7528\u6237\u8f93\u5165\u65f6\uff0c\u8fd8\u9700\u8981\u8003\u8651\u8f93\u5165\u7684\u5408\u6cd5\u6027\u548c\u5f02\u5e38\u60c5\u51b5\uff0c\u786e\u4fdd\u7a0b\u5e8f\u80fd\u591f\u5728\u5404\u79cd\u60c5\u51b5\u4e0b\u6b63\u5e38\u8fd0\u884c\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u5728Python\u5faa\u73af\u4e2d\u8bbe\u7f6e\u8f93\u5165\u7684\u7ed3\u675f\u6761\u4ef6\uff1f<\/strong><br \/>\u5728Python\u4e2d\uff0c\u53ef\u4ee5\u901a\u8fc7\u5404\u79cd\u65b9\u5f0f\u6765\u8bbe\u7f6e\u5faa\u73af\u7684\u7ed3\u675f\u6761\u4ef6\uff0c\u4f8b\u5982\u4f7f\u7528\u7279\u5b9a\u7684\u8f93\u5165\u503c\u6765\u7ec8\u6b62\u5faa\u73af\u3002\u5e38\u89c1\u7684\u65b9\u6cd5\u662f\u4f7f\u7528<code>break<\/code>\u8bed\u53e5\uff0c\u5f53\u7528\u6237\u8f93\u5165\u7279\u5b9a\u7684\u5b57\u7b26\u6216\u6570\u5b57\u65f6\uff0c\u5faa\u73af\u4f1a\u88ab\u7ec8\u6b62\u3002\u4f8b\u5982\uff0c\u60a8\u53ef\u4ee5\u8ba9\u7528\u6237\u8f93\u5165\u201cexit\u201d\u6765\u9000\u51fa\u5faa\u73af\uff0c\u5177\u4f53\u4ee3\u7801\u5982\u4e0b\uff1a  <\/p>\n<pre><code class=\"language-python\">while True:\n    user_input = input(&quot;\u8bf7\u8f93\u5165\u5185\u5bb9\uff08\u8f93\u5165&#39;exit&#39;\u7ed3\u675f\uff09\uff1a&quot;)\n    if user_input.lower() == &#39;exit&#39;:\n        break\n    print(f&quot;\u60a8\u8f93\u5165\u7684\u5185\u5bb9\u662f\uff1a{user_input}&quot;)\n<\/code><\/pre>\n<p><strong>\u5728Python\u4e2d\u5982\u4f55\u5904\u7406\u65e0\u6548\u8f93\u5165\u4ee5\u4fdd\u6301\u5faa\u73af\u8fd0\u884c\uff1f<\/strong><br \/>\u4e3a\u4e86\u786e\u4fdd\u7528\u6237\u5728\u8f93\u5165\u65f6\u4e0d\u4f1a\u56e0\u8f93\u5165\u65e0\u6548\u503c\u800c\u5bfc\u81f4\u5faa\u73af\u4e2d\u65ad\uff0c\u53ef\u4ee5\u5728\u5faa\u73af\u4e2d\u6dfb\u52a0\u8f93\u5165\u9a8c\u8bc1\u3002\u901a\u8fc7<code>try-except<\/code>\u8bed\u53e5\uff0c\u53ef\u4ee5\u6355\u83b7\u5e76\u5904\u7406\u5f02\u5e38\u3002\u4f8b\u5982\uff0c\u5f53\u8981\u6c42\u7528\u6237\u8f93\u5165\u4e00\u4e2a\u6570\u5b57\u65f6\uff0c\u60a8\u53ef\u4ee5\u8fd9\u6837\u505a\uff1a  <\/p>\n<pre><code class=\"language-python\">while True:\n    try:\n        user_input = int(input(&quot;\u8bf7\u8f93\u5165\u4e00\u4e2a\u6570\u5b57\uff08\u8f93\u51650\u7ed3\u675f\uff09\uff1a&quot;))\n        if user_input == 0:\n            break\n        print(f&quot;\u60a8\u8f93\u5165\u7684\u6570\u5b57\u662f\uff1a{user_input}&quot;)\n    except ValueError:\n        print(&quot;\u65e0\u6548\u8f93\u5165\uff0c\u8bf7\u8f93\u5165\u4e00\u4e2a\u6570\u5b57\u3002&quot;)\n<\/code><\/pre>\n<p><strong>\u5982\u4f55\u4f7f\u7528\u8ba1\u6570\u5668\u6765\u9650\u5236Python\u5faa\u73af\u4e2d\u7684\u8f93\u5165\u6b21\u6570\uff1f<\/strong><br \/>\u5982\u679c\u60a8\u60f3\u9650\u5236\u7528\u6237\u7684\u8f93\u5165\u6b21\u6570\uff0c\u53ef\u4ee5\u901a\u8fc7\u8bbe\u7f6e\u8ba1\u6570\u5668\u6765\u5b9e\u73b0\u3002\u5f53\u8ba1\u6570\u5668\u8fbe\u5230\u9884\u5b9a\u6b21\u6570\u65f6\uff0c\u5faa\u73af\u5c06\u81ea\u52a8\u7ed3\u675f\u3002\u4f8b\u5982\uff0c\u4e0b\u9762\u7684\u4ee3\u7801\u5141\u8bb8\u7528\u6237\u8f93\u5165\u6700\u591a\u4e09\u6b21\uff1a  <\/p>\n<pre><code class=\"language-python\">count = 0\nmax_attempts = 3\n\nwhile count &lt; max_attempts:\n    user_input = input(f&quot;\u8bf7\u8f93\u5165\u5185\u5bb9\uff08\u5269\u4f59\u5c1d\u8bd5\u6b21\u6570\uff1a{max_attempts - count}\uff09\uff1a&quot;)\n    print(f&quot;\u60a8\u8f93\u5165\u7684\u5185\u5bb9\u662f\uff1a{user_input}&quot;)\n    count += 1\n\nprint(&quot;\u8f93\u5165\u6b21\u6570\u5df2\u8fbe\u5230\u4e0a\u9650\uff0c\u5faa\u73af\u7ed3\u675f\u3002&quot;)\n<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"\u5728Python\u5faa\u73af\u4e2d\uff0c\u53ef\u4ee5\u4f7f\u7528break\u8bed\u53e5\u3001\u6355\u83b7\u7279\u5b9a\u7684\u8f93\u5165\u6761\u4ef6\u3001\u4f7f\u7528\u6807\u5fd7\u53d8\u91cf\u7b49\u65b9\u6cd5\u6765\u7ed3\u675f\u8f93\u5165\u3002 \u5176\u4e2d\uff0c\u6700\u5e38\u89c1 [&hellip;]","protected":false},"author":3,"featured_media":1187975,"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\/1187967"}],"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=1187967"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1187967\/revisions"}],"predecessor-version":[{"id":1187977,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1187967\/revisions\/1187977"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/1187975"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=1187967"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=1187967"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=1187967"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}