{"id":970445,"date":"2024-12-27T05:26:14","date_gmt":"2024-12-26T21:26:14","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/970445.html"},"modified":"2024-12-27T05:26:16","modified_gmt":"2024-12-26T21:26:16","slug":"python%e5%a6%82%e4%bd%95%e7%a7%bb%e9%99%a4%e6%9f%90%e7%b1%bb%e5%80%bc","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/970445.html","title":{"rendered":"python\u5982\u4f55\u79fb\u9664\u67d0\u7c7b\u503c"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/24193759\/ad7ed9b1-455f-44a7-a701-262408db8c0e.webp\" alt=\"python\u5982\u4f55\u79fb\u9664\u67d0\u7c7b\u503c\" \/><\/p>\n<p><p> <strong>\u5728Python\u4e2d\u79fb\u9664\u67d0\u7c7b\u503c\u7684\u65b9\u6cd5\u6709\uff1a\u4f7f\u7528\u5217\u8868\u89e3\u6790\u3001filter\u51fd\u6570\u3001\u5faa\u73af\u904d\u5386\u3001\u96c6\u5408\u64cd\u4f5c\u3002<\/strong>\u5176\u4e2d\uff0c\u5217\u8868\u89e3\u6790\u662f\u4e00\u79cd\u7b80\u6d01\u9ad8\u6548\u7684\u65b9\u6cd5\uff0c\u9002\u5408\u5904\u7406\u7b80\u5355\u7684\u6761\u4ef6\u8fc7\u6ee4\u3002\u4e0b\u9762\uff0c\u6211\u5c06\u8be6\u7ec6\u4ecb\u7ecd\u5982\u4f55\u4f7f\u7528\u8fd9\u51e0\u79cd\u65b9\u6cd5\u6765\u79fb\u9664Python\u6570\u636e\u7ed3\u6784\u4e2d\u67d0\u7c7b\u503c\u3002<\/p>\n<\/p>\n<hr>\n<p><h2>\u4e00\u3001\u5217\u8868\u89e3\u6790<\/h2>\n<\/p>\n<p><p>\u5217\u8868\u89e3\u6790\u662fPython\u4e2d\u975e\u5e38\u5f3a\u5927\u7684\u5de5\u5177\uff0c\u7528\u4e8e\u4ece\u4e00\u4e2a\u5217\u8868\u4e2d\u751f\u6210\u53e6\u4e00\u4e2a\u5217\u8868\u3002\u901a\u8fc7\u5217\u8868\u89e3\u6790\uff0c\u53ef\u4ee5\u5f88\u65b9\u4fbf\u5730\u79fb\u9664\u4e0d\u9700\u8981\u7684\u503c\u3002<\/p>\n<\/p>\n<p><h3>1. \u79fb\u9664\u5217\u8868\u4e2d\u7684\u67d0\u7c7b\u503c<\/h3>\n<\/p>\n<p><p>\u5047\u8bbe\u6211\u4eec\u6709\u4e00\u4e2a\u5217\u8868\uff0c\u9700\u8981\u79fb\u9664\u5176\u4e2d\u6240\u6709\u7684\u67d0\u4e2a\u7279\u5b9a\u503c\u3002\u6211\u4eec\u53ef\u4ee5\u4f7f\u7528\u5217\u8868\u89e3\u6790\u6765\u5b9e\u73b0\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">original_list = [1, 2, 3, 4, 5, 3, 3]<\/p>\n<p>value_to_remove = 3<\/p>\n<p>filtered_list = [value for value in original_list if value != value_to_remove]<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u4f8b\u5b50\u4e2d\uff0c\u6211\u4eec\u521b\u5efa\u4e86\u4e00\u4e2a\u65b0\u7684\u5217\u8868<code>filtered_list<\/code>\uff0c\u53ea\u5305\u542b\u539f\u59cb\u5217\u8868\u4e2d\u4e0d\u7b49\u4e8e<code>value_to_remove<\/code>\u7684\u5143\u7d20\u3002<\/p>\n<\/p>\n<p><h3>2. \u79fb\u9664\u5b57\u5178\u4e2d\u7684\u67d0\u7c7b\u503c<\/h3>\n<\/p>\n<p><p>\u5bf9\u4e8e\u5b57\u5178\uff0c\u53ef\u4ee5\u4f7f\u7528\u5b57\u5178\u89e3\u6790\u6765\u79fb\u9664\u67d0\u7c7b\u503c\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">original_dict = {&#39;a&#39;: 1, &#39;b&#39;: 2, &#39;c&#39;: 3, &#39;d&#39;: 3}<\/p>\n<p>value_to_remove = 3<\/p>\n<p>filtered_dict = {key: value for key, value in original_dict.items() if value != value_to_remove}<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u901a\u8fc7\u8fd9\u79cd\u65b9\u5f0f\uff0c\u6211\u4eec\u53ef\u4ee5\u5f97\u5230\u4e00\u4e2a\u65b0\u5b57\u5178\uff0c\u79fb\u9664\u4e86\u6240\u6709\u503c\u7b49\u4e8e<code>value_to_remove<\/code>\u7684\u952e\u503c\u5bf9\u3002<\/p>\n<\/p>\n<hr>\n<p><h2>\u4e8c\u3001filter\u51fd\u6570<\/h2>\n<\/p>\n<p><p><code>filter<\/code>\u51fd\u6570\u662fPython\u7684\u5185\u7f6e\u51fd\u6570\uff0c\u4e13\u95e8\u7528\u4e8e\u8fc7\u6ee4\u5e8f\u5217\u3002\u5b83\u63a5\u6536\u4e24\u4e2a\u53c2\u6570\uff0c\u4e00\u4e2a\u662f\u51fd\u6570\uff0c\u4e00\u4e2a\u662f\u5e8f\u5217\u3002<\/p>\n<\/p>\n<p><h3>1. \u4f7f\u7528filter\u8fc7\u6ee4\u5217\u8868<\/h3>\n<\/p>\n<p><pre><code class=\"language-python\">original_list = [1, 2, 3, 4, 5, 3, 3]<\/p>\n<p>value_to_remove = 3<\/p>\n<p>filtered_list = list(filter(lambda x: x != value_to_remove, original_list))<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u4f8b\u5b50\u4e2d\uff0c<code>filter<\/code>\u51fd\u6570\u4f1a\u904d\u5386<code>original_list<\/code>\uff0c\u5e76\u5bf9\u6bcf\u4e2a\u5143\u7d20\u8c03\u7528\u63d0\u4f9b\u7684lambda\u51fd\u6570\u3002\u5982\u679c\u51fd\u6570\u8fd4\u56deTrue\uff0c\u5219\u8be5\u5143\u7d20\u4f1a\u88ab\u4fdd\u7559\u5728\u65b0\u5217\u8868\u4e2d\u3002<\/p>\n<\/p>\n<p><h3>2. \u4f7f\u7528filter\u8fc7\u6ee4\u5176\u4ed6\u53ef\u8fed\u4ee3\u5bf9\u8c61<\/h3>\n<\/p>\n<p><p><code>filter<\/code>\u51fd\u6570\u4e0d\u4ec5\u4ec5\u53ef\u4ee5\u7528\u4e8e\u5217\u8868\uff0c\u8fd8\u53ef\u4ee5\u7528\u4e8e\u5176\u4ed6\u4efb\u4f55\u53ef\u8fed\u4ee3\u5bf9\u8c61\uff0c\u6bd4\u5982\u5143\u7ec4\u6216\u96c6\u5408\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">original_tuple = (1, 2, 3, 3, 4)<\/p>\n<p>value_to_remove = 3<\/p>\n<p>filtered_tuple = tuple(filter(lambda x: x != value_to_remove, original_tuple))<\/p>\n<p><\/code><\/pre>\n<\/p>\n<hr>\n<p><h2>\u4e09\u3001\u5faa\u73af\u904d\u5386<\/h2>\n<\/p>\n<p><p>\u867d\u7136\u5217\u8868\u89e3\u6790\u548c<code>filter<\/code>\u51fd\u6570\u90fd\u5f88\u7b80\u6d01\uff0c\u4f46\u5728\u67d0\u4e9b\u60c5\u51b5\u4e0b\uff0c\u4f7f\u7528\u5faa\u73af\u904d\u5386\u53ef\u80fd\u66f4\u76f4\u89c2\uff0c\u5c24\u5176\u662f\u9700\u8981\u590d\u6742\u7684\u6761\u4ef6\u5224\u65ad\u65f6\u3002<\/p>\n<\/p>\n<p><h3>1. \u4f7f\u7528for\u5faa\u73af\u904d\u5386\u5217\u8868<\/h3>\n<\/p>\n<p><pre><code class=\"language-python\">original_list = [1, 2, 3, 4, 5, 3, 3]<\/p>\n<p>value_to_remove = 3<\/p>\n<p>filtered_list = []<\/p>\n<p>for value in original_list:<\/p>\n<p>    if value != value_to_remove:<\/p>\n<p>        filtered_list.append(value)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u901a\u8fc7\u8fd9\u79cd\u65b9\u5f0f\uff0c\u6211\u4eec\u53ef\u4ee5\u624b\u52a8\u68c0\u67e5\u6bcf\u4e2a\u5143\u7d20\uff0c\u5e76\u5c06\u4e0d\u7b26\u5408\u6761\u4ef6\u7684\u5143\u7d20\u6dfb\u52a0\u5230\u65b0\u5217\u8868\u4e2d\u3002<\/p>\n<\/p>\n<p><h3>2. \u4f7f\u7528while\u5faa\u73af\u904d\u5386\u5217\u8868<\/h3>\n<\/p>\n<p><p>\u5728\u67d0\u4e9b\u60c5\u51b5\u4e0b\uff0c\u4f7f\u7528<code>while<\/code>\u5faa\u73af\u4e5f\u53ef\u4ee5\u5b8c\u6210\u540c\u6837\u7684\u4efb\u52a1\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">original_list = [1, 2, 3, 4, 5, 3, 3]<\/p>\n<p>value_to_remove = 3<\/p>\n<p>i = 0<\/p>\n<p>while i &lt; len(original_list):<\/p>\n<p>    if original_list[i] == value_to_remove:<\/p>\n<p>        original_list.pop(i)<\/p>\n<p>    else:<\/p>\n<p>        i += 1<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u9700\u8981\u6ce8\u610f\u7684\u662f\uff0c\u4f7f\u7528<code>while<\/code>\u5faa\u73af\u65f6\uff0c\u9700\u8981\u5c0f\u5fc3\u7ef4\u62a4\u7d22\u5f15\u503c\uff0c\u4ee5\u9632\u6b62\u5728\u79fb\u9664\u5143\u7d20\u65f6\u4ea7\u751f\u9519\u8bef\u3002<\/p>\n<\/p>\n<hr>\n<p><h2>\u56db\u3001\u96c6\u5408\u64cd\u4f5c<\/h2>\n<\/p>\n<p><p>\u96c6\u5408\u662fPython\u4e2d\u7684\u4e00\u79cd\u6570\u636e\u7ed3\u6784\uff0c\u5177\u6709\u53bb\u91cd\u7279\u6027\u3002\u6211\u4eec\u53ef\u4ee5\u5229\u7528\u96c6\u5408\u6765\u79fb\u9664\u67d0\u7c7b\u503c\u3002<\/p>\n<\/p>\n<p><h3>1. \u4f7f\u7528\u96c6\u5408\u53bb\u91cd<\/h3>\n<\/p>\n<p><pre><code class=\"language-python\">original_list = [1, 2, 3, 4, 5, 3, 3]<\/p>\n<p>value_to_remove = 3<\/p>\n<p>filtered_set = set(original_list)<\/p>\n<p>filtered_set.discard(value_to_remove)<\/p>\n<p>filtered_list = list(filtered_set)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u901a\u8fc7\u5c06\u5217\u8868\u8f6c\u6362\u4e3a\u96c6\u5408\uff0c\u6211\u4eec\u53ef\u4ee5\u81ea\u52a8\u53bb\u9664\u91cd\u590d\u503c\u3002\u7136\u540e\uff0c\u6211\u4eec\u53ef\u4ee5\u4f7f\u7528<code>discard<\/code>\u65b9\u6cd5\u79fb\u9664\u4e0d\u9700\u8981\u7684\u5143\u7d20\u3002<\/p>\n<\/p>\n<p><h3>2. \u96c6\u5408\u4e0e\u5217\u8868\u7ed3\u5408\u4f7f\u7528<\/h3>\n<\/p>\n<p><p>\u6709\u65f6\uff0c\u6211\u4eec\u5e0c\u671b\u4fdd\u7559\u5217\u8868\u7684\u987a\u5e8f\uff0c\u4f46\u4ecd\u7136\u9700\u8981\u5229\u7528\u96c6\u5408\u7684\u53bb\u91cd\u7279\u6027\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">original_list = [1, 2, 3, 4, 5, 3, 3]<\/p>\n<p>value_to_remove = 3<\/p>\n<p>filtered_list = list(dict.fromkeys([value for value in original_list if value != value_to_remove]))<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u901a\u8fc7\u8fd9\u79cd\u65b9\u5f0f\uff0c\u6211\u4eec\u53ef\u4ee5\u4fdd\u7559\u5217\u8868\u7684\u987a\u5e8f\uff0c\u5e76\u4e14\u53bb\u9664\u91cd\u590d\u7684\u5143\u7d20\u3002<\/p>\n<\/p>\n<hr>\n<p><h2>\u4e94\u3001\u7efc\u5408\u5e94\u7528\u4e0e\u6027\u80fd\u8003\u8651<\/h2>\n<\/p>\n<p><p>\u5728\u9009\u62e9\u79fb\u9664\u67d0\u7c7b\u503c\u7684\u65b9\u6cd5\u65f6\uff0c\u9700\u8981\u8003\u8651\u5230\u4ee3\u7801\u7684\u53ef\u8bfb\u6027\u3001\u6027\u80fd\u4ee5\u53ca\u5177\u4f53\u5e94\u7528\u573a\u666f\u3002<\/p>\n<\/p>\n<p><h3>1. \u6027\u80fd\u6bd4\u8f83<\/h3>\n<\/p>\n<p><p>\u5bf9\u4e8e\u5c0f\u578b\u6570\u636e\u96c6\uff0c\u51e0\u79cd\u65b9\u6cd5\u5728\u6027\u80fd\u4e0a\u7684\u5dee\u5f02\u53ef\u80fd\u4e0d\u660e\u663e\u3002\u7136\u800c\uff0c\u5bf9\u4e8e\u5927\u578b\u6570\u636e\u96c6\uff0c\u65b9\u6cd5\u7684\u9009\u62e9\u53ef\u80fd\u4f1a\u5f71\u54cd\u7a0b\u5e8f\u7684\u8fd0\u884c\u6548\u7387\u3002<\/p>\n<\/p>\n<ul>\n<li><strong>\u5217\u8868\u89e3\u6790<\/strong>\uff1a\u901a\u5e38\u662f\u6700\u7b80\u6d01\u548c\u5feb\u901f\u7684\u65b9\u5f0f\uff0c\u9002\u5408\u5927\u591a\u6570\u60c5\u51b5\u3002<\/li>\n<li><strong>filter\u51fd\u6570<\/strong>\uff1a\u6027\u80fd\u4e0e\u5217\u8868\u89e3\u6790\u76f8\u4f3c\uff0c\u9009\u62e9\u4f7f\u7528\u53d6\u51b3\u4e8e\u4e2a\u4eba\u559c\u597d\u3002<\/li>\n<li><strong>\u5faa\u73af\u904d\u5386<\/strong>\uff1a\u5728\u9700\u8981\u590d\u6742\u6761\u4ef6\u65f6\uff0c\u53ef\u80fd\u662f\u6700\u7075\u6d3b\u7684\u9009\u62e9\u3002<\/li>\n<li><strong>\u96c6\u5408\u64cd\u4f5c<\/strong>\uff1a\u9002\u7528\u4e8e\u9700\u8981\u53bb\u91cd\u7684\u60c5\u51b5\uff0c\u4f46\u4f1a\u7834\u574f\u5143\u7d20\u7684\u987a\u5e8f\u3002<\/li>\n<\/ul>\n<p><h3>2. \u5b9e\u9645\u5e94\u7528\u4e2d\u7684\u9009\u62e9<\/h3>\n<\/p>\n<p><p>\u5728\u5b9e\u9645\u5e94\u7528\u4e2d\uff0c\u9009\u62e9\u54ea\u79cd\u65b9\u6cd5\u53d6\u51b3\u4e8e\u5177\u4f53\u9700\u6c42\uff1a<\/p>\n<\/p>\n<ul>\n<li><strong>\u7b80\u5355\u6761\u4ef6\u79fb\u9664<\/strong>\uff1a\u5217\u8868\u89e3\u6790\u6216<code>filter<\/code>\u51fd\u6570\u3002<\/li>\n<li><strong>\u590d\u6742\u6761\u4ef6\u5224\u65ad<\/strong>\uff1a\u5faa\u73af\u904d\u5386\u3002<\/li>\n<li><strong>\u53bb\u91cd\u5e76\u79fb\u9664\u7279\u5b9a\u5143\u7d20<\/strong>\uff1a\u96c6\u5408\u64cd\u4f5c\u3002<\/li>\n<\/ul>\n<p><h3>3. \u5b9e\u9645\u6848\u4f8b\u5206\u6790<\/h3>\n<\/p>\n<p><p>\u8003\u8651\u4e00\u4e2a\u5b9e\u9645\u6848\u4f8b\uff1a\u6211\u4eec\u6709\u4e00\u4e2a\u7528\u6237\u8bc4\u8bba\u5217\u8868\uff0c\u9700\u8981\u79fb\u9664\u6240\u6709\u5305\u542b\u7279\u5b9a\u5173\u952e\u8bcd\u7684\u8bc4\u8bba\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">comments = [&quot;I love this product&quot;, &quot;This is terrible&quot;, &quot;Great value for money&quot;, &quot;Awful experience&quot;]<\/p>\n<p>keyword_to_remove = &quot;terrible&quot;<\/p>\n<p>filtered_comments = [comment for comment in comments if keyword_to_remove not in comment]<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u901a\u8fc7\u8fd9\u79cd\u65b9\u6cd5\uff0c\u6211\u4eec\u53ef\u4ee5\u6709\u6548\u5730\u8fc7\u6ee4\u6389\u5305\u542b\u8d1f\u9762\u5173\u952e\u8bcd\u7684\u8bc4\u8bba\u3002<\/p>\n<\/p>\n<hr>\n<p><p>\u5728Python\u4e2d\uff0c\u79fb\u9664\u67d0\u7c7b\u503c\u7684\u65b9\u6cd5\u591a\u79cd\u591a\u6837\uff0c\u9009\u62e9\u5408\u9002\u7684\u65b9\u6cd5\u53ef\u4ee5\u63d0\u5347\u4ee3\u7801\u7684\u53ef\u8bfb\u6027\u548c\u6027\u80fd\u3002\u5e0c\u671b\u901a\u8fc7\u672c\u6587\u7684\u4ecb\u7ecd\uff0c\u60a8\u80fd\u591f\u66f4\u597d\u5730\u7406\u89e3\u548c\u5e94\u7528\u8fd9\u4e9b\u6280\u672f\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u5728Python\u4e2d\u79fb\u9664\u5217\u8868\u4e2d\u7684\u7279\u5b9a\u503c\uff1f<\/strong><br \/>\u5728Python\u4e2d\uff0c\u53ef\u4ee5\u4f7f\u7528\u5217\u8868\u7684 <code>remove()<\/code> \u65b9\u6cd5\u6765\u79fb\u9664\u7279\u5b9a\u503c\u3002\u5982\u679c\u60a8\u9700\u8981\u79fb\u9664\u6240\u6709\u51fa\u73b0\u7684\u8be5\u503c\uff0c\u53ef\u4ee5\u4f7f\u7528\u5217\u8868\u63a8\u5bfc\u5f0f\u521b\u5efa\u4e00\u4e2a\u65b0\u5217\u8868\uff0c\u5176\u4e2d\u4e0d\u5305\u542b\u8be5\u503c\u3002\u4f8b\u5982\uff0c<code>my_list = [x for x in my_list if x != value_to_remove]<\/code> \u5c06\u79fb\u9664\u6240\u6709\u7b49\u4e8e <code>value_to_remove<\/code> \u7684\u5143\u7d20\u3002<\/p>\n<p><strong>\u5728\u5b57\u5178\u4e2d\u5982\u4f55\u5220\u9664\u7279\u5b9a\u7684\u952e\u53ca\u5176\u5bf9\u5e94\u7684\u503c\uff1f<\/strong><br \/>\u53ef\u4ee5\u4f7f\u7528 <code>del<\/code> \u8bed\u53e5\u6216 <code>pop()<\/code> \u65b9\u6cd5\u6765\u5220\u9664\u5b57\u5178\u4e2d\u7684\u7279\u5b9a\u952e\u3002\u4f8b\u5982\uff0c<code>del my_dict[key_to_remove]<\/code> \u4f1a\u5220\u9664\u6307\u5b9a\u7684\u952e\u53ca\u5176\u5bf9\u5e94\u7684\u503c\uff0c\u4f7f\u7528 <code>my_dict.pop(key_to_remove)<\/code> \u4e5f\u80fd\u8fbe\u5230\u76f8\u540c\u6548\u679c\uff0c\u540c\u65f6\u8fd4\u56de\u88ab\u5220\u9664\u7684\u503c\u3002<\/p>\n<p><strong>\u5982\u4f55\u5728Python\u4e2d\u4ece\u96c6\u5408\u4e2d\u79fb\u9664\u7279\u5b9a\u5143\u7d20\uff1f<\/strong><br \/>\u5728\u96c6\u5408\u4e2d\uff0c\u53ef\u4ee5\u4f7f\u7528 <code>remove()<\/code> \u6216 <code>discard()<\/code> \u65b9\u6cd5\u6765\u5220\u9664\u7279\u5b9a\u5143\u7d20\u3002<code>remove()<\/code> \u65b9\u6cd5\u5728\u5143\u7d20\u4e0d\u5b58\u5728\u65f6\u4f1a\u5f15\u53d1 <code>KeyError<\/code>\uff0c\u800c <code>discard()<\/code> \u65b9\u6cd5\u5219\u4e0d\u4f1a\u5f15\u53d1\u9519\u8bef\u3002\u56e0\u6b64\uff0c\u5982\u679c\u60a8\u4e0d\u786e\u5b9a\u5143\u7d20\u662f\u5426\u5b58\u5728\uff0c\u4f7f\u7528 <code>discard()<\/code> \u66f4\u4e3a\u5b89\u5168\uff0c\u4f8b\u5982 <code>my_set.discard(value_to_remove)<\/code>\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u5728Python\u4e2d\u79fb\u9664\u67d0\u7c7b\u503c\u7684\u65b9\u6cd5\u6709\uff1a\u4f7f\u7528\u5217\u8868\u89e3\u6790\u3001filter\u51fd\u6570\u3001\u5faa\u73af\u904d\u5386\u3001\u96c6\u5408\u64cd\u4f5c\u3002\u5176\u4e2d\uff0c\u5217\u8868\u89e3\u6790\u662f\u4e00\u79cd\u7b80 [&hellip;]","protected":false},"author":3,"featured_media":970449,"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\/970445"}],"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=970445"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/970445\/revisions"}],"predecessor-version":[{"id":970450,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/970445\/revisions\/970450"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/970449"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=970445"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=970445"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=970445"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}