{"id":1027275,"date":"2024-12-31T10:49:36","date_gmt":"2024-12-31T02:49:36","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1027275.html"},"modified":"2024-12-31T10:49:38","modified_gmt":"2024-12-31T02:49:38","slug":"python%e4%b8%ad%e4%b8%a4%e4%b8%aa%e5%88%97%e8%a1%a8%e5%a6%82%e4%bd%95%e5%90%88%e5%b9%b6","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/1027275.html","title":{"rendered":"python\u4e2d\u4e24\u4e2a\u5217\u8868\u5982\u4f55\u5408\u5e76"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-docs.pingcode.com\/wp-content\/uploads\/2024\/12\/6af275f2-16ab-4b35-94b4-fd9c9d92ece4.webp?x-oss-process=image\/auto-orient,1\/format,webp\" alt=\"python\u4e2d\u4e24\u4e2a\u5217\u8868\u5982\u4f55\u5408\u5e76\" \/><\/p>\n<p><p> <strong>\u5728Python\u4e2d\uff0c\u5408\u5e76\u4e24\u4e2a\u5217\u8868\u7684\u65b9\u6cd5\u6709\u591a\u79cd\uff0c\u4e3b\u8981\u5305\u62ec\u4f7f\u7528&quot;+&quot;\u8fd0\u7b97\u7b26\u3001extend()\u65b9\u6cd5\u3001\u5217\u8868\u89e3\u6790\u548citertools.ch<a href=\"https:\/\/docs.pingcode.com\/blog\/59162.html\" target=\"_blank\">AI<\/a>n()\u3002\u8fd9\u4e9b\u65b9\u6cd5\u5404\u6709\u4f18\u7f3a\u70b9\uff0c\u53ef\u4ee5\u6839\u636e\u5177\u4f53\u9700\u6c42\u9009\u62e9\u3002<\/strong>\u5176\u4e2d\uff0c\u4f7f\u7528&quot;+&quot;\u8fd0\u7b97\u7b26\u662f\u6700\u7b80\u5355\u76f4\u89c2\u7684\u65b9\u6cd5\u3002\u4e0b\u9762\u5c06\u8be6\u7ec6\u4ecb\u7ecd\u8fd9\u51e0\u79cd\u65b9\u6cd5\uff0c\u5e76\u8ba8\u8bba\u5b83\u4eec\u7684\u4f18\u7f3a\u70b9\u548c\u9002\u7528\u573a\u666f\u3002<\/p>\n<\/p>\n<p><p>\u4e00\u3001\u4f7f\u7528 &quot;+&quot; \u8fd0\u7b97\u7b26<\/p>\n<\/p>\n<p><p>\u4f7f\u7528 &quot;+&quot; \u8fd0\u7b97\u7b26\u662f\u5408\u5e76\u4e24\u4e2a\u5217\u8868\u7684\u6700\u7b80\u5355\u65b9\u6cd5\u4e4b\u4e00\u3002\u8fd9\u79cd\u65b9\u6cd5\u4f1a\u8fd4\u56de\u4e00\u4e2a\u65b0\u7684\u5217\u8868\uff0c\u5176\u4e2d\u5305\u542b\u4e24\u4e2a\u5217\u8868\u7684\u6240\u6709\u5143\u7d20\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">list1 = [1, 2, 3]<\/p>\n<p>list2 = [4, 5, 6]<\/p>\n<p>merged_list = list1 + list2<\/p>\n<p>print(merged_list)  # \u8f93\u51fa: [1, 2, 3, 4, 5, 6]<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u79cd\u65b9\u6cd5\u7684\u4f18\u70b9\u662f\u8bed\u6cd5\u7b80\u5355\u76f4\u89c2\uff0c\u7f3a\u70b9\u662f\u4f1a\u521b\u5efa\u4e00\u4e2a\u65b0\u7684\u5217\u8868\uff0c\u53ef\u80fd\u5360\u7528\u66f4\u591a\u7684\u5185\u5b58\u3002<\/p>\n<\/p>\n<p><p>\u4e8c\u3001\u4f7f\u7528 extend() \u65b9\u6cd5<\/p>\n<\/p>\n<p><p>extend() \u65b9\u6cd5\u4f1a\u5c06\u53e6\u4e00\u4e2a\u5217\u8868\u4e2d\u7684\u5143\u7d20\u8ffd\u52a0\u5230\u5f53\u524d\u5217\u8868\u7684\u672b\u5c3e\u3002\u8fd9\u79cd\u65b9\u6cd5\u4e0d\u4f1a\u521b\u5efa\u65b0\u7684\u5217\u8868\uff0c\u800c\u662f\u76f4\u63a5\u4fee\u6539\u539f\u5217\u8868\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">list1 = [1, 2, 3]<\/p>\n<p>list2 = [4, 5, 6]<\/p>\n<p>list1.extend(list2)<\/p>\n<p>print(list1)  # \u8f93\u51fa: [1, 2, 3, 4, 5, 6]<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u79cd\u65b9\u6cd5\u7684\u4f18\u70b9\u662f\u4e0d\u4f1a\u5360\u7528\u989d\u5916\u7684\u5185\u5b58\uff0c\u7f3a\u70b9\u662f\u4f1a\u4fee\u6539\u539f\u5217\u8868\uff0c\u4e0d\u9002\u7528\u4e8e\u9700\u8981\u4fdd\u7559\u539f\u5217\u8868\u7684\u573a\u666f\u3002<\/p>\n<\/p>\n<p><p>\u4e09\u3001\u4f7f\u7528\u5217\u8868\u89e3\u6790<\/p>\n<\/p>\n<p><p>\u5217\u8868\u89e3\u6790\u662f\u4e00\u79cd\u975e\u5e38\u7075\u6d3b\u7684\u65b9\u5f0f\uff0c\u53ef\u4ee5\u5728\u5408\u5e76\u5217\u8868\u7684\u540c\u65f6\u8fdb\u884c\u4e00\u4e9b\u590d\u6742\u7684\u64cd\u4f5c\uff0c\u6bd4\u5982\u8fc7\u6ee4\u6216\u53d8\u6362\u5143\u7d20\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">list1 = [1, 2, 3]<\/p>\n<p>list2 = [4, 5, 6]<\/p>\n<p>merged_list = [item for sublist in [list1, list2] for item in sublist]<\/p>\n<p>print(merged_list)  # \u8f93\u51fa: [1, 2, 3, 4, 5, 6]<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u79cd\u65b9\u6cd5\u7684\u4f18\u70b9\u662f\u7075\u6d3b\u6027\u9ad8\uff0c\u53ef\u4ee5\u8fdb\u884c\u590d\u6742\u7684\u64cd\u4f5c\uff0c\u7f3a\u70b9\u662f\u8bed\u6cd5\u7a0d\u5fae\u590d\u6742\u4e00\u4e9b\u3002<\/p>\n<\/p>\n<p><p>\u56db\u3001\u4f7f\u7528 itertools.chain()<\/p>\n<\/p>\n<p><p>itertools.chain() \u662f itertools \u6a21\u5757\u4e2d\u7684\u4e00\u4e2a\u51fd\u6570\uff0c\u7528\u4e8e\u5c06\u591a\u4e2a\u53ef\u8fed\u4ee3\u5bf9\u8c61\u94fe\u63a5\u5728\u4e00\u8d77\u3002\u5b83\u4e0d\u4f1a\u521b\u5efa\u65b0\u7684\u5217\u8868\uff0c\u800c\u662f\u8fd4\u56de\u4e00\u4e2a\u8fed\u4ee3\u5668\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import itertools<\/p>\n<p>list1 = [1, 2, 3]<\/p>\n<p>list2 = [4, 5, 6]<\/p>\n<p>merged_list = list(itertools.chain(list1, list2))<\/p>\n<p>print(merged_list)  # \u8f93\u51fa: [1, 2, 3, 4, 5, 6]<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u79cd\u65b9\u6cd5\u7684\u4f18\u70b9\u662f\u5185\u5b58\u6548\u7387\u9ad8\uff0c\u9002\u7528\u4e8e\u5904\u7406\u5927\u91cf\u6570\u636e\u7684\u573a\u666f\uff0c\u7f3a\u70b9\u662f\u9700\u8981\u5bfc\u5165 itertools \u6a21\u5757\u3002<\/p>\n<\/p>\n<p><p>\u4e94\u3001\u4f7f\u7528 * \u8fd0\u7b97\u7b26\uff08\u89e3\u5305\uff09<\/p>\n<\/p>\n<p><p>\u5728 Python 3.5 \u53ca\u4ee5\u4e0a\u7248\u672c\u4e2d\uff0c\u53ef\u4ee5\u4f7f\u7528 * \u8fd0\u7b97\u7b26\u89e3\u5305\u591a\u4e2a\u5217\u8868\uff0c\u5e76\u5c06\u5176\u5408\u5e76\u6210\u4e00\u4e2a\u65b0\u7684\u5217\u8868\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">list1 = [1, 2, 3]<\/p>\n<p>list2 = [4, 5, 6]<\/p>\n<p>merged_list = [*list1, *list2]<\/p>\n<p>print(merged_list)  # \u8f93\u51fa: [1, 2, 3, 4, 5, 6]<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u79cd\u65b9\u6cd5\u7684\u4f18\u70b9\u662f\u8bed\u6cd5\u7b80\u6d01\u3001\u76f4\u89c2\uff0c\u7f3a\u70b9\u662f\u9700\u8981 Python 3.5 \u53ca\u4ee5\u4e0a\u7248\u672c\u652f\u6301\u3002<\/p>\n<\/p>\n<p><p>\u516d\u3001\u4f7f\u7528 numpy \u5e93<\/p>\n<\/p>\n<p><p>\u5982\u679c\u4f60\u5728\u5904\u7406\u6570\u503c\u6570\u636e\uff0c\u53ef\u4ee5\u4f7f\u7528 numpy \u5e93\u6765\u5408\u5e76\u4e24\u4e2a\u6570\u7ec4\u3002numpy \u63d0\u4f9b\u4e86\u4e00\u4e9b\u9ad8\u6548\u7684\u6570\u7ec4\u64cd\u4f5c\u51fd\u6570\uff0c\u975e\u5e38\u9002\u5408\u5904\u7406\u5927\u89c4\u6a21\u6570\u503c\u6570\u636e\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import numpy as np<\/p>\n<p>list1 = [1, 2, 3]<\/p>\n<p>list2 = [4, 5, 6]<\/p>\n<p>merged_array = np.concatenate((list1, list2))<\/p>\n<p>print(merged_array)  # \u8f93\u51fa: [1 2 3 4 5 6]<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u79cd\u65b9\u6cd5\u7684\u4f18\u70b9\u662f\u5904\u7406\u6570\u503c\u6570\u636e\u975e\u5e38\u9ad8\u6548\uff0c\u7f3a\u70b9\u662f\u9700\u8981\u5b89\u88c5 numpy \u5e93\uff0c\u5e76\u4e14\u4e0d\u9002\u7528\u4e8e\u975e\u6570\u503c\u6570\u636e\u3002<\/p>\n<\/p>\n<p><p>\u4e03\u3001\u4f7f\u7528 pandas \u5e93<\/p>\n<\/p>\n<p><p>\u5982\u679c\u4f60\u5728\u5904\u7406\u6570\u636e\u5206\u6790\u4efb\u52a1\uff0c\u53ef\u4ee5\u4f7f\u7528 pandas \u5e93\u6765\u5408\u5e76\u4e24\u4e2a Series \u5bf9\u8c61\u3002pandas \u63d0\u4f9b\u4e86\u4e30\u5bcc\u7684\u6570\u636e\u64cd\u4f5c\u529f\u80fd\uff0c\u975e\u5e38\u9002\u5408\u6570\u636e\u5206\u6790\u4efb\u52a1\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import pandas as pd<\/p>\n<p>list1 = [1, 2, 3]<\/p>\n<p>list2 = [4, 5, 6]<\/p>\n<p>series1 = pd.Series(list1)<\/p>\n<p>series2 = pd.Series(list2)<\/p>\n<p>merged_series = series1.append(series2, ignore_index=True)<\/p>\n<p>print(merged_series)  # \u8f93\u51fa:<\/p>\n<h2><strong>0    1<\/strong><\/h2>\n<h2><strong>1    2<\/strong><\/h2>\n<h2><strong>2    3<\/strong><\/h2>\n<h2><strong>3    4<\/strong><\/h2>\n<h2><strong>4    5<\/strong><\/h2>\n<h2><strong>5    6<\/strong><\/h2>\n<h2><strong>dtype: int64<\/strong><\/h2>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u79cd\u65b9\u6cd5\u7684\u4f18\u70b9\u662f\u529f\u80fd\u4e30\u5bcc\uff0c\u9002\u7528\u4e8e\u590d\u6742\u7684\u6570\u636e\u5206\u6790\u4efb\u52a1\uff0c\u7f3a\u70b9\u662f\u9700\u8981\u5b89\u88c5 pandas \u5e93\uff0c\u5e76\u4e14\u64cd\u4f5c\u76f8\u5bf9\u590d\u6742\u3002<\/p>\n<\/p>\n<p><p>\u516b\u3001\u5408\u5e76\u5e76\u53bb\u91cd<\/p>\n<\/p>\n<p><p>\u5728\u67d0\u4e9b\u60c5\u51b5\u4e0b\uff0c\u5408\u5e76\u4e24\u4e2a\u5217\u8868\u540e\u53ef\u80fd\u9700\u8981\u53bb\u91cd\u3002\u53ef\u4ee5\u4f7f\u7528 set \u6570\u636e\u7ed3\u6784\u6765\u5b9e\u73b0\u8fd9\u4e00\u70b9\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">list1 = [1, 2, 3, 3]<\/p>\n<p>list2 = [4, 5, 6, 1]<\/p>\n<p>merged_list = list(set(list1 + list2))<\/p>\n<p>print(merged_list)  # \u8f93\u51fa: [1, 2, 3, 4, 5, 6]<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u79cd\u65b9\u6cd5\u7684\u4f18\u70b9\u662f\u53ef\u4ee5\u8f7b\u677e\u53bb\u91cd\uff0c\u7f3a\u70b9\u662f\u4f1a\u6253\u4e71\u539f\u5217\u8868\u7684\u987a\u5e8f\u3002<\/p>\n<\/p>\n<p><p>\u4e5d\u3001\u5408\u5e76\u5e76\u4fdd\u6301\u987a\u5e8f<\/p>\n<\/p>\n<p><p>\u5982\u679c\u5e0c\u671b\u5408\u5e76\u5217\u8868\u5e76\u4fdd\u6301\u987a\u5e8f\uff0c\u53ef\u4ee5\u4f7f\u7528 collections.OrderedDict \u6765\u53bb\u91cd\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">from collections import OrderedDict<\/p>\n<p>list1 = [1, 2, 3, 3]<\/p>\n<p>list2 = [4, 5, 6, 1]<\/p>\n<p>merged_list = list(OrderedDict.fromkeys(list1 + list2))<\/p>\n<p>print(merged_list)  # \u8f93\u51fa: [1, 2, 3, 4, 5, 6]<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u79cd\u65b9\u6cd5\u7684\u4f18\u70b9\u662f\u53ef\u4ee5\u53bb\u91cd\u5e76\u4fdd\u6301\u539f\u5217\u8868\u7684\u987a\u5e8f\uff0c\u7f3a\u70b9\u662f\u9700\u8981\u5bfc\u5165 collections \u6a21\u5757\u3002<\/p>\n<\/p>\n<p><p>\u5341\u3001\u5408\u5e76\u5d4c\u5957\u5217\u8868<\/p>\n<\/p>\n<p><p>\u5728\u67d0\u4e9b\u60c5\u51b5\u4e0b\uff0c\u53ef\u80fd\u9700\u8981\u5408\u5e76\u5d4c\u5957\u5217\u8868\u3002\u53ef\u4ee5\u4f7f\u7528\u9012\u5f52\u51fd\u6570\u6765\u5b9e\u73b0\u8fd9\u4e00\u70b9\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">def merge_nested_lists(*lists):<\/p>\n<p>    merged_list = []<\/p>\n<p>    for lst in lists:<\/p>\n<p>        if isinstance(lst, list):<\/p>\n<p>            merged_list.extend(merge_nested_lists(*lst))<\/p>\n<p>        else:<\/p>\n<p>            merged_list.append(lst)<\/p>\n<p>    return merged_list<\/p>\n<p>nested_list1 = [1, [2, 3], [4, [5, 6]]]<\/p>\n<p>nested_list2 = [[7, 8], 9]<\/p>\n<p>merged_list = merge_nested_lists(nested_list1, nested_list2)<\/p>\n<p>print(merged_list)  # \u8f93\u51fa: [1, 2, 3, 4, 5, 6, 7, 8, 9]<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u79cd\u65b9\u6cd5\u7684\u4f18\u70b9\u662f\u53ef\u4ee5\u5904\u7406\u5d4c\u5957\u5217\u8868\uff0c\u7f3a\u70b9\u662f\u5b9e\u73b0\u76f8\u5bf9\u590d\u6742\u3002<\/p>\n<\/p>\n<p><p>\u603b\u7ed3<\/p>\n<\/p>\n<p><p>\u5728 Python \u4e2d\uff0c\u5408\u5e76\u4e24\u4e2a\u5217\u8868\u7684\u65b9\u6cd5\u591a\u79cd\u591a\u6837\uff0c\u53ef\u4ee5\u6839\u636e\u5177\u4f53\u9700\u6c42\u9009\u62e9\u5408\u9002\u7684\u65b9\u6cd5\u3002<strong>\u4f7f\u7528&quot;+&quot;\u8fd0\u7b97\u7b26\u3001extend()\u65b9\u6cd5\u3001\u5217\u8868\u89e3\u6790\u548citertools.chain()\u662f\u6700\u5e38\u89c1\u7684\u65b9\u6cd5<\/strong>\uff0c\u800c\u4f7f\u7528 numpy\u3001pandas \u7b49\u5e93\u5219\u9002\u7528\u4e8e\u7279\u5b9a\u573a\u666f\u3002\u5408\u5e76\u5e76\u53bb\u91cd\u3001\u4fdd\u6301\u987a\u5e8f\u4ee5\u53ca\u5904\u7406\u5d4c\u5957\u5217\u8868\u7684\u65b9\u6cd5\u4e5f\u5404\u6709\u4f18\u7f3a\u70b9\u3002\u5e0c\u671b\u672c\u6587\u5bf9\u4f60\u5728\u5b9e\u9645\u9879\u76ee\u4e2d\u9009\u62e9\u5408\u9002\u7684\u5408\u5e76\u65b9\u6cd5\u6709\u6240\u5e2e\u52a9\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u5728Python\u4e2d\u5408\u5e76\u4e24\u4e2a\u5217\u8868\uff1f<\/strong><br \/>\u5728Python\u4e2d\uff0c\u53ef\u4ee5\u4f7f\u7528\u591a\u79cd\u65b9\u6cd5\u5408\u5e76\u4e24\u4e2a\u5217\u8868\u3002\u4e00\u79cd\u5e38\u89c1\u7684\u65b9\u5f0f\u662f\u4f7f\u7528\u52a0\u6cd5\u8fd0\u7b97\u7b26\uff08<code>+<\/code>\uff09\uff0c\u4f8b\u5982\uff1a<code>list1 + list2<\/code>\u3002\u8fd9\u79cd\u65b9\u6cd5\u4f1a\u8fd4\u56de\u4e00\u4e2a\u65b0\u7684\u5217\u8868\uff0c\u5305\u542b\u4e24\u4e2a\u5217\u8868\u4e2d\u7684\u6240\u6709\u5143\u7d20\u3002\u53e6\u4e00\u79cd\u65b9\u6cd5\u662f\u4f7f\u7528<code>extend()<\/code>\u65b9\u6cd5\uff0c\u5b83\u4f1a\u76f4\u63a5\u4fee\u6539\u7b2c\u4e00\u4e2a\u5217\u8868\uff0c\u5c06\u7b2c\u4e8c\u4e2a\u5217\u8868\u7684\u5143\u7d20\u6dfb\u52a0\u5230\u5176\u4e2d\u3002<\/p>\n<p><strong>\u5408\u5e76\u5217\u8868\u65f6\u5982\u4f55\u907f\u514d\u91cd\u590d\u5143\u7d20\uff1f<\/strong><br \/>\u5982\u679c\u5e0c\u671b\u5408\u5e76\u4e24\u4e2a\u5217\u8868\u65f6\u53bb\u9664\u91cd\u590d\u7684\u5143\u7d20\uff0c\u53ef\u4ee5\u5c06\u4e24\u4e2a\u5217\u8868\u8f6c\u6362\u4e3a\u96c6\u5408\uff08set\uff09\uff0c\u4f7f\u7528<code>set(list1) | set(list2)<\/code>\u6765\u5408\u5e76\uff0c\u7136\u540e\u518d\u8f6c\u6362\u56de\u5217\u8868\u3002\u8fd9\u6837\u53ef\u4ee5\u786e\u4fdd\u5408\u5e76\u540e\u7684\u5217\u8868\u4e2d\u53ea\u5305\u542b\u552f\u4e00\u7684\u5143\u7d20\u3002<\/p>\n<p><strong>\u5408\u5e76\u591a\u4e2a\u5217\u8868\u7684\u6700\u4f73\u65b9\u6cd5\u662f\u4ec0\u4e48\uff1f<\/strong><br \/>\u5bf9\u4e8e\u5408\u5e76\u591a\u4e2a\u5217\u8868\uff0c\u53ef\u4ee5\u4f7f\u7528<code>itertools.chain<\/code>\u51fd\u6570\uff0c\u5b83\u53ef\u4ee5\u6709\u6548\u5730\u5c06\u591a\u4e2a\u5217\u8868\u8fde\u63a5\u5728\u4e00\u8d77\u3002\u793a\u4f8b\u4ee3\u7801\u5982\u4e0b\uff1a  <\/p>\n<pre><code class=\"language-python\">import itertools\nmerged_list = list(itertools.chain(list1, list2, list3))\n<\/code><\/pre>\n<p>\u8fd9\u79cd\u65b9\u6cd5\u5728\u5904\u7406\u5927\u91cf\u6570\u636e\u65f6\u6027\u80fd\u8f83\u597d\uff0c\u5e76\u4e14\u53ef\u4ee5\u66f4\u7075\u6d3b\u5730\u5904\u7406\u591a\u4e2a\u5217\u8868\u7684\u5408\u5e76\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u5728Python\u4e2d\uff0c\u5408\u5e76\u4e24\u4e2a\u5217\u8868\u7684\u65b9\u6cd5\u6709\u591a\u79cd\uff0c\u4e3b\u8981\u5305\u62ec\u4f7f\u7528&quot;+&quot;\u8fd0\u7b97\u7b26\u3001extend()\u65b9\u6cd5 [&hellip;]","protected":false},"author":3,"featured_media":1027280,"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\/1027275"}],"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=1027275"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1027275\/revisions"}],"predecessor-version":[{"id":1027283,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1027275\/revisions\/1027283"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/1027280"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=1027275"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=1027275"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=1027275"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}