{"id":1156820,"date":"2025-01-13T18:21:00","date_gmt":"2025-01-13T10:21:00","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1156820.html"},"modified":"2025-01-13T18:21:02","modified_gmt":"2025-01-13T10:21:02","slug":"python%e5%a6%82%e4%bd%95%e9%80%80%e5%87%baif%e8%af%ad%e5%8f%a5","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/1156820.html","title":{"rendered":"python\u5982\u4f55\u9000\u51faif\u8bed\u53e5"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/25195203\/9cb84d1a-dfb9-425e-92df-7696f1379a91.webp\" alt=\"python\u5982\u4f55\u9000\u51faif\u8bed\u53e5\" \/><\/p>\n<p><p> \u8981\u9000\u51faPython\u4e2d\u7684if\u8bed\u53e5\uff0c\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u51e0\u79cd\u65b9\u6cd5\uff1a<strong>\u4f7f\u7528return\u3001\u4f7f\u7528break\u3001\u4f7f\u7528continue\u3001\u4f7f\u7528pass<\/strong>\u3002\u5176\u4e2d\uff0c<strong>return<\/strong>\u901a\u5e38\u7528\u4e8e\u51fd\u6570\u5185\u90e8\uff0c\u5b83\u4f1a\u7ed3\u675f\u51fd\u6570\u7684\u6267\u884c\u5e76\u8fd4\u56de\u4e00\u4e2a\u503c\uff1b<strong>break<\/strong>\u901a\u5e38\u7528\u4e8e\u5faa\u73af\u4e2d\uff0c\u53ef\u4ee5\u76f4\u63a5\u9000\u51fa\u5faa\u73af\uff1b<strong>continue<\/strong>\u4e5f\u7528\u4e8e\u5faa\u73af\u4e2d\uff0c\u5b83\u4f1a\u8df3\u8fc7\u5f53\u524d\u5faa\u73af\u7684\u5269\u4f59\u90e8\u5206\u5e76\u7ee7\u7eed\u5230\u4e0b\u4e00\u6b21\u5faa\u73af\uff1b<strong>pass<\/strong>\u5219\u4e0d\u6267\u884c\u4efb\u4f55\u64cd\u4f5c\uff0c\u4ec5\u4f5c\u4e3a\u5360\u4f4d\u7b26\u3002\u63a5\u4e0b\u6765\uff0c\u6211\u4eec\u5c06\u8be6\u7ec6\u4ecb\u7ecd\u5176\u4e2d\u7684return\u65b9\u6cd5\u3002<\/p>\n<\/p>\n<p><p><strong>return<\/strong> \u8bed\u53e5\u5728\u51fd\u6570\u4e2d\u975e\u5e38\u6709\u7528\uff0c\u5b83\u4e0d\u4ec5\u53ef\u4ee5\u9000\u51faif\u8bed\u53e5\uff0c\u8fd8\u53ef\u4ee5\u7ed3\u675f\u6574\u4e2a\u51fd\u6570\u7684\u6267\u884c\u3002\u5b83\u8fd8\u53ef\u4ee5\u8fd4\u56de\u4e00\u4e2a\u503c\u6216\u4e0d\u8fd4\u56de\u503c\u3002\u5728if\u8bed\u53e5\u4e2d\u4f7f\u7528return\uff0c\u53ef\u4ee5\u5728\u6ee1\u8db3\u67d0\u4e2a\u6761\u4ef6\u65f6\u7acb\u5373\u7ed3\u675f\u51fd\u6570\u7684\u6267\u884c\uff0c\u5e76\u8fd4\u56de\u4e00\u4e2a\u503c\u7ed9\u8c03\u7528\u8005\u3002\u8fd9\u5bf9\u4e8e\u63d0\u9ad8\u4ee3\u7801\u7684\u6548\u7387\u548c\u53ef\u8bfb\u6027\u975e\u5e38\u6709\u5e2e\u52a9\u3002<\/p>\n<\/p>\n<p><h2>\u4e00\u3001\u4f7f\u7528return\u9000\u51faif\u8bed\u53e5<\/h2>\n<\/p>\n<p><p>\u5f53\u5728\u51fd\u6570\u5185\u90e8\u4f7f\u7528if\u8bed\u53e5\u65f6\uff0c<strong>\u53ef\u4ee5\u901a\u8fc7return\u8bed\u53e5\u6765\u9000\u51faif\u8bed\u53e5\u5e76\u7ed3\u675f\u51fd\u6570\u7684\u6267\u884c<\/strong>\u3002\u8fd9\u79cd\u65b9\u6cd5\u4e0d\u4ec5\u9000\u51faif\u8bed\u53e5\uff0c\u8fd8\u4f1a\u76f4\u63a5\u8fd4\u56de\u4e00\u4e2a\u503c\uff08\u5982\u679c\u6307\u5b9a\u4e86\u8fd4\u56de\u503c\uff09\u5e76\u7ec8\u6b62\u6574\u4e2a\u51fd\u6570\u7684\u6267\u884c\u3002<\/p>\n<\/p>\n<p><h3>\u793a\u4f8b1\uff1a\u57fa\u672c\u7528\u6cd5<\/h3>\n<\/p>\n<p><pre><code class=\"language-python\">def check_number(num):<\/p>\n<p>    if num &gt; 10:<\/p>\n<p>        return &quot;Number is greater than 10&quot;<\/p>\n<p>    return &quot;Number is 10 or less&quot;<\/p>\n<h2><strong>\u8c03\u7528\u51fd\u6570\u5e76\u8f93\u51fa\u7ed3\u679c<\/strong><\/h2>\n<p>print(check_number(15))  # \u8f93\u51fa: Number is greater than 10<\/p>\n<p>print(check_number(5))   # \u8f93\u51fa: Number is 10 or less<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u4f8b\u5b50\u4e2d\uff0c\u5f53\u4f20\u5165\u7684\u6570\u503c\u5927\u4e8e10\u65f6\uff0c\u51fd\u6570\u4f1a\u7acb\u5373\u8fd4\u56de\u4e00\u4e2a\u5b57\u7b26\u4e32\u5e76\u9000\u51fa\u3002\u5982\u679c\u6570\u503c\u4e0d\u5927\u4e8e10\uff0c\u51fd\u6570\u4f1a\u7ee7\u7eed\u6267\u884c\u5e76\u8fd4\u56de\u53e6\u4e00\u4e2a\u5b57\u7b26\u4e32\u3002<\/p>\n<\/p>\n<p><h3>\u793a\u4f8b2\uff1a\u591a\u91cdif\u8bed\u53e5<\/h3>\n<\/p>\n<p><pre><code class=\"language-python\">def grade_score(score):<\/p>\n<p>    if score &gt;= 90:<\/p>\n<p>        return &quot;A&quot;<\/p>\n<p>    elif score &gt;= 80:<\/p>\n<p>        return &quot;B&quot;<\/p>\n<p>    elif score &gt;= 70:<\/p>\n<p>        return &quot;C&quot;<\/p>\n<p>    elif score &gt;= 60:<\/p>\n<p>        return &quot;D&quot;<\/p>\n<p>    return &quot;F&quot;<\/p>\n<h2><strong>\u8c03\u7528\u51fd\u6570\u5e76\u8f93\u51fa\u7ed3\u679c<\/strong><\/h2>\n<p>print(grade_score(85))  # \u8f93\u51fa: B<\/p>\n<p>print(grade_score(72))  # \u8f93\u51fa: C<\/p>\n<p>print(grade_score(55))  # \u8f93\u51fa: F<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u4f8b\u5b50\u4e2d\uff0c\u51fd\u6570\u6839\u636e\u4f20\u5165\u7684\u5206\u6570\u8fd4\u56de\u76f8\u5e94\u7684\u7b49\u7ea7\u3002\u6bcf\u4e2aif\u6761\u4ef6\u90fd\u4f1a\u68c0\u67e5\u4e00\u6b21\uff0c\u5982\u679c\u6ee1\u8db3\u6761\u4ef6\u5219\u7acb\u5373\u8fd4\u56de\u7b49\u7ea7\u5e76\u9000\u51fa\u51fd\u6570\u3002<\/p>\n<\/p>\n<p><h3>\u793a\u4f8b3\uff1a\u5d4c\u5957if\u8bed\u53e5<\/h3>\n<\/p>\n<p><pre><code class=\"language-python\">def complex_condition(x, y):<\/p>\n<p>    if x &gt; 0:<\/p>\n<p>        if y &gt; 0:<\/p>\n<p>            return &quot;Both x and y are positive&quot;<\/p>\n<p>        else:<\/p>\n<p>            return &quot;x is positive, y is not positive&quot;<\/p>\n<p>    else:<\/p>\n<p>        if y &gt; 0:<\/p>\n<p>            return &quot;x is not positive, y is positive&quot;<\/p>\n<p>        else:<\/p>\n<p>            return &quot;Both x and y are not positive&quot;<\/p>\n<h2><strong>\u8c03\u7528\u51fd\u6570\u5e76\u8f93\u51fa\u7ed3\u679c<\/strong><\/h2>\n<p>print(complex_condition(5, 10))  # \u8f93\u51fa: Both x and y are positive<\/p>\n<p>print(complex_condition(-5, 10)) # \u8f93\u51fa: x is not positive, y is positive<\/p>\n<p>print(complex_condition(5, -10)) # \u8f93\u51fa: x is positive, y is not positive<\/p>\n<p>print(complex_condition(-5, -10))# \u8f93\u51fa: Both x and y are not positive<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u4f8b\u5b50\u4e2d\uff0c\u51fd\u6570\u6839\u636e\u4e24\u4e2a\u53d8\u91cfx\u548cy\u7684\u503c\u8fd4\u56de\u4e0d\u540c\u7684\u5b57\u7b26\u4e32\u3002\u5d4c\u5957if\u8bed\u53e5\u5141\u8bb8\u6211\u4eec\u5904\u7406\u66f4\u590d\u6742\u7684\u6761\u4ef6\uff0c\u5e76\u4e14\u6bcf\u4e2a\u5206\u652f\u90fd\u53ef\u4ee5\u4f7f\u7528return\u8bed\u53e5\u9000\u51fa\u51fd\u6570\u3002<\/p>\n<\/p>\n<p><h2>\u4e8c\u3001\u4f7f\u7528break\u9000\u51faif\u8bed\u53e5<\/h2>\n<\/p>\n<p><p><strong>break\u8bed\u53e5\u901a\u5e38\u7528\u4e8e\u5faa\u73af\u4e2d\uff0c\u5b83\u53ef\u4ee5\u76f4\u63a5\u9000\u51fa\u5f53\u524d\u5faa\u73af<\/strong>\u3002\u5728\u67d0\u4e9b\u60c5\u51b5\u4e0b\uff0c\u6211\u4eec\u53ef\u4ee5\u5728if\u8bed\u53e5\u4e2d\u4f7f\u7528break\u6765\u7ed3\u675f\u5faa\u73af\u3002<\/p>\n<\/p>\n<p><h3>\u793a\u4f8b1\uff1a\u5728for\u5faa\u73af\u4e2d\u4f7f\u7528break<\/h3>\n<\/p>\n<p><pre><code class=\"language-python\">for i in range(10):<\/p>\n<p>    if i == 5:<\/p>\n<p>        break<\/p>\n<p>    print(i)<\/p>\n<h2><strong>\u8f93\u51fa: 0 1 2 3 4<\/strong><\/h2>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u4f8b\u5b50\u4e2d\uff0c\u5f53i\u7b49\u4e8e5\u65f6\uff0cif\u8bed\u53e5\u4e2d\u7684break\u4f1a\u7ed3\u675ffor\u5faa\u73af\u3002<\/p>\n<\/p>\n<p><h3>\u793a\u4f8b2\uff1a\u5728while\u5faa\u73af\u4e2d\u4f7f\u7528break<\/h3>\n<\/p>\n<p><pre><code class=\"language-python\">i = 0<\/p>\n<p>while i &lt; 10:<\/p>\n<p>    if i == 5:<\/p>\n<p>        break<\/p>\n<p>    print(i)<\/p>\n<p>    i += 1<\/p>\n<h2><strong>\u8f93\u51fa: 0 1 2 3 4<\/strong><\/h2>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u4f8b\u5b50\u4e2d\uff0c\u5f53i\u7b49\u4e8e5\u65f6\uff0cif\u8bed\u53e5\u4e2d\u7684break\u4f1a\u7ed3\u675fwhile\u5faa\u73af\u3002<\/p>\n<\/p>\n<p><h2>\u4e09\u3001\u4f7f\u7528continue\u8df3\u8fc7\u5f53\u524d\u5faa\u73af\u8fed\u4ee3<\/h2>\n<\/p>\n<p><p><strong>continue\u8bed\u53e5\u7528\u4e8e\u5faa\u73af\u4e2d\uff0c\u5b83\u4f1a\u8df3\u8fc7\u5f53\u524d\u5faa\u73af\u7684\u5269\u4f59\u90e8\u5206\u5e76\u7ee7\u7eed\u5230\u4e0b\u4e00\u6b21\u5faa\u73af<\/strong>\u3002\u8fd9\u5728\u67d0\u4e9b\u60c5\u51b5\u4e0b\u975e\u5e38\u6709\u7528\u3002<\/p>\n<\/p>\n<p><h3>\u793a\u4f8b1\uff1a\u5728for\u5faa\u73af\u4e2d\u4f7f\u7528continue<\/h3>\n<\/p>\n<p><pre><code class=\"language-python\">for i in range(10):<\/p>\n<p>    if i == 5:<\/p>\n<p>        continue<\/p>\n<p>    print(i)<\/p>\n<h2><strong>\u8f93\u51fa: 0 1 2 3 4 6 7 8 9<\/strong><\/h2>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u4f8b\u5b50\u4e2d\uff0c\u5f53i\u7b49\u4e8e5\u65f6\uff0cif\u8bed\u53e5\u4e2d\u7684continue\u4f1a\u8df3\u8fc7\u5f53\u524d\u8fed\u4ee3\uff0c\u4e0d\u4f1a\u6253\u53705\u3002<\/p>\n<\/p>\n<p><h3>\u793a\u4f8b2\uff1a\u5728while\u5faa\u73af\u4e2d\u4f7f\u7528continue<\/h3>\n<\/p>\n<p><pre><code class=\"language-python\">i = 0<\/p>\n<p>while i &lt; 10:<\/p>\n<p>    i += 1<\/p>\n<p>    if i == 5:<\/p>\n<p>        continue<\/p>\n<p>    print(i)<\/p>\n<h2><strong>\u8f93\u51fa: 1 2 3 4 6 7 8 9 10<\/strong><\/h2>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u4f8b\u5b50\u4e2d\uff0c\u5f53i\u7b49\u4e8e5\u65f6\uff0cif\u8bed\u53e5\u4e2d\u7684continue\u4f1a\u8df3\u8fc7\u5f53\u524d\u8fed\u4ee3\uff0c\u4e0d\u4f1a\u6253\u53705\u3002<\/p>\n<\/p>\n<p><h2>\u56db\u3001\u4f7f\u7528pass\u4f5c\u4e3a\u5360\u4f4d\u7b26<\/h2>\n<\/p>\n<p><p><strong>pass\u8bed\u53e5\u4e0d\u4f1a\u6267\u884c\u4efb\u4f55\u64cd\u4f5c\uff0c\u4ec5\u4f5c\u4e3a\u5360\u4f4d\u7b26<\/strong>\u3002\u5f53if\u8bed\u53e5\u4e2d\u4e0d\u9700\u8981\u6267\u884c\u4efb\u4f55\u64cd\u4f5c\u65f6\uff0c\u6211\u4eec\u53ef\u4ee5\u4f7f\u7528pass\u3002<\/p>\n<\/p>\n<p><h3>\u793a\u4f8b1\uff1a\u57fa\u672c\u7528\u6cd5<\/h3>\n<\/p>\n<p><pre><code class=\"language-python\">if True:<\/p>\n<p>    pass<\/p>\n<h2><strong>\u8fd9\u4e2aif\u8bed\u53e5\u4ec0\u4e48\u90fd\u4e0d\u505a<\/strong><\/h2>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u4f8b\u5b50\u4e2d\uff0cif\u8bed\u53e5\u4e2d\u7684pass\u4e0d\u4f1a\u6267\u884c\u4efb\u4f55\u64cd\u4f5c\u3002<\/p>\n<\/p>\n<p><h3>\u793a\u4f8b2\uff1a\u5728\u5faa\u73af\u4e2d\u4f7f\u7528pass<\/h3>\n<\/p>\n<p><pre><code class=\"language-python\">for i in range(10):<\/p>\n<p>    if i == 5:<\/p>\n<p>        pass<\/p>\n<p>    print(i)<\/p>\n<h2><strong>\u8f93\u51fa: 0 1 2 3 4 5 6 7 8 9<\/strong><\/h2>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u4f8b\u5b50\u4e2d\uff0c\u5f53i\u7b49\u4e8e5\u65f6\uff0cif\u8bed\u53e5\u4e2d\u7684pass\u4e0d\u4f1a\u6267\u884c\u4efb\u4f55\u64cd\u4f5c\uff0c\u5faa\u73af\u4f1a\u7ee7\u7eed\u8fdb\u884c\u3002<\/p>\n<\/p>\n<p><h2>\u603b\u7ed3<\/h2>\n<\/p>\n<p><p>\u901a\u8fc7\u4ee5\u4e0a\u4ecb\u7ecd\uff0c\u6211\u4eec\u4e86\u89e3\u4e86\u51e0\u79cd\u9000\u51faPython\u4e2dif\u8bed\u53e5\u7684\u65b9\u6cd5\uff1a<strong>\u4f7f\u7528return\u3001\u4f7f\u7528break\u3001\u4f7f\u7528continue\u3001\u4f7f\u7528pass<\/strong>\u3002\u5176\u4e2d\uff0c\u4f7f\u7528return\u662f\u6700\u5e38\u89c1\u7684\u65b9\u6cd5\uff0c\u7279\u522b\u662f\u5728\u51fd\u6570\u5185\u90e8\uff0c\u5b83\u4e0d\u4ec5\u53ef\u4ee5\u9000\u51faif\u8bed\u53e5\uff0c\u8fd8\u53ef\u4ee5\u7ed3\u675f\u6574\u4e2a\u51fd\u6570\u7684\u6267\u884c\u3002\u4f7f\u7528break\u548ccontinue\u5219\u4e3b\u8981\u7528\u4e8e\u5faa\u73af\u4e2d\uff0c\u5206\u522b\u7528\u4e8e\u9000\u51fa\u5faa\u73af\u548c\u8df3\u8fc7\u5f53\u524d\u8fed\u4ee3\u3002\u4f7f\u7528pass\u5219\u4f5c\u4e3a\u5360\u4f4d\u7b26\uff0c\u4e0d\u6267\u884c\u4efb\u4f55\u64cd\u4f5c\u3002\u6839\u636e\u5177\u4f53\u9700\u6c42\u9009\u62e9\u5408\u9002\u7684\u65b9\u6cd5\uff0c\u53ef\u4ee5\u63d0\u9ad8\u4ee3\u7801\u7684\u6548\u7387\u548c\u53ef\u8bfb\u6027\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u5728Python\u4e2d\u6709\u6548\u5730\u4f7f\u7528if\u8bed\u53e5\uff1f<\/strong><br \/>\u5728Python\u4e2d\uff0cif\u8bed\u53e5\u7528\u4e8e\u6761\u4ef6\u5224\u65ad\u3002\u8981\u6709\u6548\u5229\u7528if\u8bed\u53e5\uff0c\u786e\u4fdd\u6761\u4ef6\u8868\u8fbe\u5f0f\u7684\u903b\u8f91\u6e05\u6670\uff0c\u5e76\u4f7f\u7528\u9002\u5f53\u7684\u7f29\u8fdb\u6765\u7ec4\u7ec7\u4ee3\u7801\u3002\u901a\u8fc7\u4f7f\u7528elif\u548celse\uff0c\u53ef\u4ee5\u5904\u7406\u591a\u79cd\u6761\u4ef6\u60c5\u51b5\uff0c\u4f7f\u4ee3\u7801\u66f4\u52a0\u7075\u6d3b\u548c\u6613\u8bfb\u3002<\/p>\n<p><strong>\u5728Python\u4e2d\uff0c\u6709\u54ea\u4e9b\u65b9\u6cd5\u53ef\u4ee5\u7ed3\u675fif\u8bed\u53e5\u7684\u6267\u884c\uff1f<\/strong><br \/>if\u8bed\u53e5\u672c\u8eab\u5e76\u6ca1\u6709\u201c\u9000\u51fa\u201d\u7684\u6982\u5ff5\u3002\u4e00\u65e6\u6761\u4ef6\u6ee1\u8db3\uff0c\u76f8\u5173\u4ee3\u7801\u5757\u5c06\u88ab\u6267\u884c\u3002\u5982\u679c\u9700\u8981\u63d0\u524d\u7ec8\u6b62\u6574\u4e2a\u7a0b\u5e8f\u6216\u51fd\u6570\u7684\u6267\u884c\uff0c\u53ef\u4ee5\u4f7f\u7528<code>break<\/code>\uff08\u5728\u5faa\u73af\u4e2d\uff09\u3001<code>return<\/code>\uff08\u5728\u51fd\u6570\u4e2d\uff09\u6216<code>exit()<\/code>\uff08\u9000\u51fa\u7a0b\u5e8f\uff09\u7b49\u8bed\u53e5\u3002<\/p>\n<p><strong>\u5728if\u8bed\u53e5\u4e2d\uff0c\u5982\u4f55\u5904\u7406\u591a\u91cd\u6761\u4ef6\u5224\u65ad\uff1f<\/strong><br \/>\u53ef\u4ee5\u901a\u8fc7\u4f7f\u7528\u903b\u8f91\u8fd0\u7b97\u7b26\u5982<code>and<\/code>\u3001<code>or<\/code>\u548c<code>not<\/code>\u6765\u7ec4\u5408\u591a\u4e2a\u6761\u4ef6\u3002\u8fd9\u6837\u53ef\u4ee5\u5728\u5355\u4e2aif\u8bed\u53e5\u4e2d\u8fdb\u884c\u590d\u6742\u7684\u6761\u4ef6\u5224\u65ad\uff0c\u63d0\u4f9b\u66f4\u4e3a\u7cbe\u51c6\u7684\u63a7\u5236\u3002\u4f8b\u5982\uff0c<code>if x &gt; 10 and y &lt; 5:<\/code>\u5c06\u540c\u65f6\u68c0\u67e5\u4e24\u4e2a\u6761\u4ef6\u662f\u5426\u6ee1\u8db3\uff0c\u4ee5\u51b3\u5b9a\u662f\u5426\u6267\u884c\u4ee3\u7801\u5757\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u8981\u9000\u51faPython\u4e2d\u7684if\u8bed\u53e5\uff0c\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u51e0\u79cd\u65b9\u6cd5\uff1a\u4f7f\u7528return\u3001\u4f7f\u7528break\u3001\u4f7f\u7528continue\u3001 [&hellip;]","protected":false},"author":3,"featured_media":1156828,"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\/1156820"}],"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=1156820"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1156820\/revisions"}],"predecessor-version":[{"id":1156830,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1156820\/revisions\/1156830"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/1156828"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=1156820"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=1156820"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=1156820"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}