{"id":1185334,"date":"2025-01-15T19:38:45","date_gmt":"2025-01-15T11:38:45","guid":{"rendered":""},"modified":"2025-01-15T19:38:52","modified_gmt":"2025-01-15T11:38:52","slug":"python%e4%b8%ad%e5%a6%82%e4%bd%95%e5%88%9b%e5%bb%ba%e6%96%b0%e5%88%97%e8%a1%a8","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1185334.html","title":{"rendered":"python\u4e2d\u5982\u4f55\u521b\u5efa\u65b0\u5217\u8868"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/25134509\/6f4f3e05-2317-4fe3-bba1-6d1071d3db2d.webp\" alt=\"python\u4e2d\u5982\u4f55\u521b\u5efa\u65b0\u5217\u8868\" \/><\/p>\n<p><p> <strong>\u5728Python\u4e2d\uff0c\u521b\u5efa\u65b0\u5217\u8868\u53ef\u4ee5\u901a\u8fc7\u591a\u79cd\u65b9\u5f0f\u5b9e\u73b0\uff0c\u5305\u62ec\u4f7f\u7528\u65b9\u62ec\u53f7\u3001\u5217\u8868\u63a8\u5bfc\u5f0f\u3001\u5185\u7f6e\u51fd\u6570\u7b49\u3002\u6700\u5e38\u7528\u7684\u65b9\u5f0f\u662f\u4f7f\u7528\u65b9\u62ec\u53f7\u548c\u5217\u8868\u63a8\u5bfc\u5f0f\u3002<\/strong> \u4f8b\u5982\uff0c\u6211\u4eec\u53ef\u4ee5\u901a\u8fc7\u65b9\u62ec\u53f7\u76f4\u63a5\u521b\u5efa\u4e00\u4e2a\u5305\u542b\u7279\u5b9a\u5143\u7d20\u7684\u5217\u8868\uff0c\u6216\u8005\u901a\u8fc7\u5217\u8868\u63a8\u5bfc\u5f0f\u751f\u6210\u4e00\u4e2a\u7ecf\u8fc7\u7279\u5b9a\u89c4\u5219\u5904\u7406\u7684\u5217\u8868\u3002\u4e0b\u9762\u5c06\u8be6\u7ec6\u4ecb\u7ecd\u51e0\u79cd\u5e38\u89c1\u7684\u521b\u5efa\u65b0\u5217\u8868\u7684\u65b9\u6cd5\uff0c\u5e76\u63a2\u8ba8\u5b83\u4eec\u7684\u5177\u4f53\u5e94\u7528\u548c\u4f18\u52bf\u3002<\/p>\n<\/p>\n<p><p><strong>\u4f7f\u7528\u65b9\u62ec\u53f7\u521b\u5efa\u5217\u8868<\/strong><\/p>\n<\/p>\n<p><p>\u4f7f\u7528\u65b9\u62ec\u53f7\u662f\u521b\u5efa\u5217\u8868\u6700\u7b80\u5355\u3001\u6700\u76f4\u63a5\u7684\u65b9\u6cd5\u3002\u901a\u8fc7\u5c06\u5143\u7d20\u653e\u5728\u65b9\u62ec\u53f7\u5185\u5e76\u7528\u9017\u53f7\u5206\u9694\uff0c\u6211\u4eec\u53ef\u4ee5\u8f7b\u677e\u5730\u521b\u5efa\u4e00\u4e2a\u5305\u542b\u591a\u4e2a\u5143\u7d20\u7684\u5217\u8868\u3002\u793a\u4f8b\u5982\u4e0b\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\"># \u521b\u5efa\u4e00\u4e2a\u5305\u542b\u6574\u6570\u7684\u5217\u8868<\/p>\n<p>int_list = [1, 2, 3, 4, 5]<\/p>\n<h2><strong>\u521b\u5efa\u4e00\u4e2a\u5305\u542b\u5b57\u7b26\u4e32\u7684\u5217\u8868<\/strong><\/h2>\n<p>str_list = [&quot;apple&quot;, &quot;banana&quot;, &quot;cherry&quot;]<\/p>\n<h2><strong>\u521b\u5efa\u4e00\u4e2a\u5305\u542b\u6df7\u5408\u7c7b\u578b\u5143\u7d20\u7684\u5217\u8868<\/strong><\/h2>\n<p>mixed_list = [1, &quot;apple&quot;, 3.14, True]<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u901a\u8fc7\u8fd9\u79cd\u65b9\u5f0f\uff0c\u6211\u4eec\u53ef\u4ee5\u5feb\u901f\u521b\u5efa\u4efb\u610f\u7c7b\u578b\u548c\u957f\u5ea6\u7684\u5217\u8868\u3002<\/p>\n<\/p>\n<p><p><strong>\u4f7f\u7528\u5217\u8868\u63a8\u5bfc\u5f0f<\/strong><\/p>\n<\/p>\n<p><p>\u5217\u8868\u63a8\u5bfc\u5f0f\uff08List Comprehension\uff09\u662f\u4e00\u79cd\u7b80\u6d01\u800c\u5f3a\u5927\u7684\u521b\u5efa\u5217\u8868\u7684\u65b9\u6cd5\u3002\u5b83\u5141\u8bb8\u6211\u4eec\u901a\u8fc7\u4e00\u884c\u4ee3\u7801\u751f\u6210\u4e00\u4e2a\u65b0\u7684\u5217\u8868\uff0c\u901a\u5e38\u7528\u4e8e\u6839\u636e\u67d0\u79cd\u89c4\u5219\u5bf9\u73b0\u6709\u5e8f\u5217\u8fdb\u884c\u5904\u7406\u3002\u5217\u8868\u63a8\u5bfc\u5f0f\u7684\u8bed\u6cd5\u5982\u4e0b\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">new_list = [expression for item in iterable if condition]<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u793a\u4f8b\u5982\u4e0b\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\"># \u521b\u5efa\u4e00\u4e2a\u5305\u542b\u4ece1\u523010\u7684\u5e73\u65b9\u6570\u7684\u5217\u8868<\/p>\n<p>squares = [x2 for x in range(1, 11)]<\/p>\n<h2><strong>\u521b\u5efa\u4e00\u4e2a\u5305\u542b\u5076\u6570\u7684\u5217\u8868<\/strong><\/h2>\n<p>evens = [x for x in range(1, 11) if x % 2 == 0]<\/p>\n<h2><strong>\u521b\u5efa\u4e00\u4e2a\u5305\u542b\u5927\u5199\u5b57\u6bcd\u7684\u5217\u8868<\/strong><\/h2>\n<p>uppercase_letters = [char.upper() for char in &quot;hello&quot;]<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5217\u8868\u63a8\u5bfc\u5f0f\u4e0d\u4ec5\u7b80\u6d01\uff0c\u800c\u4e14\u5728\u5904\u7406\u5927\u89c4\u6a21\u6570\u636e\u65f6\u6548\u7387\u8f83\u9ad8\u3002<\/p>\n<\/p>\n<p><p><strong>\u4f7f\u7528\u5185\u7f6e\u51fd\u6570\u521b\u5efa\u5217\u8868<\/strong><\/p>\n<\/p>\n<p><p>Python\u63d0\u4f9b\u4e86\u8bb8\u591a\u5185\u7f6e\u51fd\u6570\uff0c\u53ef\u4ee5\u5e2e\u52a9\u6211\u4eec\u521b\u5efa\u7279\u5b9a\u7c7b\u578b\u7684\u5217\u8868\u3002\u5e38\u7528\u7684\u5185\u7f6e\u51fd\u6570\u5305\u62ec<code>list()<\/code>\u3001<code>range()<\/code>\u3001<code>map()<\/code>\u7b49\u3002\u793a\u4f8b\u5982\u4e0b\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\"># \u4f7f\u7528list()\u51fd\u6570\u5c06\u5176\u4ed6\u53ef\u8fed\u4ee3\u5bf9\u8c61\u8f6c\u6362\u4e3a\u5217\u8868<\/p>\n<p>tuple_data = (1, 2, 3)<\/p>\n<p>list_from_tuple = list(tuple_data)<\/p>\n<h2><strong>\u4f7f\u7528range()\u51fd\u6570\u521b\u5efa\u5305\u542b\u4e00\u5b9a\u8303\u56f4\u5185\u6574\u6570\u7684\u5217\u8868<\/strong><\/h2>\n<p>range_list = list(range(1, 11))<\/p>\n<h2><strong>\u4f7f\u7528map()\u51fd\u6570\u5c06\u51fd\u6570\u5e94\u7528\u4e8e\u53ef\u8fed\u4ee3\u5bf9\u8c61\u7684\u6bcf\u4e2a\u5143\u7d20<\/strong><\/h2>\n<p>numbers = [1, 2, 3, 4, 5]<\/p>\n<p>squared_numbers = list(map(lambda x: x2, numbers))<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u4e9b\u5185\u7f6e\u51fd\u6570\u53ef\u4ee5\u5e2e\u52a9\u6211\u4eec\u9ad8\u6548\u5730\u521b\u5efa\u5404\u79cd\u7c7b\u578b\u7684\u5217\u8868\u3002<\/p>\n<\/p>\n<p><p><strong>\u4f7f\u7528<code>*<\/code>\u64cd\u4f5c\u7b26\u521b\u5efa\u91cd\u590d\u5143\u7d20\u5217\u8868<\/strong><\/p>\n<\/p>\n<p><p>\u5728\u67d0\u4e9b\u60c5\u51b5\u4e0b\uff0c\u6211\u4eec\u9700\u8981\u521b\u5efa\u4e00\u4e2a\u5305\u542b\u91cd\u590d\u5143\u7d20\u7684\u5217\u8868\u3002\u4f7f\u7528<code>*<\/code>\u64cd\u4f5c\u7b26\u53ef\u4ee5\u65b9\u4fbf\u5730\u5b9e\u73b0\u8fd9\u4e00\u70b9\u3002\u793a\u4f8b\u5982\u4e0b\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\"># \u521b\u5efa\u4e00\u4e2a\u5305\u542b10\u4e2a\u96f6\u7684\u5217\u8868<\/p>\n<p>zeros = [0] * 10<\/p>\n<h2><strong>\u521b\u5efa\u4e00\u4e2a\u5305\u542b5\u4e2a\u5b57\u7b26\u4e32&quot;hello&quot;\u7684\u5217\u8868<\/strong><\/h2>\n<p>hellos = [&quot;hello&quot;] * 5<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u79cd\u65b9\u6cd5\u975e\u5e38\u9002\u5408\u9700\u8981\u521d\u59cb\u5316\u56fa\u5b9a\u957f\u5ea6\u5217\u8868\u7684\u573a\u666f\u3002<\/p>\n<\/p>\n<p><p><strong>\u4f7f\u7528<code>append()<\/code>\u65b9\u6cd5\u52a8\u6001\u521b\u5efa\u5217\u8868<\/strong><\/p>\n<\/p>\n<p><p>\u6709\u65f6\u6211\u4eec\u9700\u8981\u6839\u636e\u67d0\u4e9b\u6761\u4ef6\u52a8\u6001\u5730\u5411\u5217\u8868\u4e2d\u6dfb\u52a0\u5143\u7d20\u3002\u53ef\u4ee5\u4f7f\u7528\u5217\u8868\u7684<code>append()<\/code>\u65b9\u6cd5\u9010\u4e2a\u6dfb\u52a0\u5143\u7d20\u6765\u521b\u5efa\u65b0\u5217\u8868\u3002\u793a\u4f8b\u5982\u4e0b\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\"># \u521b\u5efa\u4e00\u4e2a\u7a7a\u5217\u8868<\/p>\n<p>dynamic_list = []<\/p>\n<h2><strong>\u52a8\u6001\u6dfb\u52a0\u5143\u7d20\u5230\u5217\u8868\u4e2d<\/strong><\/h2>\n<p>for i in range(1, 6):<\/p>\n<p>    dynamic_list.append(i2)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u79cd\u65b9\u6cd5\u7075\u6d3b\u6027\u8f83\u9ad8\uff0c\u9002\u7528\u4e8e\u9700\u8981\u9010\u6b65\u6784\u5efa\u5217\u8868\u7684\u573a\u666f\u3002<\/p>\n<\/p>\n<p><p><strong>\u4ece\u6587\u4ef6\u6216\u5916\u90e8\u6570\u636e\u6e90\u521b\u5efa\u5217\u8868<\/strong><\/p>\n<\/p>\n<p><p>\u5728\u5b9e\u9645\u5e94\u7528\u4e2d\uff0c\u6211\u4eec\u7ecf\u5e38\u9700\u8981\u4ece\u6587\u4ef6\u6216\u5176\u4ed6\u5916\u90e8\u6570\u636e\u6e90\u8bfb\u53d6\u6570\u636e\u5e76\u521b\u5efa\u5217\u8868\u3002\u793a\u4f8b\u5982\u4e0b\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\"># \u4ece\u6587\u4ef6\u8bfb\u53d6\u6570\u636e\u5e76\u521b\u5efa\u5217\u8868<\/p>\n<p>with open(&#39;data.txt&#39;, &#39;r&#39;) as file:<\/p>\n<p>    file_data = file.readlines()<\/p>\n<h2><strong>\u53bb\u9664\u6362\u884c\u7b26\u5e76\u521b\u5efa\u5217\u8868<\/strong><\/h2>\n<p>cleaned_data = [line.strip() for line in file_data]<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u79cd\u65b9\u6cd5\u9002\u7528\u4e8e\u4eceCSV\u6587\u4ef6\u3001\u6570\u636e\u5e93\u6216API\u7b49\u5916\u90e8\u6570\u636e\u6e90\u83b7\u53d6\u6570\u636e\u5e76\u5904\u7406\u6210\u5217\u8868\u7684\u573a\u666f\u3002<\/p>\n<\/p>\n<p><p><strong>\u4f7f\u7528\u591a\u7ef4\u5217\u8868<\/strong><\/p>\n<\/p>\n<p><p>\u6709\u65f6\u6211\u4eec\u9700\u8981\u521b\u5efa\u5305\u542b\u591a\u4e2a\u7ef4\u5ea6\u7684\u5217\u8868\uff0c\u4f8b\u5982\u4e8c\u7ef4\u5217\u8868\u6216\u4e09\u7ef4\u5217\u8868\u3002\u53ef\u4ee5\u901a\u8fc7\u5d4c\u5957\u5217\u8868\u6765\u5b9e\u73b0\u8fd9\u4e00\u70b9\u3002\u793a\u4f8b\u5982\u4e0b\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\"># \u521b\u5efa\u4e00\u4e2a\u4e8c\u7ef4\u5217\u8868<\/p>\n<p>two_d_list = [[1, 2, 3], [4, 5, 6], [7, 8, 9]]<\/p>\n<h2><strong>\u521b\u5efa\u4e00\u4e2a\u4e09\u7ef4\u5217\u8868<\/strong><\/h2>\n<p>three_d_list = [[[1, 2], [3, 4]], [[5, 6], [7, 8]]]<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u591a\u7ef4\u5217\u8868\u5728\u5904\u7406\u77e9\u9635\u3001\u56fe\u50cf\u6570\u636e\u7b49\u9700\u8981\u591a\u7ef4\u6570\u636e\u7ed3\u6784\u7684\u573a\u666f\u4e2d\u975e\u5e38\u6709\u7528\u3002<\/p>\n<\/p>\n<p><p><strong>\u603b\u7ed3<\/strong><\/p>\n<\/p>\n<p><p>\u901a\u8fc7\u4ee5\u4e0a\u65b9\u6cd5\uff0c\u6211\u4eec\u53ef\u4ee5\u6839\u636e\u4e0d\u540c\u7684\u9700\u6c42\u548c\u573a\u666f\u5728Python\u4e2d\u521b\u5efa\u5404\u79cd\u7c7b\u578b\u7684\u65b0\u5217\u8868\u3002\u65e0\u8bba\u662f\u7b80\u5355\u7684\u65b9\u62ec\u53f7\u3001\u5f3a\u5927\u7684\u5217\u8868\u63a8\u5bfc\u5f0f\uff0c\u8fd8\u662f\u7075\u6d3b\u7684\u5185\u7f6e\u51fd\u6570\u548c\u52a8\u6001\u6dfb\u52a0\u65b9\u6cd5\uff0c\u90fd\u4e3a\u6211\u4eec\u63d0\u4f9b\u4e86\u4e30\u5bcc\u7684\u9009\u62e9\u3002\u638c\u63e1\u8fd9\u4e9b\u65b9\u6cd5\uff0c\u5c06\u6709\u52a9\u4e8e\u6211\u4eec\u5728\u6570\u636e\u5904\u7406\u548c\u7f16\u7a0b\u4e2d\u66f4\u52a0\u9ad8\u6548\u5730\u5de5\u4f5c\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5728Python\u4e2d\uff0c\u6709\u54ea\u4e9b\u5e38\u7528\u7684\u65b9\u6cd5\u53ef\u4ee5\u521b\u5efa\u65b0\u5217\u8868\uff1f<\/strong><br \/>\u5728Python\u4e2d\uff0c\u521b\u5efa\u65b0\u5217\u8868\u7684\u65b9\u6cd5\u591a\u79cd\u591a\u6837\u3002\u6700\u57fa\u672c\u7684\u65b9\u5f0f\u662f\u4f7f\u7528\u65b9\u62ec\u53f7\u3002\u4f8b\u5982\uff0c\u53ef\u4ee5\u76f4\u63a5\u5b9a\u4e49\u4e00\u4e2a\u7a7a\u5217\u8868 <code>new_list = []<\/code> \u6216\u8005\u5305\u542b\u521d\u59cb\u5143\u7d20 <code>new_list = [1, 2, 3]<\/code>\u3002\u6b64\u5916\uff0c\u4e5f\u53ef\u4ee5\u4f7f\u7528 <code>list()<\/code> \u51fd\u6570\u5c06\u5176\u4ed6\u53ef\u8fed\u4ee3\u5bf9\u8c61\u8f6c\u6362\u4e3a\u5217\u8868\uff0c\u4f8b\u5982 <code>new_list = list((1, 2, 3))<\/code>\u3002\u5217\u8868\u63a8\u5bfc\u5f0f\u4e5f\u662f\u4e00\u4e2a\u5f3a\u5927\u7684\u521b\u5efa\u5217\u8868\u7684\u5de5\u5177\uff0c\u5141\u8bb8\u901a\u8fc7\u4e00\u79cd\u7b80\u6d01\u7684\u65b9\u5f0f\u751f\u6210\u65b0\u5217\u8868\uff0c\u5982 <code>new_list = [x**2 for x in range(10)]<\/code>\uff0c\u8fd9\u5c06\u751f\u6210\u5305\u542b0\u52309\u7684\u5e73\u65b9\u7684\u65b0\u5217\u8868\u3002<\/p>\n<p><strong>\u5982\u4f55\u4ece\u73b0\u6709\u5217\u8868\u4e2d\u521b\u5efa\u65b0\u5217\u8868\uff1f<\/strong><br \/>\u4ece\u73b0\u6709\u5217\u8868\u4e2d\u521b\u5efa\u65b0\u5217\u8868\u7684\u65b9\u6cd5\u6709\u5f88\u591a\u79cd\u3002\u53ef\u4ee5\u4f7f\u7528\u5207\u7247\u64cd\u4f5c\u6765\u521b\u5efa\u4e00\u4e2a\u65b0\u5217\u8868\uff0c\u4f8b\u5982 <code>new_list = old_list[1:3]<\/code>\uff0c\u8fd9\u5c06\u9009\u53d6\u539f\u5217\u8868\u4e2d\u7d22\u5f15\u4e3a1\u52302\u7684\u5143\u7d20\u3002\u4f7f\u7528\u5217\u8868\u63a8\u5bfc\u5f0f\u4e5f\u662f\u4e00\u79cd\u5f88\u597d\u7684\u9009\u62e9\uff0c\u53ef\u4ee5\u6839\u636e\u539f\u5217\u8868\u7684\u6761\u4ef6\u751f\u6210\u65b0\u5217\u8868\uff0c\u5982 <code>new_list = [x for x in old_list if x &gt; 10]<\/code>\uff0c\u8fd9\u5c06\u4ece\u539f\u5217\u8868\u4e2d\u9009\u53d6\u6240\u6709\u5927\u4e8e10\u7684\u5143\u7d20\u3002\u6b64\u5916\uff0c\u4f7f\u7528 <code>copy()<\/code> \u65b9\u6cd5\u6216 <code>list()<\/code> \u51fd\u6570\u90fd\u53ef\u4ee5\u521b\u5efa\u539f\u5217\u8868\u7684\u6d45\u62f7\u8d1d\uff0c\u5982 <code>new_list = old_list.copy()<\/code>\u3002<\/p>\n<p><strong>\u5728\u521b\u5efa\u65b0\u5217\u8868\u65f6\uff0c\u5982\u4f55\u907f\u514d\u91cd\u590d\u5143\u7d20\uff1f<\/strong><br \/>\u4e3a\u4e86\u5728\u521b\u5efa\u65b0\u5217\u8868\u65f6\u907f\u514d\u91cd\u590d\u5143\u7d20\uff0c\u53ef\u4ee5\u4f7f\u7528\u96c6\u5408\uff08set\uff09\u6765\u5e2e\u52a9\u53bb\u91cd\u3002\u4f8b\u5982\uff0c\u53ef\u4ee5\u5148\u5c06\u5217\u8868\u8f6c\u6362\u4e3a\u96c6\u5408\uff0c\u7136\u540e\u518d\u8f6c\u6362\u56de\u5217\u8868\uff0c\u5982 <code>new_list = list(set(old_list))<\/code>\uff0c\u8fd9\u5c06\u81ea\u52a8\u53bb\u9664\u91cd\u590d\u7684\u5143\u7d20\u3002\u53e6\u4e00\u79cd\u65b9\u6cd5\u662f\u4f7f\u7528\u5217\u8868\u63a8\u5bfc\u5f0f\u7ed3\u5408\u6761\u4ef6\u68c0\u67e5\uff0c\u786e\u4fdd\u65b0\u5217\u8868\u4e2d\u53ea\u6dfb\u52a0\u4e0d\u5728\u539f\u5217\u8868\u4e2d\u7684\u5143\u7d20\u3002\u4f8b\u5982\uff0c<code>new_list = []<\/code> \u52a0\u4e0a <code>for item in old_list: if item not in new_list: new_list.append(item)<\/code>\uff0c\u8fd9\u6837\u53ef\u4ee5\u6784\u5efa\u4e00\u4e2a\u4e0d\u542b\u91cd\u590d\u5143\u7d20\u7684\u65b0\u5217\u8868\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u5728Python\u4e2d\uff0c\u521b\u5efa\u65b0\u5217\u8868\u53ef\u4ee5\u901a\u8fc7\u591a\u79cd\u65b9\u5f0f\u5b9e\u73b0\uff0c\u5305\u62ec\u4f7f\u7528\u65b9\u62ec\u53f7\u3001\u5217\u8868\u63a8\u5bfc\u5f0f\u3001\u5185\u7f6e\u51fd\u6570\u7b49\u3002\u6700\u5e38\u7528\u7684\u65b9\u5f0f\u662f\u4f7f\u7528\u65b9 [&hellip;]","protected":false},"author":3,"featured_media":1185345,"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\/1185334"}],"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=1185334"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1185334\/revisions"}],"predecessor-version":[{"id":1185346,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1185334\/revisions\/1185346"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/1185345"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=1185334"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=1185334"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=1185334"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}