{"id":1085367,"date":"2025-01-08T13:15:30","date_gmt":"2025-01-08T05:15:30","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1085367.html"},"modified":"2025-01-08T13:15:32","modified_gmt":"2025-01-08T05:15:32","slug":"python%e5%a6%82%e4%bd%95%e5%86%99if%e5%b5%8c%e5%a5%97%e8%af%ad%e5%8f%a5-2","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/1085367.html","title":{"rendered":"python\u5982\u4f55\u5199if\u5d4c\u5957\u8bed\u53e5"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/24195304\/9f6e0e5a-1dbd-49fc-88aa-a60dfcd093cd.webp\" alt=\"python\u5982\u4f55\u5199if\u5d4c\u5957\u8bed\u53e5\" \/><\/p>\n<p><p> <strong>\u5728Python\u4e2d\u7f16\u5199if\u5d4c\u5957\u8bed\u53e5\u65f6\uff0c\u53ef\u4ee5\u901a\u8fc7\u4f7f\u7528if\u3001elif\u548celse\u8bed\u53e5\u5728\u5176\u4ed6\u6761\u4ef6\u8bed\u53e5\u4e2d\u8fdb\u884c\u5d4c\u5957\u3002\u8fd9\u6837\u53ef\u4ee5\u68c0\u67e5\u591a\u4e2a\u6761\u4ef6\uff0c\u5e76\u5728\u4e0d\u540c\u6761\u4ef6\u4e0b\u6267\u884c\u4e0d\u540c\u7684\u4ee3\u7801\u5757\u3002<\/strong>\u3001<strong>\u5d4c\u5957if\u8bed\u53e5\u53ef\u4ee5\u63d0\u9ad8\u4ee3\u7801\u7684\u7075\u6d3b\u6027\u548c\u7cbe\u786e\u6027\u3001\u4fbf\u4e8e\u5904\u7406\u590d\u6742\u7684\u903b\u8f91\u3001\u7b80\u5316\u4ee3\u7801\u7684\u7f16\u5199\u548c\u9605\u8bfb\u3002<\/strong>\u4e0b\u9762\u5c06\u8be6\u7ec6\u63cf\u8ff0\u5982\u4f55\u5728Python\u4e2d\u7f16\u5199if\u5d4c\u5957\u8bed\u53e5\uff0c\u5e76\u4ecb\u7ecd\u4e00\u4e9b\u5e38\u89c1\u7684\u5e94\u7528\u573a\u666f\u548c\u6ce8\u610f\u4e8b\u9879\u3002<\/p>\n<\/p>\n<p><h3>\u4e00\u3001\u5d4c\u5957if\u8bed\u53e5\u7684\u57fa\u672c\u6982\u5ff5<\/h3>\n<\/p>\n<p><p>\u5728Python\u4e2d\uff0cif\u8bed\u53e5\u7528\u4e8e\u5224\u65ad\u67d0\u4e2a\u6761\u4ef6\u662f\u5426\u4e3a\u771f\uff0c\u5982\u679c\u4e3a\u771f\u5219\u6267\u884c\u76f8\u5e94\u7684\u4ee3\u7801\u5757\u3002\u5d4c\u5957if\u8bed\u53e5\u662f\u6307\u5728\u4e00\u4e2aif\u8bed\u53e5\u7684\u4ee3\u7801\u5757\u5185\uff0c\u518d\u6b21\u4f7f\u7528if\u3001elif\u6216else\u8bed\u53e5\u8fdb\u884c\u6761\u4ef6\u5224\u65ad\u3002\u8fd9\u79cd\u5d4c\u5957\u7ed3\u6784\u53ef\u4ee5\u7528\u4e8e\u5904\u7406\u591a\u4e2a\u76f8\u5173\u8054\u7684\u6761\u4ef6\uff0c\u5e76\u6839\u636e\u4e0d\u540c\u7684\u6761\u4ef6\u7ec4\u5408\u6267\u884c\u4e0d\u540c\u7684\u64cd\u4f5c\u3002<\/p>\n<\/p>\n<p><p>\u4f8b\u5982\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">age = 20<\/p>\n<p>if age &gt;= 18:<\/p>\n<p>    print(&quot;You are an adult.&quot;)<\/p>\n<p>    if age &gt;= 21:<\/p>\n<p>        print(&quot;You can also drink alcohol.&quot;)<\/p>\n<p>    else:<\/p>\n<p>        print(&quot;You cannot drink alcohol yet.&quot;)<\/p>\n<p>else:<\/p>\n<p>    print(&quot;You are a minor.&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u4e8c\u3001\u5d4c\u5957if\u8bed\u53e5\u7684\u5e94\u7528\u573a\u666f<\/h3>\n<\/p>\n<p><h4>1\u3001\u5904\u7406\u591a\u7ea7\u5206\u7c7b<\/h4>\n<\/p>\n<p><p>\u5d4c\u5957if\u8bed\u53e5\u5e38\u7528\u4e8e\u5904\u7406\u591a\u7ea7\u5206\u7c7b\u95ee\u9898\u3002\u4f8b\u5982\uff0c\u6839\u636e\u7528\u6237\u7684\u5e74\u9f84\u8fdb\u884c\u5206\u7c7b\uff0c\u5e76\u8fdb\u4e00\u6b65\u5224\u65ad\u5176\u4ed6\u6761\u4ef6\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">age = 25<\/p>\n<p>membership_status = &quot;premium&quot;<\/p>\n<p>if age &gt;= 18:<\/p>\n<p>    if membership_status == &quot;premium&quot;:<\/p>\n<p>        print(&quot;You are an adult with premium membership.&quot;)<\/p>\n<p>    elif membership_status == &quot;standard&quot;:<\/p>\n<p>        print(&quot;You are an adult with standard membership.&quot;)<\/p>\n<p>    else:<\/p>\n<p>        print(&quot;You are an adult with no membership.&quot;)<\/p>\n<p>else:<\/p>\n<p>    print(&quot;You are a minor.&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>2\u3001\u5904\u7406\u590d\u6742\u7684\u4e1a\u52a1\u903b\u8f91<\/h4>\n<\/p>\n<p><p>\u5728\u5b9e\u9645\u9879\u76ee\u4e2d\uff0c\u5d4c\u5957if\u8bed\u53e5\u53ef\u4ee5\u7528\u4e8e\u5904\u7406\u590d\u6742\u7684\u4e1a\u52a1\u903b\u8f91\u3002\u4f8b\u5982\uff0c\u6839\u636e\u7528\u6237\u7684\u8d2d\u4e70\u91d1\u989d\u548c\u4f1a\u5458\u7b49\u7ea7\u8ba1\u7b97\u6298\u6263\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">purchase_amount = 150<\/p>\n<p>membership_level = &quot;gold&quot;<\/p>\n<p>if purchase_amount &gt;= 100:<\/p>\n<p>    if membership_level == &quot;gold&quot;:<\/p>\n<p>        discount = 0.2<\/p>\n<p>    elif membership_level == &quot;silver&quot;:<\/p>\n<p>        discount = 0.1<\/p>\n<p>    else:<\/p>\n<p>        discount = 0.05<\/p>\n<p>else:<\/p>\n<p>    discount = 0<\/p>\n<p>final_amount = purchase_amount * (1 - discount)<\/p>\n<p>print(f&quot;The final amount to be p<a href=\"https:\/\/docs.pingcode.com\/blog\/59162.html\" target=\"_blank\">AI<\/a>d is: {final_amount}&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u4e09\u3001\u5d4c\u5957if\u8bed\u53e5\u7684\u6ce8\u610f\u4e8b\u9879<\/h3>\n<\/p>\n<p><h4>1\u3001\u907f\u514d\u8fc7\u6df1\u7684\u5d4c\u5957<\/h4>\n<\/p>\n<p><p>\u867d\u7136\u5d4c\u5957if\u8bed\u53e5\u53ef\u4ee5\u5904\u7406\u590d\u6742\u7684\u903b\u8f91\uff0c\u4f46\u8fc7\u6df1\u7684\u5d4c\u5957\u4f1a\u5bfc\u81f4\u4ee3\u7801\u96be\u4ee5\u9605\u8bfb\u548c\u7ef4\u62a4\u3002\u5efa\u8bae\u5c3d\u91cf\u907f\u514d\u8d85\u8fc7\u4e09\u5c42\u7684\u5d4c\u5957\uff0c\u901a\u8fc7\u62c6\u5206\u51fd\u6570\u6216\u4f7f\u7528\u5176\u4ed6\u63a7\u5236\u7ed3\u6784\uff08\u5982\u5faa\u73af\u3001\u5b57\u5178\u6620\u5c04\u7b49\uff09\u6765\u7b80\u5316\u4ee3\u7801\u3002<\/p>\n<\/p>\n<p><h4>2\u3001\u4fdd\u6301\u4ee3\u7801\u7684\u53ef\u8bfb\u6027<\/h4>\n<\/p>\n<p><p>\u5728\u7f16\u5199\u5d4c\u5957if\u8bed\u53e5\u65f6\uff0c\u4fdd\u6301\u4ee3\u7801\u7684\u53ef\u8bfb\u6027\u975e\u5e38\u91cd\u8981\u3002\u53ef\u4ee5\u901a\u8fc7\u5408\u7406\u7684\u7f29\u8fdb\u3001\u6ce8\u91ca\u548c\u547d\u540d\u6765\u63d0\u9ad8\u4ee3\u7801\u7684\u53ef\u8bfb\u6027\u3002\u4f8b\u5982\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">age = 30<\/p>\n<p>is_student = False<\/p>\n<p>if age &gt;= 18:<\/p>\n<p>    if is_student:<\/p>\n<p>        print(&quot;You are an adult student.&quot;)<\/p>\n<p>    else:<\/p>\n<p>        print(&quot;You are an adult non-student.&quot;)<\/p>\n<p>else:<\/p>\n<p>    print(&quot;You are a minor.&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u56db\u3001\u5d4c\u5957if\u8bed\u53e5\u7684\u66ff\u4ee3\u65b9\u6848<\/h3>\n<\/p>\n<p><p>\u5728\u67d0\u4e9b\u60c5\u51b5\u4e0b\uff0c\u53ef\u4ee5\u4f7f\u7528\u5176\u4ed6\u63a7\u5236\u7ed3\u6784\u6765\u66ff\u4ee3\u5d4c\u5957if\u8bed\u53e5\uff0c\u4ece\u800c\u7b80\u5316\u4ee3\u7801\u3002<\/p>\n<\/p>\n<p><h4>1\u3001\u4f7f\u7528\u903b\u8f91\u8fd0\u7b97\u7b26<\/h4>\n<\/p>\n<p><p>\u903b\u8f91\u8fd0\u7b97\u7b26\uff08\u5982and\u3001or\u3001not\uff09\u53ef\u4ee5\u7528\u4e8e\u7b80\u5316\u591a\u4e2a\u6761\u4ef6\u7684\u5224\u65ad\u3002\u4f8b\u5982\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">age = 25<\/p>\n<p>membership_status = &quot;premium&quot;<\/p>\n<p>if age &gt;= 18 and membership_status == &quot;premium&quot;:<\/p>\n<p>    print(&quot;You are an adult with premium membership.&quot;)<\/p>\n<p>elif age &gt;= 18 and membership_status == &quot;standard&quot;:<\/p>\n<p>    print(&quot;You are an adult with standard membership.&quot;)<\/p>\n<p>elif age &gt;= 18:<\/p>\n<p>    print(&quot;You are an adult with no membership.&quot;)<\/p>\n<p>else:<\/p>\n<p>    print(&quot;You are a minor.&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>2\u3001\u4f7f\u7528\u5b57\u5178\u6620\u5c04<\/h4>\n<\/p>\n<p><p>\u5b57\u5178\u6620\u5c04\u53ef\u4ee5\u7528\u4e8e\u66ff\u4ee3\u591a\u91cd\u5d4c\u5957\u7684\u6761\u4ef6\u5224\u65ad\u3002\u4f8b\u5982\uff0c\u6839\u636e\u7528\u6237\u7684\u8d2d\u4e70\u91d1\u989d\u548c\u4f1a\u5458\u7b49\u7ea7\u8ba1\u7b97\u6298\u6263\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">purchase_amount = 150<\/p>\n<p>membership_level = &quot;gold&quot;<\/p>\n<p>discounts = {<\/p>\n<p>    &quot;gold&quot;: 0.2,<\/p>\n<p>    &quot;silver&quot;: 0.1,<\/p>\n<p>    &quot;none&quot;: 0.05<\/p>\n<p>}<\/p>\n<p>if purchase_amount &gt;= 100:<\/p>\n<p>    discount = discounts.get(membership_level, 0.05)<\/p>\n<p>else:<\/p>\n<p>    discount = 0<\/p>\n<p>final_amount = purchase_amount * (1 - discount)<\/p>\n<p>print(f&quot;The final amount to be paid is: {final_amount}&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u4e94\u3001\u5d4c\u5957if\u8bed\u53e5\u7684\u8c03\u8bd5\u6280\u5de7<\/h3>\n<\/p>\n<p><p>\u5728\u7f16\u5199\u548c\u8c03\u8bd5\u5d4c\u5957if\u8bed\u53e5\u65f6\uff0c\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u6280\u5de7\u6765\u63d0\u9ad8\u6548\u7387\uff1a<\/p>\n<\/p>\n<p><h4>1\u3001\u6253\u5370\u8c03\u8bd5\u4fe1\u606f<\/h4>\n<\/p>\n<p><p>\u5728\u6761\u4ef6\u5224\u65ad\u548c\u4ee3\u7801\u5757\u5185\u6dfb\u52a0\u6253\u5370\u8bed\u53e5\uff0c\u8f93\u51fa\u76f8\u5173\u53d8\u91cf\u7684\u503c\u548c\u72b6\u6001\uff0c\u5e2e\u52a9\u5b9a\u4f4d\u95ee\u9898\u3002\u4f8b\u5982\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">age = 25<\/p>\n<p>membership_status = &quot;premium&quot;<\/p>\n<p>if age &gt;= 18:<\/p>\n<p>    print(&quot;Age check passed.&quot;)<\/p>\n<p>    if membership_status == &quot;premium&quot;:<\/p>\n<p>        print(&quot;Membership status: premium&quot;)<\/p>\n<p>        print(&quot;You are an adult with premium membership.&quot;)<\/p>\n<p>    elif membership_status == &quot;standard&quot;:<\/p>\n<p>        print(&quot;Membership status: standard&quot;)<\/p>\n<p>        print(&quot;You are an adult with standard membership.&quot;)<\/p>\n<p>    else:<\/p>\n<p>        print(&quot;Membership status: none&quot;)<\/p>\n<p>        print(&quot;You are an adult with no membership.&quot;)<\/p>\n<p>else:<\/p>\n<p>    print(&quot;You are a minor.&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>2\u3001\u4f7f\u7528\u8c03\u8bd5\u5668<\/h4>\n<\/p>\n<p><p>\u4f7f\u7528\u8c03\u8bd5\u5668\uff08\u5982Python\u81ea\u5e26\u7684pdb\u6a21\u5757\u6216\u96c6\u6210\u5f00\u53d1\u73af\u5883\u4e2d\u7684\u8c03\u8bd5\u5de5\u5177\uff09\u9010\u6b65\u6267\u884c\u4ee3\u7801\uff0c\u68c0\u67e5\u53d8\u91cf\u7684\u503c\u548c\u7a0b\u5e8f\u7684\u6267\u884c\u6d41\u7a0b\uff0c\u5e2e\u52a9\u5b9a\u4f4d\u548c\u89e3\u51b3\u95ee\u9898\u3002<\/p>\n<\/p>\n<p><h3>\u516d\u3001\u603b\u7ed3<\/h3>\n<\/p>\n<p><p>\u5728Python\u4e2d\uff0cif\u5d4c\u5957\u8bed\u53e5\u662f\u4e00\u79cd\u5e38\u7528\u7684\u63a7\u5236\u7ed3\u6784\uff0c\u7528\u4e8e\u5904\u7406\u591a\u4e2a\u76f8\u5173\u8054\u7684\u6761\u4ef6\u3002\u901a\u8fc7\u5408\u7406\u4f7f\u7528\u5d4c\u5957if\u8bed\u53e5\uff0c\u53ef\u4ee5\u63d0\u9ad8\u4ee3\u7801\u7684\u7075\u6d3b\u6027\u548c\u7cbe\u786e\u6027\u3002\u7136\u800c\uff0c\u8fc7\u6df1\u7684\u5d4c\u5957\u4f1a\u5bfc\u81f4\u4ee3\u7801\u96be\u4ee5\u9605\u8bfb\u548c\u7ef4\u62a4\uff0c\u56e0\u6b64\u9700\u8981\u6ce8\u610f\u4fdd\u6301\u4ee3\u7801\u7684\u53ef\u8bfb\u6027\uff0c\u5e76\u5c3d\u91cf\u907f\u514d\u8d85\u8fc7\u4e09\u5c42\u7684\u5d4c\u5957\u3002\u5728\u67d0\u4e9b\u60c5\u51b5\u4e0b\uff0c\u53ef\u4ee5\u4f7f\u7528\u903b\u8f91\u8fd0\u7b97\u7b26\u3001\u5b57\u5178\u6620\u5c04\u7b49\u66ff\u4ee3\u5d4c\u5957if\u8bed\u53e5\uff0c\u4ece\u800c\u7b80\u5316\u4ee3\u7801\u3002\u6b64\u5916\uff0c\u5728\u7f16\u5199\u548c\u8c03\u8bd5\u5d4c\u5957if\u8bed\u53e5\u65f6\uff0c\u53ef\u4ee5\u901a\u8fc7\u6253\u5370\u8c03\u8bd5\u4fe1\u606f\u548c\u4f7f\u7528\u8c03\u8bd5\u5668\u6765\u63d0\u9ad8\u6548\u7387\u3002\u5e0c\u671b\u672c\u6587\u5bf9\u60a8\u5728\u7f16\u5199Python\u4ee3\u7801\u65f6\u5904\u7406if\u5d4c\u5957\u8bed\u53e5\u6709\u6240\u5e2e\u52a9\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u4ec0\u4e48\u662fPython\u4e2d\u7684if\u5d4c\u5957\u8bed\u53e5\uff1f<\/strong><br \/>\u5728Python\u7f16\u7a0b\u4e2d\uff0cif\u5d4c\u5957\u8bed\u53e5\u662f\u6307\u5728\u4e00\u4e2aif\u8bed\u53e5\u5185\u90e8\u518d\u5199\u4e00\u4e2a\u6216\u591a\u4e2aif\u8bed\u53e5\u3002\u8fd9\u79cd\u7ed3\u6784\u53ef\u4ee5\u8ba9\u7a0b\u5e8f\u6839\u636e\u591a\u5c42\u6761\u4ef6\u8fdb\u884c\u5224\u65ad\uff0c\u9002\u7528\u4e8e\u9700\u8981\u66f4\u590d\u6742\u51b3\u7b56\u7684\u573a\u666f\u3002\u4f8b\u5982\uff0c\u60a8\u53ef\u4ee5\u5148\u5224\u65ad\u4e00\u4e2a\u6761\u4ef6\uff0c\u5982\u679c\u8be5\u6761\u4ef6\u6210\u7acb\uff0c\u518d\u8fdb\u884c\u8fdb\u4e00\u6b65\u7684\u6761\u4ef6\u5224\u65ad\u3002<\/p>\n<p><strong>\u5982\u4f55\u5728Python\u4e2d\u7f16\u5199if\u5d4c\u5957\u8bed\u53e5\u7684\u793a\u4f8b\uff1f<\/strong><br \/>\u7f16\u5199if\u5d4c\u5957\u8bed\u53e5\u65f6\uff0c\u53ef\u4ee5\u4f7f\u7528\u5982\u4e0b\u7ed3\u6784\uff1a  <\/p>\n<pre><code class=\"language-python\">if condition1:\n    # \u6267\u884c\u67d0\u4e9b\u64cd\u4f5c\n    if condition2:\n        # \u6267\u884c\u5176\u4ed6\u64cd\u4f5c\n<\/code><\/pre>\n<p>\u5728\u8fd9\u4e2a\u7ed3\u6784\u4e2d\uff0c\u53ea\u6709\u5f53<code>condition1<\/code>\u4e3a\u771f\u65f6\uff0c<code>condition2<\/code>\u624d\u4f1a\u88ab\u68c0\u67e5\u3002\u8fd9\u6837\u7684\u8bbe\u8ba1\u53ef\u4ee5\u8ba9\u60a8\u7075\u6d3b\u5904\u7406\u590d\u6742\u7684\u903b\u8f91\u3002<\/p>\n<p><strong>\u4f7f\u7528if\u5d4c\u5957\u8bed\u53e5\u65f6\u9700\u8981\u6ce8\u610f\u54ea\u4e9b\u95ee\u9898\uff1f<\/strong><br \/>\u5728\u4f7f\u7528if\u5d4c\u5957\u8bed\u53e5\u65f6\uff0c\u4ee3\u7801\u7684\u53ef\u8bfb\u6027\u662f\u4e00\u4e2a\u91cd\u8981\u7684\u8003\u8651\u56e0\u7d20\u3002\u8fc7\u591a\u7684\u5d4c\u5957\u53ef\u80fd\u4f1a\u4f7f\u4ee3\u7801\u53d8\u5f97\u590d\u6742\uff0c\u96be\u4ee5\u7ef4\u62a4\u3002\u5c3d\u91cf\u4fdd\u6301\u5d4c\u5957\u5c42\u6570\u5728\u5408\u7406\u8303\u56f4\u5185\uff0c\u5e76\u8003\u8651\u4f7f\u7528\u903b\u8f91\u8fd0\u7b97\u7b26\uff08\u5982<code>and<\/code>\u3001<code>or<\/code>\uff09\u6765\u7b80\u5316\u6761\u4ef6\u5224\u65ad\u3002\u540c\u65f6\uff0c\u786e\u4fdd\u9002\u5f53\u7684\u7f29\u8fdb\uff0c\u4ee5\u4fdd\u6301\u4ee3\u7801\u7ed3\u6784\u7684\u6e05\u6670\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u5728Python\u4e2d\u7f16\u5199if\u5d4c\u5957\u8bed\u53e5\u65f6\uff0c\u53ef\u4ee5\u901a\u8fc7\u4f7f\u7528if\u3001elif\u548celse\u8bed\u53e5\u5728\u5176\u4ed6\u6761\u4ef6\u8bed\u53e5\u4e2d\u8fdb\u884c\u5d4c\u5957\u3002\u8fd9\u6837\u53ef\u4ee5 [&hellip;]","protected":false},"author":3,"featured_media":1085372,"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\/1085367"}],"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=1085367"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1085367\/revisions"}],"predecessor-version":[{"id":1085373,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1085367\/revisions\/1085373"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/1085372"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=1085367"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=1085367"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=1085367"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}