{"id":990109,"date":"2024-12-27T08:17:26","date_gmt":"2024-12-27T00:17:26","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/990109.html"},"modified":"2024-12-27T08:17:29","modified_gmt":"2024-12-27T00:17:29","slug":"python%e5%a6%82%e4%bd%95%e5%ae%9e%e7%8e%b0%e5%81%9c%e6%ad%a2%e7%bb%a7%e7%bb%ad","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/990109.html","title":{"rendered":"python\u5982\u4f55\u5b9e\u73b0\u505c\u6b62\u7ee7\u7eed"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/25064957\/6a48175a-48a8-47b7-b8f3-54c4c413a5de.webp\" alt=\"python\u5982\u4f55\u5b9e\u73b0\u505c\u6b62\u7ee7\u7eed\" \/><\/p>\n<p><p> <strong>\u5728Python\u4e2d\uff0c\u53ef\u4ee5\u901a\u8fc7\u4f7f\u7528\u63a7\u5236\u6d41\u7a0b\u8bed\u53e5\u3001\u5f02\u5e38\u5904\u7406\u548c\u7ebf\u7a0b\u63a7\u5236\u7b49\u65b9\u5f0f\u5b9e\u73b0\u7a0b\u5e8f\u7684\u505c\u6b62\u548c\u7ee7\u7eed\u3002\u5e38\u7528\u7684\u65b9\u6cd5\u5305\u62ec\u4f7f\u7528<code>break<\/code>\u548c<code>continue<\/code>\u8bed\u53e5\u63a7\u5236\u5faa\u73af\u3001\u4f7f\u7528<code>try-except<\/code>\u5757\u5904\u7406\u5f02\u5e38\u3001\u4ee5\u53ca\u4f7f\u7528\u7ebf\u7a0b\u548c\u4fe1\u53f7\u6765\u63a7\u5236\u7a0b\u5e8f\u7684\u6267\u884c\u3002<\/strong>\u5728\u8fd9\u4e9b\u65b9\u6cd5\u4e2d\uff0c<code>break<\/code>\u548c<code>continue<\/code>\u662f\u7528\u4e8e\u5faa\u73af\u63a7\u5236\u7684\u57fa\u672c\u8bed\u53e5\uff0c<code>try-except<\/code>\u5757\u5219\u7528\u4e8e\u6355\u83b7\u5e76\u5904\u7406\u5f02\u5e38\uff0c\u4ece\u800c\u63a7\u5236\u7a0b\u5e8f\u7684\u6d41\u52a8\u3002\u800c\u7ebf\u7a0b\u548c\u4fe1\u53f7\u53ef\u4ee5\u7528\u4e8e\u66f4\u590d\u6742\u7684\u573a\u666f\uff0c\u6bd4\u5982\u9700\u8981\u5728\u7279\u5b9a\u6761\u4ef6\u4e0b\u6682\u505c\u6216\u6062\u590d\u7a0b\u5e8f\u7684\u6267\u884c\u3002<\/p>\n<\/p>\n<p><h3>\u4e00\u3001<code>break<\/code>\u548c<code>continue<\/code>\u8bed\u53e5\u7684\u4f7f\u7528<\/h3>\n<\/p>\n<p><p><strong>1. <code>break<\/code>\u8bed\u53e5<\/strong><\/p>\n<\/p>\n<p><p><code>break<\/code>\u8bed\u53e5\u7528\u4e8e\u9000\u51fa\u6700\u8fd1\u7684\u5faa\u73af\u3002\u5b83\u5e38\u7528\u4e8e\u5728\u6ee1\u8db3\u7279\u5b9a\u6761\u4ef6\u65f6\u4e2d\u65ad\u5faa\u73af\u6267\u884c\u3002\u4f8b\u5982\uff0c\u5728\u904d\u5386\u5217\u8868\u65f6\u627e\u5230\u76ee\u6807\u5143\u7d20\u540e\u53ef\u4ee5\u7acb\u5373\u9000\u51fa\u5faa\u73af\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">items = [1, 2, 3, 4, 5]<\/p>\n<p>for item in items:<\/p>\n<p>    if item == 3:<\/p>\n<p>        print(&quot;Found item 3, exiting loop.&quot;)<\/p>\n<p>        break<\/p>\n<p>    print(item)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u4e0a\u8ff0\u4ee3\u7801\u4e2d\uff0c\u5f53\u904d\u5386\u5230\u5143\u7d20<code>3<\/code>\u65f6\uff0c<code>break<\/code>\u8bed\u53e5\u4f1a\u7ec8\u6b62\u5faa\u73af\uff0c\u56e0\u6b64\u53ea\u4f1a\u8f93\u51fa<code>1<\/code>\u3001<code>2<\/code>\u548c<code>&quot;Found item 3, exiting loop.&quot;<\/code>\u3002<\/p>\n<\/p>\n<p><p><strong>2. <code>continue<\/code>\u8bed\u53e5<\/strong><\/p>\n<\/p>\n<p><p><code>continue<\/code>\u8bed\u53e5\u7528\u4e8e\u8df3\u8fc7\u5f53\u524d\u5faa\u73af\u7684\u5269\u4f59\u4ee3\u7801\uff0c\u5e76\u7acb\u5373\u5f00\u59cb\u4e0b\u4e00\u6b21\u5faa\u73af\u8fed\u4ee3\u3002\u5b83\u901a\u5e38\u7528\u4e8e\u5728\u6ee1\u8db3\u7279\u5b9a\u6761\u4ef6\u65f6\u8df3\u8fc7\u67d0\u4e9b\u5904\u7406\u903b\u8f91\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">for i in range(5):<\/p>\n<p>    if i == 2:<\/p>\n<p>        continue<\/p>\n<p>    print(i)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u6b64\u4ee3\u7801\u4f1a\u6253\u5370\u51fa<code>0<\/code>\u3001<code>1<\/code>\u3001<code>3<\/code>\u548c<code>4<\/code>\uff0c\u56e0\u4e3a\u5f53<code>i<\/code>\u7b49\u4e8e<code>2<\/code>\u65f6\uff0c<code>continue<\/code>\u8bed\u53e5\u8df3\u8fc7\u4e86\u5bf9<code>2<\/code>\u7684\u6253\u5370\u3002<\/p>\n<\/p>\n<p><h3>\u4e8c\u3001\u5f02\u5e38\u5904\u7406\u673a\u5236<\/h3>\n<\/p>\n<p><p>\u5f02\u5e38\u5904\u7406\u673a\u5236\u63d0\u4f9b\u4e86\u4e00\u79cd\u5728\u7a0b\u5e8f\u8fd0\u884c\u65f6\u6355\u83b7\u548c\u5904\u7406\u9519\u8bef\u7684\u65b9\u5f0f\uff0c\u4ece\u800c\u907f\u514d\u7a0b\u5e8f\u5d29\u6e83\u3002\u5728Python\u4e2d\uff0c<code>try-except<\/code>\u5757\u7528\u4e8e\u6355\u83b7\u5f02\u5e38\uff0c\u5e76\u6839\u636e\u9700\u8981\u91c7\u53d6\u76f8\u5e94\u7684\u63aa\u65bd\u3002<\/p>\n<\/p>\n<p><p><strong>1. \u6355\u83b7\u5f02\u5e38<\/strong><\/p>\n<\/p>\n<p><p>\u901a\u8fc7\u6355\u83b7\u5f02\u5e38\uff0c\u53ef\u4ee5\u63a7\u5236\u7a0b\u5e8f\u5728\u9047\u5230\u9519\u8bef\u65f6\u7684\u884c\u4e3a\uff0c\u800c\u4e0d\u662f\u76f4\u63a5\u505c\u6b62\u3002\u4ee5\u4e0b\u662f\u4e00\u4e2a\u7b80\u5355\u7684\u793a\u4f8b\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">try:<\/p>\n<p>    result = 10 \/ 0<\/p>\n<p>except ZeroDivisionError:<\/p>\n<p>    print(&quot;Cannot divide by zero.&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u4f8b\u5b50\u4e2d\uff0c\u9664\u4ee5\u96f6\u4f1a\u5f15\u53d1<code>ZeroDivisionError<\/code>\u3002\u901a\u8fc7<code>try-except<\/code>\u5757\uff0c\u7a0b\u5e8f\u53ef\u4ee5\u6355\u83b7\u8fd9\u4e2a\u5f02\u5e38\uff0c\u5e76\u8f93\u51fa\u9519\u8bef\u4fe1\u606f\uff0c\u800c\u4e0d\u4f1a\u5bfc\u81f4\u7a0b\u5e8f\u5d29\u6e83\u3002<\/p>\n<\/p>\n<p><p><strong>2. \u4f7f\u7528<code>finally<\/code>\u5757<\/strong><\/p>\n<\/p>\n<p><p>\u6709\u65f6\uff0c\u65e0\u8bba\u662f\u5426\u53d1\u751f\u5f02\u5e38\uff0c\u90fd\u9700\u8981\u6267\u884c\u4e00\u4e9b\u6e05\u7406\u5de5\u4f5c\uff0c\u6bd4\u5982\u5173\u95ed\u6587\u4ef6\u6216\u91ca\u653e\u8d44\u6e90\u3002\u8fd9\u65f6\u53ef\u4ee5\u4f7f\u7528<code>finally<\/code>\u5757\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">try:<\/p>\n<p>    file = open(&quot;sample.txt&quot;, &quot;r&quot;)<\/p>\n<p>    # \u8bfb\u53d6\u6587\u4ef6\u5185\u5bb9<\/p>\n<p>finally:<\/p>\n<p>    file.close()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u65e0\u8bba\u6587\u4ef6\u8bfb\u53d6\u8fc7\u7a0b\u4e2d\u662f\u5426\u51fa\u73b0\u5f02\u5e38\uff0c<code>finally<\/code>\u5757\u4e2d\u7684<code>file.close()<\/code>\u90fd\u4f1a\u88ab\u6267\u884c\uff0c\u4ee5\u786e\u4fdd\u6587\u4ef6\u88ab\u6b63\u786e\u5173\u95ed\u3002<\/p>\n<\/p>\n<p><h3>\u4e09\u3001\u7ebf\u7a0b\u548c\u4fe1\u53f7\u63a7\u5236<\/h3>\n<\/p>\n<p><p>\u5728\u591a\u7ebf\u7a0b\u7a0b\u5e8f\u4e2d\uff0c\u53ef\u80fd\u9700\u8981\u5728\u7279\u5b9a\u6761\u4ef6\u4e0b\u6682\u505c\u6216\u6062\u590d\u7ebf\u7a0b\u7684\u6267\u884c\u3002\u8fd9\u53ef\u4ee5\u901a\u8fc7\u7ebf\u7a0b\u63a7\u5236\u548c\u4fe1\u53f7\u673a\u5236\u6765\u5b9e\u73b0\u3002<\/p>\n<\/p>\n<p><p><strong>1. \u4f7f\u7528\u7ebf\u7a0b\u4e8b\u4ef6<\/strong><\/p>\n<\/p>\n<p><p>\u7ebf\u7a0b\u4e8b\u4ef6\u662f\u4e00\u4e2a\u7b80\u5355\u7684\u540c\u6b65\u539f\u8bed\uff0c\u7528\u4e8e\u5b9e\u73b0\u7ebf\u7a0b\u4e4b\u95f4\u7684\u901a\u4fe1\u3002\u53ef\u4ee5\u4f7f\u7528<code>Event<\/code>\u5bf9\u8c61\u6765\u63a7\u5236\u7ebf\u7a0b\u7684\u6682\u505c\u548c\u6062\u590d\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import threading<\/p>\n<p>import time<\/p>\n<p>def worker(event):<\/p>\n<p>    while not event.is_set():<\/p>\n<p>        print(&quot;Working...&quot;)<\/p>\n<p>        time.sleep(1)<\/p>\n<p>event = threading.Event()<\/p>\n<p>thread = threading.Thread(target=worker, args=(event,))<\/p>\n<p>thread.start()<\/p>\n<p>time.sleep(5)<\/p>\n<p>print(&quot;Stopping worker thread.&quot;)<\/p>\n<p>event.set()  # \u901a\u77e5\u7ebf\u7a0b\u505c\u6b62<\/p>\n<p>thread.join()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u4f8b\u5b50\u4e2d\uff0c<code>worker<\/code>\u51fd\u6570\u4f1a\u5728<code>event<\/code>\u88ab\u8bbe\u7f6e\u4e4b\u524d\u6301\u7eed\u6267\u884c\u3002\u4e3b\u7ebf\u7a0b\u57285\u79d2\u540e\u8bbe\u7f6e<code>event<\/code>\uff0c\u901a\u77e5<code>worker<\/code>\u7ebf\u7a0b\u505c\u6b62\u6267\u884c\u3002<\/p>\n<\/p>\n<p><p><strong>2. \u4f7f\u7528\u4fe1\u53f7<\/strong><\/p>\n<\/p>\n<p><p>\u5728Unix\u7cfb\u7edf\u4e2d\uff0c\u53ef\u4ee5\u4f7f\u7528\u4fe1\u53f7\u6765\u63a7\u5236\u8fdb\u7a0b\u7684\u884c\u4e3a\u3002Python\u7684<code>signal<\/code>\u6a21\u5757\u63d0\u4f9b\u4e86\u7528\u4e8e\u6ce8\u518c\u4fe1\u53f7\u5904\u7406\u5668\u7684\u529f\u80fd\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import signal<\/p>\n<p>import time<\/p>\n<p>def handler(signum, frame):<\/p>\n<p>    print(&quot;Signal received:&quot;, signum)<\/p>\n<p>signal.signal(signal.SIGINT, handler)<\/p>\n<p>while True:<\/p>\n<p>    print(&quot;Running...&quot;)<\/p>\n<p>    time.sleep(1)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5f53\u7528\u6237\u6309\u4e0b<code>Ctrl+C<\/code>\u65f6\uff0c\u4f1a\u89e6\u53d1<code>SIGINT<\/code>\u4fe1\u53f7\uff0c\u8c03\u7528<code>handler<\/code>\u51fd\u6570\u8fdb\u884c\u5904\u7406\u3002\u5728<code>handler<\/code>\u4e2d\uff0c\u53ef\u4ee5\u5b9e\u73b0\u6682\u505c\u6216\u6062\u590d\u7a0b\u5e8f\u7684\u903b\u8f91\u3002<\/p>\n<\/p>\n<p><h3>\u56db\u3001\u4f7f\u7528\u5faa\u73af\u4e0e\u6761\u4ef6\u63a7\u5236<\/h3>\n<\/p>\n<p><p>\u5728\u67d0\u4e9b\u60c5\u51b5\u4e0b\uff0c\u53ef\u4ee5\u901a\u8fc7\u5faa\u73af\u548c\u6761\u4ef6\u8bed\u53e5\u6765\u5b9e\u73b0\u6682\u505c\u548c\u7ee7\u7eed\u7684\u529f\u80fd\u3002\u4f8b\u5982\uff0c\u4f7f\u7528\u4e00\u4e2a\u5faa\u73af\u6765\u76d1\u542c\u7528\u6237\u8f93\u5165\uff0c\u51b3\u5b9a\u7a0b\u5e8f\u7684\u6682\u505c\u6216\u7ee7\u7eed\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">while True:<\/p>\n<p>    command = input(&quot;Enter &#39;pause&#39; to pause, &#39;continue&#39; to continue, &#39;exit&#39; to exit: &quot;)<\/p>\n<p>    if command == &#39;pause&#39;:<\/p>\n<p>        print(&quot;Program paused. Enter &#39;continue&#39; to resume.&quot;)<\/p>\n<p>        while input() != &#39;continue&#39;:<\/p>\n<p>            pass<\/p>\n<p>    elif command == &#39;exit&#39;:<\/p>\n<p>        break<\/p>\n<p>    else:<\/p>\n<p>        print(&quot;Running...&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>pause<\/code>\u6765\u6682\u505c\u7a0b\u5e8f\uff0c\u5e76\u901a\u8fc7\u8f93\u5165<code>continue<\/code>\u6765\u6062\u590d\u7a0b\u5e8f\u6267\u884c\uff0c\u8f93\u5165<code>exit<\/code>\u5219\u7ec8\u6b62\u7a0b\u5e8f\u3002<\/p>\n<\/p>\n<p><p>\u901a\u8fc7\u5408\u7406\u4f7f\u7528\u8fd9\u4e9b\u63a7\u5236\u7ed3\u6784\u548c\u673a\u5236\uff0c\u53ef\u4ee5\u5728Python\u7a0b\u5e8f\u4e2d\u5b9e\u73b0\u7075\u6d3b\u7684\u505c\u6b62\u548c\u7ee7\u7eed\u529f\u80fd\u3002\u6839\u636e\u5177\u4f53\u7684\u9700\u6c42\uff0c\u9009\u62e9\u5408\u9002\u7684\u65b9\u6cd5\u6765\u7ba1\u7406\u7a0b\u5e8f\u7684\u6267\u884c\u6d41\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\u6682\u505c\u548c\u6062\u590d\uff1f<\/strong><br \/>\u5728Python\u4e2d\uff0c\u53ef\u4ee5\u4f7f\u7528<code>time<\/code>\u6a21\u5757\u4e2d\u7684<code>sleep()<\/code>\u51fd\u6570\u6765\u5b9e\u73b0\u7a0b\u5e8f\u7684\u6682\u505c\u3002\u901a\u8fc7\u5728\u9700\u8981\u6682\u505c\u7684\u5730\u65b9\u8c03\u7528<code>sleep()<\/code>\uff0c\u53ef\u4ee5\u8ba9\u7a0b\u5e8f\u5728\u6307\u5b9a\u7684\u65f6\u95f4\u5185\u505c\u6b62\u6267\u884c\u3002\u82e5\u8981\u5b9e\u73b0\u6062\u590d\uff0c\u53ef\u4ee5\u4f7f\u7528\u7ebf\u7a0b\u6216\u5f02\u6b65\u7f16\u7a0b\u6765\u63a7\u5236\u7a0b\u5e8f\u7684\u6d41\u52a8\u3002\u5177\u4f53\u6765\u8bf4\uff0c\u53ef\u4ee5\u5229\u7528<code>threading<\/code>\u6a21\u5757\u521b\u5efa\u4e00\u4e2a\u7ebf\u7a0b\uff0c\u5728\u7ebf\u7a0b\u4e2d\u6267\u884c\u9700\u8981\u6682\u505c\u7684\u4ee3\u7801\uff0c\u540c\u65f6\u901a\u8fc7\u4e8b\u4ef6\u6807\u5fd7\u6765\u63a7\u5236\u6682\u505c\u548c\u6062\u590d\u3002<\/p>\n<p><strong>Python\u4e2d\u6709\u54ea\u4e9b\u5e93\u53ef\u4ee5\u5e2e\u52a9\u5b9e\u73b0\u4ee3\u7801\u7684\u505c\u6b62\u548c\u7ee7\u7eed\u529f\u80fd\uff1f<\/strong><br \/>\u6709\u51e0\u4e2a\u6d41\u884c\u7684\u5e93\u53ef\u4ee5\u5e2e\u52a9\u5b9e\u73b0\u4ee3\u7801\u7684\u6682\u505c\u548c\u6062\u590d\u529f\u80fd\u3002\u4f8b\u5982\uff0c<code>threading<\/code>\u5e93\u53ef\u4ee5\u521b\u5efa\u591a\u4e2a\u7ebf\u7a0b\u4ee5\u5b9e\u73b0\u5e76\u884c\u6267\u884c\uff0c\u5e76\u4f7f\u7528\u4e8b\u4ef6\u5bf9\u8c61\u6765\u63a7\u5236\u7ebf\u7a0b\u7684\u6682\u505c\u548c\u6062\u590d\u3002\u6b64\u5916\uff0c<code>asyncio<\/code>\u5e93\u53ef\u4ee5\u901a\u8fc7\u534f\u7a0b\u6765\u5b9e\u73b0\u5f02\u6b65\u7684\u6682\u505c\u548c\u7ee7\u7eed\uff0c\u5141\u8bb8\u4f60\u5728\u7b49\u5f85\u67d0\u4e9b\u64cd\u4f5c\u5b8c\u6210\u65f6\u4fdd\u6301\u7a0b\u5e8f\u7684\u54cd\u5e94\u6027\u3002<\/p>\n<p><strong>\u5982\u4f55\u5728Python\u4e2d\u5904\u7406\u7528\u6237\u8f93\u5165\u4ee5\u5b9e\u73b0\u6682\u505c\u548c\u7ee7\u7eed\uff1f<\/strong><br \/>\u53ef\u4ee5\u4f7f\u7528<code>input()<\/code>\u51fd\u6570\u6765\u76d1\u542c\u7528\u6237\u7684\u8f93\u5165\uff0c\u4ece\u800c\u5b9e\u73b0\u7a0b\u5e8f\u7684\u6682\u505c\u548c\u7ee7\u7eed\u3002\u4f8b\u5982\uff0c\u53ef\u4ee5\u5728\u7a0b\u5e8f\u7684\u5173\u952e\u70b9\u8bbe\u7f6e\u4e00\u4e2a\u7b49\u5f85\u7528\u6237\u8f93\u5165\u7684\u6b65\u9aa4\uff0c\u5f53\u7528\u6237\u8f93\u5165\u7279\u5b9a\u7684\u547d\u4ee4\uff08\u5982\u201c\u6682\u505c\u201d\u6216\u201c\u7ee7\u7eed\u201d\uff09\u65f6\uff0c\u6839\u636e\u8f93\u5165\u7684\u5185\u5bb9\u6765\u63a7\u5236\u7a0b\u5e8f\u7684\u6267\u884c\u6d41\u3002\u8fd9\u79cd\u65b9\u5f0f\u53ef\u4ee5\u8ba9\u7a0b\u5e8f\u5728\u8fd0\u884c\u65f6\u6839\u636e\u7528\u6237\u7684\u6307\u4ee4\u52a8\u6001\u8c03\u6574\u72b6\u6001\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u5728Python\u4e2d\uff0c\u53ef\u4ee5\u901a\u8fc7\u4f7f\u7528\u63a7\u5236\u6d41\u7a0b\u8bed\u53e5\u3001\u5f02\u5e38\u5904\u7406\u548c\u7ebf\u7a0b\u63a7\u5236\u7b49\u65b9\u5f0f\u5b9e\u73b0\u7a0b\u5e8f\u7684\u505c\u6b62\u548c\u7ee7\u7eed\u3002\u5e38\u7528\u7684\u65b9\u6cd5\u5305\u62ec\u4f7f\u7528b [&hellip;]","protected":false},"author":3,"featured_media":990117,"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\/990109"}],"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=990109"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/990109\/revisions"}],"predecessor-version":[{"id":990118,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/990109\/revisions\/990118"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/990117"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=990109"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=990109"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=990109"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}