{"id":1102384,"date":"2025-01-08T15:59:21","date_gmt":"2025-01-08T07:59:21","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1102384.html"},"modified":"2025-01-08T15:59:23","modified_gmt":"2025-01-08T07:59:23","slug":"python%e5%a6%82%e4%bd%95%e5%88%a4%e6%96%ad%e4%b8%80%e4%b8%aa%e5%88%97%e8%a1%a8%e4%b8%ba%e7%a9%ba-2","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/1102384.html","title":{"rendered":"python\u5982\u4f55\u5224\u65ad\u4e00\u4e2a\u5217\u8868\u4e3a\u7a7a"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/25064723\/a39d92ee-e10b-4249-b778-99add11b43b9.webp\" alt=\"python\u5982\u4f55\u5224\u65ad\u4e00\u4e2a\u5217\u8868\u4e3a\u7a7a\" \/><\/p>\n<p><p> <strong>\u4f7f\u7528Python\u5224\u65ad\u4e00\u4e2a\u5217\u8868\u662f\u5426\u4e3a\u7a7a\u6709\u591a\u79cd\u65b9\u6cd5<\/strong>\uff0c\u5305\u62ec\u76f4\u63a5\u5224\u65ad\u5217\u8868\u7684\u957f\u5ea6\u3001\u4f7f\u7528\u5e03\u5c14\u503c\u5224\u65ad\u3001\u4ee5\u53ca\u4f7f\u7528try-except\u5757\u3002\u6700\u5e38\u89c1\u7684\u65b9\u6cd5\u662f\u901a\u8fc7\u5224\u65ad\u5217\u8868\u7684\u957f\u5ea6\u662f\u5426\u4e3a0\u3002\u5224\u65ad\u5217\u8868\u4e3a\u7a7a\u5728\u7f16\u7a0b\u4e2d\u975e\u5e38\u5e38\u89c1\uff0c\u5c24\u5176\u662f\u5728\u5904\u7406\u6570\u636e\u65f6\u3002<strong>\u76f4\u63a5\u5224\u65ad\u957f\u5ea6\u3001\u4f7f\u7528\u5e03\u5c14\u503c\u3001try-except\u5757<\/strong>\u662f\u5e38\u89c1\u7684\u65b9\u6cd5\u3002\u5176\u4e2d\uff0c\u76f4\u63a5\u5224\u65ad\u957f\u5ea6\u7684\u65b9\u6cd5\u6700\u4e3a\u76f4\u89c2\u548c\u5e38\u7528\u3002<\/p>\n<\/p>\n<p><h3>\u4e00\u3001\u76f4\u63a5\u5224\u65ad\u957f\u5ea6<\/h3>\n<\/p>\n<p><p>\u5224\u65ad\u4e00\u4e2a\u5217\u8868\u662f\u5426\u4e3a\u7a7a\u6700\u76f4\u63a5\u7684\u65b9\u6cd5\u662f\u4f7f\u7528 <code>len()<\/code> \u51fd\u6570\u3002<code>len()<\/code> \u51fd\u6570\u8fd4\u56de\u5217\u8868\u7684\u957f\u5ea6\uff0c\u5982\u679c\u957f\u5ea6\u4e3a0\uff0c\u5219\u5217\u8868\u4e3a\u7a7a\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">my_list = []<\/p>\n<p>if len(my_list) == 0:<\/p>\n<p>    print(&quot;\u5217\u8868\u4e3a\u7a7a&quot;)<\/p>\n<p>else:<\/p>\n<p>    print(&quot;\u5217\u8868\u4e0d\u4e3a\u7a7a&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u79cd\u65b9\u6cd5\u975e\u5e38\u7b80\u5355\u76f4\u89c2\uff0c\u9002\u5408\u5927\u591a\u6570\u60c5\u51b5\u4e0b\u7684\u4f7f\u7528\u3002<\/p>\n<\/p>\n<p><h3>\u4e8c\u3001\u4f7f\u7528\u5e03\u5c14\u503c<\/h3>\n<\/p>\n<p><p>\u5728Python\u4e2d\uff0c\u53ef\u4ee5\u76f4\u63a5\u4f7f\u7528\u5217\u8868\u7684\u5e03\u5c14\u503c\u6765\u5224\u65ad\u5217\u8868\u662f\u5426\u4e3a\u7a7a\u3002\u7a7a\u5217\u8868\u7684\u5e03\u5c14\u503c\u4e3a <code>False<\/code>\uff0c\u975e\u7a7a\u5217\u8868\u7684\u5e03\u5c14\u503c\u4e3a <code>True<\/code>\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">my_list = []<\/p>\n<p>if not my_list:<\/p>\n<p>    print(&quot;\u5217\u8868\u4e3a\u7a7a&quot;)<\/p>\n<p>else:<\/p>\n<p>    print(&quot;\u5217\u8868\u4e0d\u4e3a\u7a7a&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u79cd\u65b9\u6cd5\u66f4\u52a0\u7b80\u6d01\uff0c\u4e14\u7b26\u5408Python\u7684\u60ef\u7528\u6cd5\uff0c\u5efa\u8bae\u5728\u5b9e\u9645\u7f16\u7a0b\u4e2d\u4f7f\u7528\u3002<\/p>\n<\/p>\n<p><h3>\u4e09\u3001try-except\u5757<\/h3>\n<\/p>\n<p><p>\u867d\u7136\u4e0d\u5e38\u89c1\uff0c\u4f46\u5728\u67d0\u4e9b\u60c5\u51b5\u4e0b\u53ef\u4ee5\u4f7f\u7528try-except\u5757\u6765\u5224\u65ad\u5217\u8868\u662f\u5426\u4e3a\u7a7a\u3002\u4f8b\u5982\uff0c\u5f53\u8bbf\u95ee\u5217\u8868\u7684\u7b2c\u4e00\u4e2a\u5143\u7d20\u65f6\uff0c\u5982\u679c\u5217\u8868\u4e3a\u7a7a\u4f1a\u5f15\u53d1 <code>IndexError<\/code> \u5f02\u5e38\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">my_list = []<\/p>\n<p>try:<\/p>\n<p>    my_list[0]<\/p>\n<p>except IndexError:<\/p>\n<p>    print(&quot;\u5217\u8868\u4e3a\u7a7a&quot;)<\/p>\n<p>else:<\/p>\n<p>    print(&quot;\u5217\u8868\u4e0d\u4e3a\u7a7a&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u79cd\u65b9\u6cd5\u4e0d\u5982\u524d\u4e24\u79cd\u65b9\u6cd5\u76f4\u89c2\uff0c\u4f46\u5728\u67d0\u4e9b\u7279\u6b8a\u60c5\u51b5\u4e0b\u53ef\u80fd\u4f1a\u6709\u7528\u3002<\/p>\n<\/p>\n<p><h3>\u56db\u3001\u7ed3\u5408\u5176\u4ed6\u6761\u4ef6\u5224\u65ad<\/h3>\n<\/p>\n<p><p>\u6709\u65f6\u5728\u5b9e\u9645\u5e94\u7528\u4e2d\uff0c\u6211\u4eec\u9700\u8981\u7ed3\u5408\u5176\u4ed6\u6761\u4ef6\u6765\u5224\u65ad\u5217\u8868\u662f\u5426\u4e3a\u7a7a\u3002\u6bd4\u5982\u5728\u6570\u636e\u5904\u7406\u8fc7\u7a0b\u4e2d\uff0c\u53ef\u80fd\u9700\u8981\u5224\u65ad\u5217\u8868\u4e3a\u7a7a\u7684\u540c\u65f6\uff0c\u8fd8\u9700\u8981\u5224\u65ad\u5176\u4ed6\u53d8\u91cf\u7684\u72b6\u6001\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">my_list = []<\/p>\n<p>other_condition = True<\/p>\n<p>if not my_list and other_condition:<\/p>\n<p>    print(&quot;\u5217\u8868\u4e3a\u7a7a\u4e14\u5176\u4ed6\u6761\u4ef6\u6ee1\u8db3&quot;)<\/p>\n<p>else:<\/p>\n<p>    print(&quot;\u5217\u8868\u4e0d\u4e3a\u7a7a\u6216\u5176\u4ed6\u6761\u4ef6\u4e0d\u6ee1\u8db3&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u79cd\u65b9\u6cd5\u53ef\u4ee5\u63d0\u9ad8\u4ee3\u7801\u7684\u7075\u6d3b\u6027\u548c\u9002\u5e94\u6027\u3002<\/p>\n<\/p>\n<p><h3>\u4e94\u3001\u4f7f\u7528\u5217\u8868\u63a8\u5bfc\u5f0f<\/h3>\n<\/p>\n<p><p>\u5728\u67d0\u4e9b\u7279\u6b8a\u60c5\u51b5\u4e0b\uff0c\u53ef\u4ee5\u4f7f\u7528\u5217\u8868\u63a8\u5bfc\u5f0f\u6765\u5224\u65ad\u5217\u8868\u662f\u5426\u4e3a\u7a7a\u3002\u867d\u7136\u8fd9\u79cd\u65b9\u6cd5\u4e0d\u5e38\u7528\uff0c\u4f46\u5728\u7279\u5b9a\u573a\u666f\u4e0b\u53ef\u4ee5\u63d0\u9ad8\u4ee3\u7801\u7684\u53ef\u8bfb\u6027\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">my_list = []<\/p>\n<p>if not [x for x in my_list]:<\/p>\n<p>    print(&quot;\u5217\u8868\u4e3a\u7a7a&quot;)<\/p>\n<p>else:<\/p>\n<p>    print(&quot;\u5217\u8868\u4e0d\u4e3a\u7a7a&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u79cd\u65b9\u6cd5\u9002\u5408\u5728\u5904\u7406\u590d\u6742\u6570\u636e\u7ed3\u6784\u65f6\u4f7f\u7528\u3002<\/p>\n<\/p>\n<p><h3>\u516d\u3001\u4f7f\u7528\u81ea\u5b9a\u4e49\u51fd\u6570<\/h3>\n<\/p>\n<p><p>\u5982\u679c\u5728\u591a\u4e2a\u5730\u65b9\u9700\u8981\u5224\u65ad\u5217\u8868\u662f\u5426\u4e3a\u7a7a\uff0c\u53ef\u4ee5\u5b9a\u4e49\u4e00\u4e2a\u51fd\u6570\u6765\u590d\u7528\u5224\u65ad\u903b\u8f91\u3002\u8fd9\u6837\u53ef\u4ee5\u63d0\u9ad8\u4ee3\u7801\u7684\u53ef\u7ef4\u62a4\u6027\u548c\u91cd\u7528\u6027\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">def is_list_empty(lst):<\/p>\n<p>    return len(lst) == 0<\/p>\n<p>my_list = []<\/p>\n<p>if is_list_empty(my_list):<\/p>\n<p>    print(&quot;\u5217\u8868\u4e3a\u7a7a&quot;)<\/p>\n<p>else:<\/p>\n<p>    print(&quot;\u5217\u8868\u4e0d\u4e3a\u7a7a&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u81ea\u5b9a\u4e49\u51fd\u6570\u53ef\u4ee5\u5c01\u88c5\u5224\u65ad\u903b\u8f91\uff0c\u65b9\u4fbf\u5728\u591a\u4e2a\u5730\u65b9\u8c03\u7528\u3002<\/p>\n<\/p>\n<p><h3>\u4e03\u3001\u7ed3\u5408\u5176\u4ed6\u6570\u636e\u7ed3\u6784<\/h3>\n<\/p>\n<p><p>\u5728\u67d0\u4e9b\u590d\u6742\u5e94\u7528\u4e2d\uff0c\u5217\u8868\u53ef\u80fd\u5d4c\u5957\u5728\u5176\u4ed6\u6570\u636e\u7ed3\u6784\u4e2d\u3002\u6b64\u65f6\u53ef\u4ee5\u7ed3\u5408\u5176\u4ed6\u6570\u636e\u7ed3\u6784\u7684\u7279\u6027\u6765\u5224\u65ad\u5217\u8868\u662f\u5426\u4e3a\u7a7a\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">data = {&quot;key&quot;: []}<\/p>\n<p>if not data[&quot;key&quot;]:<\/p>\n<p>    print(&quot;\u5217\u8868\u4e3a\u7a7a&quot;)<\/p>\n<p>else:<\/p>\n<p>    print(&quot;\u5217\u8868\u4e0d\u4e3a\u7a7a&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u79cd\u65b9\u6cd5\u9002\u5408\u5728\u5904\u7406\u5d4c\u5957\u6570\u636e\u7ed3\u6784\u65f6\u4f7f\u7528\u3002<\/p>\n<\/p>\n<p><h3>\u516b\u3001\u7ed3\u5408\u5f02\u5e38\u5904\u7406<\/h3>\n<\/p>\n<p><p>\u5728\u67d0\u4e9b\u5e94\u7528\u573a\u666f\u4e2d\uff0c\u53ef\u80fd\u9700\u8981\u7ed3\u5408\u5f02\u5e38\u5904\u7406\u673a\u5236\u6765\u5224\u65ad\u5217\u8868\u662f\u5426\u4e3a\u7a7a\u3002\u4f8b\u5982\uff0c\u5728\u5904\u7406\u6587\u4ef6\u8bfb\u5199\u6216\u7f51\u7edc\u8bf7\u6c42\u65f6\uff0c\u53ef\u4ee5\u7ed3\u5408\u5f02\u5e38\u5904\u7406\u6765\u5224\u65ad\u5217\u8868\u7684\u72b6\u6001\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">my_list = []<\/p>\n<p>try:<\/p>\n<p>    if len(my_list) == 0:<\/p>\n<p>        r<a href=\"https:\/\/docs.pingcode.com\/blog\/59162.html\" target=\"_blank\">AI<\/a>se ValueError(&quot;\u5217\u8868\u4e3a\u7a7a&quot;)<\/p>\n<p>except ValueError as e:<\/p>\n<p>    print(e)<\/p>\n<p>else:<\/p>\n<p>    print(&quot;\u5217\u8868\u4e0d\u4e3a\u7a7a&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u79cd\u65b9\u6cd5\u53ef\u4ee5\u63d0\u9ad8\u4ee3\u7801\u7684\u9c81\u68d2\u6027\uff0c\u9002\u5408\u5728\u590d\u6742\u5e94\u7528\u4e2d\u4f7f\u7528\u3002<\/p>\n<\/p>\n<p><h3>\u4e5d\u3001\u4f7f\u7528\u7b2c\u4e09\u65b9\u5e93<\/h3>\n<\/p>\n<p><p>\u5728\u67d0\u4e9b\u9ad8\u7ea7\u5e94\u7528\u4e2d\uff0c\u53ef\u4ee5\u4f7f\u7528\u7b2c\u4e09\u65b9\u5e93\u6765\u5224\u65ad\u5217\u8868\u662f\u5426\u4e3a\u7a7a\u3002\u6bd4\u5982\u5728\u6570\u636e\u5206\u6790\u6216<a href=\"https:\/\/docs.pingcode.com\/ask\/59192.html\" target=\"_blank\">\u673a\u5668\u5b66\u4e60<\/a>\u4e2d\uff0c\u53ef\u4ee5\u4f7f\u7528Pandas\u5e93\u6765\u5904\u7406\u5217\u8868\u548c\u6570\u636e\u6846\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import pandas as pd<\/p>\n<p>my_list = []<\/p>\n<p>if pd.Series(my_list).empty:<\/p>\n<p>    print(&quot;\u5217\u8868\u4e3a\u7a7a&quot;)<\/p>\n<p>else:<\/p>\n<p>    print(&quot;\u5217\u8868\u4e0d\u4e3a\u7a7a&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u79cd\u65b9\u6cd5\u9002\u5408\u5728\u4f7f\u7528\u7b2c\u4e09\u65b9\u5e93\u65f6\u4f7f\u7528\u3002<\/p>\n<\/p>\n<p><h3>\u5341\u3001\u7ed3\u5408\u6761\u4ef6\u8868\u8fbe\u5f0f<\/h3>\n<\/p>\n<p><p>\u5728\u67d0\u4e9b\u60c5\u51b5\u4e0b\uff0c\u53ef\u4ee5\u7ed3\u5408\u6761\u4ef6\u8868\u8fbe\u5f0f\u6765\u5224\u65ad\u5217\u8868\u662f\u5426\u4e3a\u7a7a\u3002\u6761\u4ef6\u8868\u8fbe\u5f0f\u53ef\u4ee5\u63d0\u9ad8\u4ee3\u7801\u7684\u7b80\u6d01\u6027\u548c\u53ef\u8bfb\u6027\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">my_list = []<\/p>\n<p>result = &quot;\u5217\u8868\u4e3a\u7a7a&quot; if not my_list else &quot;\u5217\u8868\u4e0d\u4e3a\u7a7a&quot;<\/p>\n<p>print(result)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u79cd\u65b9\u6cd5\u9002\u5408\u5728\u9700\u8981\u7b80\u6d01\u4ee3\u7801\u65f6\u4f7f\u7528\u3002<\/p>\n<\/p>\n<p><h3>\u603b\u7ed3<\/h3>\n<\/p>\n<p><p>\u5224\u65ad\u4e00\u4e2a\u5217\u8868\u662f\u5426\u4e3a\u7a7a\u5728Python\u7f16\u7a0b\u4e2d\u662f\u975e\u5e38\u5e38\u89c1\u7684\u64cd\u4f5c\u3002\u901a\u8fc7<strong>\u76f4\u63a5\u5224\u65ad\u957f\u5ea6\u3001\u4f7f\u7528\u5e03\u5c14\u503c\u3001try-except\u5757<\/strong>\u7b49\u65b9\u6cd5\uff0c\u53ef\u4ee5\u7075\u6d3b\u5730\u5224\u65ad\u5217\u8868\u7684\u72b6\u6001\u3002\u7ed3\u5408\u5176\u4ed6\u6761\u4ef6\u3001\u81ea\u5b9a\u4e49\u51fd\u6570\u3001\u5f02\u5e38\u5904\u7406\u3001\u7b2c\u4e09\u65b9\u5e93\u7b49\u65b9\u6cd5\uff0c\u53ef\u4ee5\u8fdb\u4e00\u6b65\u63d0\u9ad8\u4ee3\u7801\u7684\u7075\u6d3b\u6027\u548c\u9002\u5e94\u6027\u3002\u65e0\u8bba\u662f\u5728\u7b80\u5355\u7684\u811a\u672c\u4e2d\uff0c\u8fd8\u662f\u5728\u590d\u6742\u7684\u5e94\u7528\u4e2d\uff0c\u90fd\u53ef\u4ee5\u6839\u636e\u5177\u4f53\u9700\u6c42\u9009\u62e9\u5408\u9002\u7684\u65b9\u6cd5\u6765\u5224\u65ad\u5217\u8868\u662f\u5426\u4e3a\u7a7a\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u5728Python\u4e2d\u68c0\u67e5\u4e00\u4e2a\u5217\u8868\u662f\u5426\u4e3a\u7a7a\uff1f<\/strong><br \/>\u5728Python\u4e2d\uff0c\u53ef\u4ee5\u901a\u8fc7\u7b80\u5355\u7684\u6761\u4ef6\u5224\u65ad\u6765\u68c0\u67e5\u4e00\u4e2a\u5217\u8868\u662f\u5426\u4e3a\u7a7a\u3002\u4f7f\u7528<code>if not my_list:<\/code>\u8bed\u53e5\uff0c\u53ef\u4ee5\u76f4\u63a5\u5224\u65ad\u5217\u8868<code>my_list<\/code>\u662f\u5426\u4e3a\u5047\u503c\u3002\u5982\u679c\u5217\u8868\u4e3a\u7a7a\uff0c\u6761\u4ef6\u4e3a\u771f\uff0c\u60a8\u53ef\u4ee5\u5728\u6b64\u5904\u6267\u884c\u76f8\u5e94\u7684\u64cd\u4f5c\u3002<\/p>\n<p><strong>\u5982\u679c\u5217\u8868\u4e3a\u7a7a\uff0c\u6211\u5e94\u8be5\u5982\u4f55\u5904\u7406\uff1f<\/strong><br \/>\u5904\u7406\u7a7a\u5217\u8868\u65f6\uff0c\u60a8\u53ef\u4ee5\u9009\u62e9\u7ed9\u51fa\u9ed8\u8ba4\u503c\u3001\u8fd4\u56de\u9519\u8bef\u6d88\u606f\u6216\u6267\u884c\u5176\u4ed6\u903b\u8f91\u3002\u4f8b\u5982\uff0c\u60a8\u53ef\u4ee5\u5728\u68c0\u67e5\u5230\u5217\u8868\u4e3a\u7a7a\u65f6\uff0c\u8fd4\u56de\u4e00\u4e2a\u63d0\u793a\u7528\u6237\u7684\u6d88\u606f\uff0c\u6216\u8005\u6839\u636e\u7a0b\u5e8f\u9700\u6c42\u8fd4\u56de\u4e00\u4e2a\u7a7a\u5b57\u5178\u6216\u5217\u8868\uff0c\u786e\u4fdd\u540e\u7eed\u4ee3\u7801\u7684\u6b63\u5e38\u8fd0\u884c\u3002<\/p>\n<p><strong>\u662f\u5426\u53ef\u4ee5\u7528len()\u51fd\u6570\u6765\u5224\u65ad\u5217\u8868\u662f\u5426\u4e3a\u7a7a\uff1f<\/strong><br \/>\u662f\u7684\uff0c\u4f7f\u7528<code>len()<\/code>\u51fd\u6570\u4e5f\u662f\u4e00\u79cd\u6709\u6548\u7684\u68c0\u67e5\u65b9\u6cd5\u3002\u901a\u8fc7<code>len(my_list) == 0<\/code>\u6765\u5224\u65ad\u5217\u8868\u662f\u5426\u4e3a\u7a7a\u3002\u5982\u679c\u8fd4\u56de0\uff0c\u8bf4\u660e\u5217\u8868\u662f\u7a7a\u7684\u3002\u8fd9\u79cd\u65b9\u6cd5\u5728\u67d0\u4e9b\u60c5\u51b5\u4e0b\u53ef\u80fd\u66f4\u76f4\u89c2\uff0c\u5c24\u5176\u662f\u5f53\u60a8\u9700\u8981\u5728\u6761\u4ef6\u4e2d\u4f7f\u7528\u957f\u5ea6\u65f6\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u4f7f\u7528Python\u5224\u65ad\u4e00\u4e2a\u5217\u8868\u662f\u5426\u4e3a\u7a7a\u6709\u591a\u79cd\u65b9\u6cd5\uff0c\u5305\u62ec\u76f4\u63a5\u5224\u65ad\u5217\u8868\u7684\u957f\u5ea6\u3001\u4f7f\u7528\u5e03\u5c14\u503c\u5224\u65ad\u3001\u4ee5\u53ca\u4f7f\u7528try-exc [&hellip;]","protected":false},"author":3,"featured_media":1102393,"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\/1102384"}],"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=1102384"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1102384\/revisions"}],"predecessor-version":[{"id":1102396,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1102384\/revisions\/1102396"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/1102393"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=1102384"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=1102384"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=1102384"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}