{"id":971723,"date":"2024-12-27T05:37:36","date_gmt":"2024-12-26T21:37:36","guid":{"rendered":""},"modified":"2024-12-27T05:37:38","modified_gmt":"2024-12-26T21:37:38","slug":"python%e4%b8%ad%e5%a6%82%e4%bd%95%e6%9f%a5%e7%9c%8b%e5%ad%97%e5%85%b8","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/971723.html","title":{"rendered":"python\u4e2d\u5982\u4f55\u67e5\u770b\u5b57\u5178"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/24194719\/88118846-d6f3-4f34-9d78-518e44fa7d06.webp\" alt=\"python\u4e2d\u5982\u4f55\u67e5\u770b\u5b57\u5178\" \/><\/p>\n<p><p> \u5728Python\u4e2d\u67e5\u770b\u5b57\u5178\u7684\u65b9\u5f0f\u6709\u591a\u79cd\uff0c\u4ee5\u4e0b\u662f\u4e00\u4e9b\u5e38\u89c1\u7684\u65b9\u6cd5\uff1a<strong>\u4f7f\u7528keys()\u65b9\u6cd5\u67e5\u770b\u5b57\u5178\u7684\u6240\u6709\u952e\u3001\u4f7f\u7528values()\u65b9\u6cd5\u67e5\u770b\u5b57\u5178\u7684\u6240\u6709\u503c\u3001\u4f7f\u7528items()\u65b9\u6cd5\u67e5\u770b\u5b57\u5178\u7684\u6240\u6709\u952e\u503c\u5bf9<\/strong>\u3002\u5176\u4e2d\uff0c\u4f7f\u7528items()\u65b9\u6cd5\u67e5\u770b\u5b57\u5178\u7684\u6240\u6709\u952e\u503c\u5bf9\u662f\u6700\u5168\u9762\u7684\u65b9\u5f0f\u4e4b\u4e00\u3002\u901a\u8fc7items()\u65b9\u6cd5\uff0c\u53ef\u4ee5\u83b7\u53d6\u5b57\u5178\u4e2d\u6bcf\u4e2a\u5143\u7d20\u7684\u952e\u548c\u503c\uff0c\u8fd9\u5bf9\u4e8e\u904d\u5386\u5b57\u5178\u548c\u8fdb\u884c\u6570\u636e\u5904\u7406\u90fd\u975e\u5e38\u6709\u5e2e\u52a9\u3002<\/p>\n<\/p>\n<p><p>\u4e00\u3001\u4f7f\u7528keys()\u65b9\u6cd5\u67e5\u770b\u5b57\u5178\u7684\u6240\u6709\u952e<\/p>\n<\/p>\n<p><p><code>keys()<\/code>\u65b9\u6cd5\u7528\u4e8e\u8fd4\u56de\u5b57\u5178\u4e2d\u7684\u6240\u6709\u952e\u3002\u5b83\u8fd4\u56de\u4e00\u4e2a\u89c6\u56fe\u5bf9\u8c61\uff0c\u8be5\u5bf9\u8c61\u8868\u73b0\u4e3a\u4e00\u4e2a\u53ef\u8fed\u4ee3\u7684\u96c6\u5408\uff0c\u5176\u4e2d\u5305\u542b\u5b57\u5178\u4e2d\u7684\u6240\u6709\u952e\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">my_dict = {&#39;name&#39;: &#39;Alice&#39;, &#39;age&#39;: 25, &#39;city&#39;: &#39;New York&#39;}<\/p>\n<p>keys = my_dict.keys()<\/p>\n<p>print(keys)  # \u8f93\u51fa\uff1adict_keys([&#39;name&#39;, &#39;age&#39;, &#39;city&#39;])<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u4e2a\u89c6\u56fe\u5bf9\u8c61\u662f\u52a8\u6001\u7684\uff0c\u610f\u5473\u7740\u5982\u679c\u5728\u5b57\u5178\u4e2d\u6dfb\u52a0\u6216\u5220\u9664\u952e\uff0c\u89c6\u56fe\u5bf9\u8c61\u4f1a\u81ea\u52a8\u66f4\u65b0\u3002<\/p>\n<\/p>\n<p><p>\u4e8c\u3001\u4f7f\u7528values()\u65b9\u6cd5\u67e5\u770b\u5b57\u5178\u7684\u6240\u6709\u503c<\/p>\n<\/p>\n<p><p><code>values()<\/code>\u65b9\u6cd5\u7528\u4e8e\u8fd4\u56de\u5b57\u5178\u4e2d\u7684\u6240\u6709\u503c\u3002\u4e0e<code>keys()<\/code>\u65b9\u6cd5\u7c7b\u4f3c\uff0c\u5b83\u8fd4\u56de\u4e00\u4e2a\u89c6\u56fe\u5bf9\u8c61\uff0c\u8fd9\u4e2a\u5bf9\u8c61\u5305\u542b\u5b57\u5178\u4e2d\u7684\u6240\u6709\u503c\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">my_dict = {&#39;name&#39;: &#39;Alice&#39;, &#39;age&#39;: 25, &#39;city&#39;: &#39;New York&#39;}<\/p>\n<p>values = my_dict.values()<\/p>\n<p>print(values)  # \u8f93\u51fa\uff1adict_values([&#39;Alice&#39;, 25, &#39;New York&#39;])<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u4e2a\u89c6\u56fe\u5bf9\u8c61\u4e5f\u662f\u52a8\u6001\u7684\uff0c\u4f1a\u968f\u7740\u5b57\u5178\u7684\u66f4\u6539\u800c\u66f4\u65b0\u3002<\/p>\n<\/p>\n<p><p>\u4e09\u3001\u4f7f\u7528items()\u65b9\u6cd5\u67e5\u770b\u5b57\u5178\u7684\u6240\u6709\u952e\u503c\u5bf9<\/p>\n<\/p>\n<p><p><code>items()<\/code>\u65b9\u6cd5\u8fd4\u56de\u4e00\u4e2a\u5305\u542b\u5b57\u5178\u4e2d\u6240\u6709\u952e\u503c\u5bf9\u7684\u89c6\u56fe\u5bf9\u8c61\u3002\u6bcf\u4e2a\u5143\u7d20\u90fd\u662f\u4e00\u4e2a\u5305\u542b\u952e\u548c\u503c\u7684\u5143\u7ec4\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">my_dict = {&#39;name&#39;: &#39;Alice&#39;, &#39;age&#39;: 25, &#39;city&#39;: &#39;New York&#39;}<\/p>\n<p>items = my_dict.items()<\/p>\n<p>print(items)  # \u8f93\u51fa\uff1adict_items([(&#39;name&#39;, &#39;Alice&#39;), (&#39;age&#39;, 25), (&#39;city&#39;, &#39;New York&#39;)])<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u4f7f\u7528<code>items()<\/code>\u65b9\u6cd5\u53ef\u4ee5\u975e\u5e38\u65b9\u4fbf\u5730\u904d\u5386\u5b57\u5178\u4e2d\u7684\u6bcf\u4e2a\u952e\u503c\u5bf9\u3002<\/p>\n<\/p>\n<p><p>\u56db\u3001\u4f7f\u7528for\u5faa\u73af\u904d\u5386\u5b57\u5178<\/p>\n<\/p>\n<p><p>\u901a\u8fc7for\u5faa\u73af\u53ef\u4ee5\u8f7b\u677e\u904d\u5386\u5b57\u5178\u4e2d\u7684\u6bcf\u4e2a\u952e\u6216\u6bcf\u4e2a\u952e\u503c\u5bf9\u3002\u5728\u904d\u5386\u8fc7\u7a0b\u4e2d\uff0c\u53ef\u4ee5\u9009\u62e9\u53ea\u904d\u5386\u952e\u3001\u53ea\u904d\u5386\u503c\uff0c\u6216\u8005\u540c\u65f6\u904d\u5386\u952e\u548c\u503c\u3002<\/p>\n<\/p>\n<ol>\n<li>\u4ec5\u904d\u5386\u952e\uff1a<\/li>\n<\/ol>\n<p><pre><code class=\"language-python\">for key in my_dict:<\/p>\n<p>    print(key)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<ol start=\"2\">\n<li>\u4ec5\u904d\u5386\u503c\uff1a<\/li>\n<\/ol>\n<p><pre><code class=\"language-python\">for value in my_dict.values():<\/p>\n<p>    print(value)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<ol start=\"3\">\n<li>\u540c\u65f6\u904d\u5386\u952e\u548c\u503c\uff1a<\/li>\n<\/ol>\n<p><pre><code class=\"language-python\">for key, value in my_dict.items():<\/p>\n<p>    print(f&quot;Key: {key}, Value: {value}&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u4e94\u3001\u4f7f\u7528\u5217\u8868\u63a8\u5bfc\u5f0f\u67e5\u770b\u5b57\u5178<\/p>\n<\/p>\n<p><p>\u5217\u8868\u63a8\u5bfc\u5f0f\u63d0\u4f9b\u4e86\u4e00\u79cd\u7b80\u6d01\u7684\u65b9\u5f0f\u6765\u5904\u7406\u5b57\u5178\u4e2d\u7684\u6570\u636e\u3002\u53ef\u4ee5\u4f7f\u7528\u5217\u8868\u63a8\u5bfc\u5f0f\u6765\u521b\u5efa\u4e00\u4e2a\u65b0\u5217\u8868\uff0c\u5176\u4e2d\u5305\u542b\u5b57\u5178\u4e2d\u7684\u952e\u3001\u503c\u6216\u952e\u503c\u5bf9\u3002<\/p>\n<\/p>\n<ol>\n<li>\u521b\u5efa\u5305\u542b\u5b57\u5178\u6240\u6709\u952e\u7684\u5217\u8868\uff1a<\/li>\n<\/ol>\n<p><pre><code class=\"language-python\">keys_list = [key for key in my_dict]<\/p>\n<p><\/code><\/pre>\n<\/p>\n<ol start=\"2\">\n<li>\u521b\u5efa\u5305\u542b\u5b57\u5178\u6240\u6709\u503c\u7684\u5217\u8868\uff1a<\/li>\n<\/ol>\n<p><pre><code class=\"language-python\">values_list = [value for value in my_dict.values()]<\/p>\n<p><\/code><\/pre>\n<\/p>\n<ol start=\"3\">\n<li>\u521b\u5efa\u5305\u542b\u5b57\u5178\u6240\u6709\u952e\u503c\u5bf9\u7684\u5217\u8868\uff1a<\/li>\n<\/ol>\n<p><pre><code class=\"language-python\">items_list = [(key, value) for key, value in my_dict.items()]<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u516d\u3001\u4f7f\u7528\u5b57\u5178\u63a8\u5bfc\u5f0f\u8fdb\u884c\u5b57\u5178\u7684\u64cd\u4f5c<\/p>\n<\/p>\n<p><p>\u5b57\u5178\u63a8\u5bfc\u5f0f\u7c7b\u4f3c\u4e8e\u5217\u8868\u63a8\u5bfc\u5f0f\uff0c\u4f46\u5b83\u7528\u4e8e\u521b\u5efa\u5b57\u5178\u3002\u53ef\u4ee5\u4f7f\u7528\u5b57\u5178\u63a8\u5bfc\u5f0f\u4ece\u73b0\u6709\u5b57\u5178\u4e2d\u521b\u5efa\u65b0\u5b57\u5178\u3002<\/p>\n<\/p>\n<p><p>\u4f8b\u5982\uff0c\u5047\u8bbe\u9700\u8981\u5c06\u5b57\u5178\u4e2d\u7684\u6240\u6709\u5b57\u7b26\u4e32\u503c\u8f6c\u6362\u4e3a\u5927\u5199\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">my_dict = {&#39;name&#39;: &#39;Alice&#39;, &#39;age&#39;: 25, &#39;city&#39;: &#39;New York&#39;}<\/p>\n<p>new_dict = {k: v.upper() if isinstance(v, str) else v for k, v in my_dict.items()}<\/p>\n<p>print(new_dict)  # \u8f93\u51fa\uff1a{&#39;name&#39;: &#39;ALICE&#39;, &#39;age&#39;: 25, &#39;city&#39;: &#39;NEW YORK&#39;}<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u4e03\u3001\u5b57\u5178\u7684\u6df1\u62f7\u8d1d\u4e0e\u6d45\u62f7\u8d1d<\/p>\n<\/p>\n<p><p>\u5728\u64cd\u4f5c\u5b57\u5178\u65f6\uff0c\u6709\u65f6\u9700\u8981\u521b\u5efa\u5b57\u5178\u7684\u526f\u672c\u3002\u9700\u8981\u6ce8\u610f\u7684\u662f\uff0cPython\u4e2d\u7684\u590d\u5236\u64cd\u4f5c\u53ef\u4ee5\u5206\u4e3a\u6d45\u62f7\u8d1d\u548c\u6df1\u62f7\u8d1d\u3002<\/p>\n<\/p>\n<ol>\n<li>\u6d45\u62f7\u8d1d\uff1a<\/li>\n<\/ol>\n<p><p>\u6d45\u62f7\u8d1d\u53ef\u4ee5\u901a\u8fc7<code>copy()<\/code>\u65b9\u6cd5\u5b9e\u73b0\uff0c\u5b83\u4f1a\u521b\u5efa\u4e00\u4e2a\u65b0\u7684\u5b57\u5178\u5bf9\u8c61\uff0c\u4f46\u65b0\u5b57\u5178\u4e2d\u7684\u5143\u7d20\u662f\u5bf9\u539f\u59cb\u5b57\u5178\u4e2d\u5143\u7d20\u7684\u5f15\u7528\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">original_dict = {&#39;name&#39;: &#39;Alice&#39;, &#39;age&#39;: 25}<\/p>\n<p>shallow_copy = original_dict.copy()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<ol start=\"2\">\n<li>\u6df1\u62f7\u8d1d\uff1a<\/li>\n<\/ol>\n<p><p>\u6df1\u62f7\u8d1d\u53ef\u4ee5\u901a\u8fc7<code>copy<\/code>\u6a21\u5757\u4e2d\u7684<code>deepcopy()<\/code>\u51fd\u6570\u5b9e\u73b0\u3002\u6df1\u62f7\u8d1d\u4f1a\u590d\u5236\u5b57\u5178\u4e2d\u7684\u6240\u6709\u5143\u7d20\uff0c\u5305\u62ec\u5d4c\u5957\u7684\u5b57\u5178\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import copy<\/p>\n<p>original_dict = {&#39;name&#39;: &#39;Alice&#39;, &#39;det<a href=\"https:\/\/docs.pingcode.com\/blog\/59162.html\" target=\"_blank\">AI<\/a>ls&#39;: {&#39;age&#39;: 25, &#39;city&#39;: &#39;New York&#39;}}<\/p>\n<p>deep_copy = copy.deepcopy(original_dict)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u516b\u3001\u5b57\u5178\u7684\u5408\u5e76\u4e0e\u66f4\u65b0<\/p>\n<\/p>\n<p><p>\u5728\u67d0\u4e9b\u60c5\u51b5\u4e0b\uff0c\u9700\u8981\u5408\u5e76\u4e24\u4e2a\u5b57\u5178\u6216\u66f4\u65b0\u5b57\u5178\u4e2d\u7684\u67d0\u4e9b\u503c\u3002Python\u63d0\u4f9b\u4e86\u591a\u79cd\u65b9\u6cd5\u6765\u5b9e\u73b0\u8fd9\u4e9b\u64cd\u4f5c\u3002<\/p>\n<\/p>\n<ol>\n<li>\u4f7f\u7528<code>update()<\/code>\u65b9\u6cd5\u66f4\u65b0\u5b57\u5178\uff1a<\/li>\n<\/ol>\n<p><p><code>update()<\/code>\u65b9\u6cd5\u5c06\u53e6\u4e00\u4e2a\u5b57\u5178\u4e2d\u7684\u952e\u503c\u5bf9\u6dfb\u52a0\u5230\u5f53\u524d\u5b57\u5178\u4e2d\u3002\u5982\u679c\u67d0\u4e2a\u952e\u5df2\u5b58\u5728\uff0c\u5219\u4f1a\u66f4\u65b0\u8be5\u952e\u7684\u503c\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">dict1 = {&#39;name&#39;: &#39;Alice&#39;, &#39;age&#39;: 25}<\/p>\n<p>dict2 = {&#39;city&#39;: &#39;New York&#39;, &#39;age&#39;: 30}<\/p>\n<p>dict1.update(dict2)<\/p>\n<p>print(dict1)  # \u8f93\u51fa\uff1a{&#39;name&#39;: &#39;Alice&#39;, &#39;age&#39;: 30, &#39;city&#39;: &#39;New York&#39;}<\/p>\n<p><\/code><\/pre>\n<\/p>\n<ol start=\"2\">\n<li>\u4f7f\u7528\u5b57\u5178\u89e3\u5305\u8fd0\u7b97\u7b26\u5408\u5e76\u5b57\u5178\uff1a<\/li>\n<\/ol>\n<p><p>\u4ecePython 3.5\u5f00\u59cb\uff0c\u53ef\u4ee5\u4f7f\u7528<code><\/code>\u8fd0\u7b97\u7b26\u89e3\u5305\u5b57\u5178\uff0c\u4ece\u800c\u5b9e\u73b0\u5b57\u5178\u7684\u5408\u5e76\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">dict1 = {&#39;name&#39;: &#39;Alice&#39;, &#39;age&#39;: 25}<\/p>\n<p>dict2 = {&#39;city&#39;: &#39;New York&#39;, &#39;age&#39;: 30}<\/p>\n<p>merged_dict = {&lt;strong&gt;dict1, &lt;\/strong&gt;dict2}<\/p>\n<p>print(merged_dict)  # \u8f93\u51fa\uff1a{&#39;name&#39;: &#39;Alice&#39;, &#39;age&#39;: 30, &#39;city&#39;: &#39;New York&#39;}<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u603b\u7ed3<\/p>\n<\/p>\n<p><p>Python\u5b57\u5178\u662f\u4e00\u79cd\u975e\u5e38\u5f3a\u5927\u7684\u6570\u636e\u7ed3\u6784\uff0c\u63d0\u4f9b\u4e86\u4e30\u5bcc\u7684\u64cd\u4f5c\u65b9\u6cd5\u4ee5\u4fbf\u4e8e\u6570\u636e\u7684\u5b58\u50a8\u548c\u68c0\u7d22\u3002\u4e86\u89e3\u5982\u4f55\u67e5\u770b\u5b57\u5178\u7684\u952e\u3001\u503c\u548c\u952e\u503c\u5bf9\uff0c\u5982\u4f55\u904d\u5386\u5b57\u5178\u4ee5\u53ca\u5982\u4f55\u8fdb\u884c\u5b57\u5178\u7684\u5408\u5e76\u4e0e\u66f4\u65b0\uff0c\u53ef\u4ee5\u5e2e\u52a9\u6211\u4eec\u66f4\u52a0\u9ad8\u6548\u5730\u5229\u7528\u5b57\u5178\u6765\u5904\u7406\u6570\u636e\u3002\u5728\u5904\u7406\u5b57\u5178\u65f6\uff0c\u9009\u62e9\u9002\u5f53\u7684\u65b9\u6cd5\u6765\u67e5\u770b\u548c\u64cd\u4f5c\u5b57\u5178\uff0c\u53ef\u4ee5\u4f7f\u4ee3\u7801\u66f4\u52a0\u7b80\u6d01\u548c\u6613\u4e8e\u7406\u89e3\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u6253\u5370Python\u5b57\u5178\u7684\u5185\u5bb9\uff1f<\/strong><br \/>\u5728Python\u4e2d\uff0c\u53ef\u4ee5\u4f7f\u7528<code>print()<\/code>\u51fd\u6570\u76f4\u63a5\u6253\u5370\u5b57\u5178\u7684\u5185\u5bb9\u3002\u4f8b\u5982\uff0c\u5982\u679c\u4f60\u7684\u5b57\u5178\u540d\u4e3a<code>my_dict<\/code>\uff0c\u53ef\u4ee5\u901a\u8fc7<code>print(my_dict)<\/code>\u6765\u67e5\u770b\u5b57\u5178\u7684\u6240\u6709\u952e\u503c\u5bf9\u3002\u8fd9\u79cd\u65b9\u5f0f\u7b80\u5355\u76f4\u89c2\uff0c\u9002\u5408\u5feb\u901f\u67e5\u770b\u5b57\u5178\u7684\u5185\u5bb9\u3002<\/p>\n<p><strong>\u5b57\u5178\u7684\u952e\u548c\u5bf9\u5e94\u7684\u503c\u5206\u522b\u5982\u4f55\u83b7\u53d6\uff1f<\/strong><br \/>\u8981\u5206\u522b\u83b7\u53d6\u5b57\u5178\u7684\u952e\u548c\u503c\uff0c\u53ef\u4ee5\u4f7f\u7528<code>keys()<\/code>\u548c<code>values()<\/code>\u65b9\u6cd5\u3002\u4f7f\u7528<code>my_dict.keys()<\/code>\u53ef\u4ee5\u5f97\u5230\u4e00\u4e2a\u5305\u542b\u6240\u6709\u952e\u7684\u89c6\u56fe\uff0c\u800c<code>my_dict.values()<\/code>\u5219\u8fd4\u56de\u4e00\u4e2a\u5305\u542b\u6240\u6709\u503c\u7684\u89c6\u56fe\u3002\u82e5\u9700\u8981\u5c06\u5176\u8f6c\u5316\u4e3a\u5217\u8868\uff0c\u53ef\u4ee5\u4f7f\u7528<code>list(my_dict.keys())<\/code>\u548c<code>list(my_dict.values())<\/code>\u3002<\/p>\n<p><strong>\u5982\u4f55\u904d\u5386Python\u5b57\u5178\u4e2d\u7684\u6240\u6709\u9879\uff1f<\/strong><br \/>\u904d\u5386\u5b57\u5178\u53ef\u4ee5\u4f7f\u7528<code>items()<\/code>\u65b9\u6cd5\uff0c\u8fd4\u56de\u5b57\u5178\u4e2d\u6240\u6709\u7684\u952e\u503c\u5bf9\u3002\u901a\u8fc7<code>for key, value in my_dict.items()<\/code>\u7684\u65b9\u5f0f\uff0c\u53ef\u4ee5\u540c\u65f6\u8bbf\u95ee\u6bcf\u4e2a\u952e\u53ca\u5176\u5bf9\u5e94\u7684\u503c\u3002\u8fd9\u79cd\u65b9\u6cd5\u5c24\u5176\u9002\u5408\u9700\u8981\u5904\u7406\u6bcf\u4e2a\u952e\u503c\u5bf9\u7684\u573a\u666f\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u5728Python\u4e2d\u67e5\u770b\u5b57\u5178\u7684\u65b9\u5f0f\u6709\u591a\u79cd\uff0c\u4ee5\u4e0b\u662f\u4e00\u4e9b\u5e38\u89c1\u7684\u65b9\u6cd5\uff1a\u4f7f\u7528keys()\u65b9\u6cd5\u67e5\u770b\u5b57\u5178\u7684\u6240\u6709\u952e\u3001\u4f7f\u7528valu [&hellip;]","protected":false},"author":3,"featured_media":971734,"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\/971723"}],"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=971723"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/971723\/revisions"}],"predecessor-version":[{"id":971737,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/971723\/revisions\/971737"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/971734"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=971723"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=971723"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=971723"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}