{"id":1068163,"date":"2024-12-31T16:40:58","date_gmt":"2024-12-31T08:40:58","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1068163.html"},"modified":"2024-12-31T16:41:01","modified_gmt":"2024-12-31T08:41:01","slug":"python%e5%a6%82%e4%bd%95%e4%b8%80%e6%ad%a5%e5%bb%ba%e7%ab%8b%e5%a4%9a%e4%b8%aa%e5%ad%97%e5%85%b8","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/1068163.html","title":{"rendered":"python\u5982\u4f55\u4e00\u6b65\u5efa\u7acb\u591a\u4e2a\u5b57\u5178"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-docs.pingcode.com\/wp-content\/uploads\/2024\/12\/dc24f12e-bc12-456a-ac89-302228bfd3d3.webp?x-oss-process=image\/auto-orient,1\/format,webp\" alt=\"python\u5982\u4f55\u4e00\u6b65\u5efa\u7acb\u591a\u4e2a\u5b57\u5178\" \/><\/p>\n<blockquote>\n<p><p>search(&quot;python\u5982\u4f55\u4e00\u6b65\u5efa\u7acb\u591a\u4e2a\u5b57\u5178&quot;)<\/p>\n<\/p>\n<\/blockquote>\n<p><p><strong>\u5728Python\u4e2d\uff0c\u53ef\u4ee5\u901a\u8fc7<\/strong><code>\u5217\u8868\u5b58\u50a8\u591a\u4e2a\u5b57\u5178<\/code><strong>\u3001<\/strong><code>\u5b57\u5178\u4e2d\u7684\u5b57\u5178<\/code><strong>\u3001<\/strong><code>\u5faa\u73af\u52a8\u6001\u751f\u6210<\/code><strong>\u548c<\/strong><code>\u5b57\u5178\u63a8\u5bfc\u5f0f<\/code><strong>\u7b49\u65b9\u6cd5\u6765\u4e00\u6b21\u6027\u521b\u5efa\u591a\u4e2a\u5b57\u5178\u3002<\/strong>\u5176\u4e2d\uff0c<strong><code>\u4f7f\u7528\u5217\u8868\u5b58\u50a8\u591a\u4e2a\u5b57\u5178<\/code><\/strong>\u662f\u4e00\u79cd\u5e38\u89c1\u4e14\u9ad8\u6548\u7684\u65b9\u6cd5\u3002<\/p>\n<\/p>\n<p><p><strong>\u4f7f\u7528\u5217\u8868\u5b58\u50a8\u591a\u4e2a\u5b57\u5178<\/strong><\/p>\n<\/p>\n<p><p>\u5728Python\u4e2d\uff0c\u53ef\u4ee5\u901a\u8fc7\u5c06\u591a\u4e2a\u5b57\u5178\u5b58\u50a8\u5728\u4e00\u4e2a\u5217\u8868\u4e2d\u6765\u5b9e\u73b0\u4e00\u6b21\u6027\u521b\u5efa\u591a\u4e2a\u5b57\u5178\u3002\u8fd9\u79cd\u65b9\u6cd5\u4e0d\u4ec5\u4fbf\u4e8e\u7ba1\u7406\uff0c\u8fd8\u53ef\u4ee5\u5229\u7528\u5217\u8868\u7684\u5404\u79cd\u64cd\u4f5c\u65b9\u6cd5\u6765\u5904\u7406\u8fd9\u4e9b\u5b57\u5178\u3002<\/p>\n<\/p>\n<p><p><strong>\u521b\u5efa\u548c\u521d\u59cb\u5316\u5b57\u5178\u5217\u8868<\/strong><\/p>\n<\/p>\n<p><p>\u9996\u5148\uff0c\u53ef\u4ee5\u521b\u5efa\u4e00\u4e2a\u7a7a\u5217\u8868\u7528\u4e8e\u5b58\u50a8\u5b57\u5178\uff0c\u7136\u540e\u901a\u8fc7\u5faa\u73af\u6216\u624b\u52a8\u6dfb\u52a0\u5b57\u5178\u5230\u5217\u8868\u4e2d\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\"># \u521b\u5efa\u7a7a\u5217\u8868<\/p>\n<p>list_of_dicts = []<\/p>\n<h2><strong>\u624b\u52a8\u6dfb\u52a0\u5b57\u5178<\/strong><\/h2>\n<p>list_of_dicts.append({&#39;id&#39;: 1, &#39;name&#39;: &#39;Alice&#39;})<\/p>\n<p>list_of_dicts.append({&#39;id&#39;: 2, &#39;name&#39;: &#39;Bob&#39;})<\/p>\n<h2><strong>\u901a\u8fc7\u5faa\u73af\u52a8\u6001\u751f\u6210\u5b57\u5178<\/strong><\/h2>\n<p>for i in range(3, 6):<\/p>\n<p>    list_of_dicts.append({&#39;id&#39;: i, &#39;name&#39;: f&#39;Person_{i}&#39;})<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u4e0a\u8ff0\u4ee3\u7801\u4e2d\uff0c\u9996\u5148\u521b\u5efa\u4e86\u4e00\u4e2a\u7a7a\u5217\u8868<code>list_of_dicts<\/code>\uff0c\u7136\u540e\u624b\u52a8\u6dfb\u52a0\u4e86\u4e24\u4e2a\u5b57\u5178\u3002\u63a5\u7740\uff0c\u901a\u8fc7\u5faa\u73af\u52a8\u6001\u751f\u6210\u4e86\u4e09\u4e2a\u5b57\u5178\uff0c\u5e76\u5c06\u5b83\u4eec\u6dfb\u52a0\u5230\u5217\u8868\u4e2d\u3002<\/p>\n<\/p>\n<p><p><strong>\u8bbf\u95ee\u548c\u4fee\u6539\u5217\u8868\u4e2d\u7684\u5b57\u5178<\/strong><\/p>\n<\/p>\n<p><p>\u53ef\u4ee5\u901a\u8fc7\u5217\u8868\u7d22\u5f15\u6765\u8bbf\u95ee\u548c\u4fee\u6539\u7279\u5b9a\u7684\u5b57\u5178\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\"># \u8bbf\u95ee\u7b2c\u4e00\u4e2a\u5b57\u5178<\/p>\n<p>first_dict = list_of_dicts[0]<\/p>\n<p>print(first_dict)  # \u8f93\u51fa: {&#39;id&#39;: 1, &#39;name&#39;: &#39;Alice&#39;}<\/p>\n<h2><strong>\u4fee\u6539\u7b2c\u4e8c\u4e2a\u5b57\u5178<\/strong><\/h2>\n<p>list_of_dicts[1][&#39;name&#39;] = &#39;Robert&#39;<\/p>\n<p>print(list_of_dicts[1])  # \u8f93\u51fa: {&#39;id&#39;: 2, &#39;name&#39;: &#39;Robert&#39;}<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u4e0a\u8ff0\u4ee3\u7801\u4e2d\uff0c\u901a\u8fc7\u7d22\u5f15<code>0<\/code>\u8bbf\u95ee\u4e86\u5217\u8868\u4e2d\u7684\u7b2c\u4e00\u4e2a\u5b57\u5178\uff0c\u5e76\u6253\u5370\u5176\u5185\u5bb9\u3002\u7136\u540e\uff0c\u4fee\u6539\u4e86\u5217\u8868\u4e2d\u7b2c\u4e8c\u4e2a\u5b57\u5178\u7684<code>name<\/code>\u952e\u7684\u503c\uff0c\u5e76\u6253\u5370\u4fee\u6539\u540e\u7684\u5b57\u5178\u3002<\/p>\n<\/p>\n<p><p><strong>\u904d\u5386\u5217\u8868\u4e2d\u7684\u5b57\u5178<\/strong><\/p>\n<\/p>\n<p><p>\u53ef\u4ee5\u4f7f\u7528\u5faa\u73af\u904d\u5386\u5217\u8868\u4e2d\u7684\u6bcf\u4e2a\u5b57\u5178\uff0c\u5e76\u8fdb\u884c\u76f8\u5e94\u7684\u64cd\u4f5c\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">for d in list_of_dicts:<\/p>\n<p>    print(d)<\/p>\n<p>    d[&#39;processed&#39;] = True  # \u6dfb\u52a0\u65b0\u952e\u503c\u5bf9<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u4e0a\u8ff0\u4ee3\u7801\u4e2d\uff0c\u904d\u5386\u4e86\u5217\u8868\u4e2d\u7684\u6bcf\u4e2a\u5b57\u5178\uff0c\u6253\u5370\u5176\u5185\u5bb9\uff0c\u5e76\u6dfb\u52a0\u4e86\u4e00\u4e2a\u65b0\u7684\u952e\u503c\u5bf9<code>&#39;processed&#39;: True<\/code>\u3002<\/p>\n<\/p>\n<p><p><strong>\u4f7f\u7528\u5b57\u5178\u4e2d\u7684\u5b57\u5178<\/strong><\/p>\n<\/p>\n<p><p>\u5728\u67d0\u4e9b\u60c5\u51b5\u4e0b\uff0c\u53ef\u80fd\u9700\u8981\u4f7f\u7528\u5b57\u5178\u4e2d\u7684\u5b57\u5178\u6765\u5b58\u50a8\u591a\u4e2a\u5b57\u5178\u3002\u8fd9\u6837\u53ef\u4ee5\u901a\u8fc7\u952e\u503c\u5bf9\u7684\u65b9\u5f0f\u65b9\u4fbf\u5730\u8bbf\u95ee\u6bcf\u4e2a\u5b57\u5178\u3002<\/p>\n<\/p>\n<p><p><strong>\u521b\u5efa\u5d4c\u5957\u5b57\u5178<\/strong><\/p>\n<\/p>\n<p><p>\u53ef\u4ee5\u5728\u4e00\u4e2a\u5b57\u5178\u4e2d\u5d4c\u5957\u53e6\u4e00\u4e2a\u5b57\u5178\uff0c\u4ece\u800c\u521b\u5efa\u591a\u5c42\u6b21\u7684\u7ed3\u6784\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">nested_dict = {<\/p>\n<p>    &#39;dict1&#39;: {&#39;id&#39;: 1, &#39;name&#39;: &#39;Alice&#39;},<\/p>\n<p>    &#39;dict2&#39;: {&#39;id&#39;: 2, &#39;name&#39;: &#39;Bob&#39;},<\/p>\n<p>    &#39;dict3&#39;: {&#39;id&#39;: 3, &#39;name&#39;: &#39;Charlie&#39;}<\/p>\n<p>}<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u4e0a\u8ff0\u4ee3\u7801\u4e2d\uff0c\u521b\u5efa\u4e86\u4e00\u4e2a\u540d\u4e3a<code>nested_dict<\/code>\u7684\u5b57\u5178\uff0c\u5176\u4e2d\u5305\u542b\u4e09\u4e2a\u5d4c\u5957\u7684\u5b57\u5178<code>dict1<\/code>\u3001<code>dict2<\/code>\u548c<code>dict3<\/code>\u3002<\/p>\n<\/p>\n<p><p><strong>\u8bbf\u95ee\u548c\u4fee\u6539\u5d4c\u5957\u5b57\u5178<\/strong><\/p>\n<\/p>\n<p><p>\u53ef\u4ee5\u901a\u8fc7\u952e\u7684\u94fe\u5f0f\u8bbf\u95ee\u6765\u83b7\u53d6\u6216\u4fee\u6539\u5d4c\u5957\u5b57\u5178\u4e2d\u7684\u503c\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\"># \u8bbf\u95ee\u5b57\u5178 dict1<\/p>\n<p>dict1 = nested_dict[&#39;dict1&#39;]<\/p>\n<p>print(dict1)  # \u8f93\u51fa: {&#39;id&#39;: 1, &#39;name&#39;: &#39;Alice&#39;}<\/p>\n<h2><strong>\u4fee\u6539\u5b57\u5178 dict2 \u7684 name \u503c<\/strong><\/h2>\n<p>nested_dict[&#39;dict2&#39;][&#39;name&#39;] = &#39;Robert&#39;<\/p>\n<p>print(nested_dict[&#39;dict2&#39;])  # \u8f93\u51fa: {&#39;id&#39;: 2, &#39;name&#39;: &#39;Robert&#39;}<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u4e0a\u8ff0\u4ee3\u7801\u4e2d\uff0c\u901a\u8fc7\u952e<code>&#39;dict1&#39;<\/code>\u8bbf\u95ee\u4e86\u5d4c\u5957\u5b57\u5178<code>dict1<\/code>\uff0c\u5e76\u6253\u5370\u5176\u5185\u5bb9\u3002\u7136\u540e\uff0c\u4fee\u6539\u4e86\u5d4c\u5957\u5b57\u5178<code>dict2<\/code>\u4e2d<code>name<\/code>\u952e\u7684\u503c\uff0c\u5e76\u6253\u5370\u4fee\u6539\u540e\u7684\u5b57\u5178\u3002<\/p>\n<\/p>\n<p><p><strong>\u904d\u5386\u5d4c\u5957\u5b57\u5178<\/strong><\/p>\n<\/p>\n<p><p>\u53ef\u4ee5\u4f7f\u7528\u5d4c\u5957\u7684\u5faa\u73af\u904d\u5386\u5d4c\u5957\u5b57\u5178\u4e2d\u7684\u6bcf\u4e2a\u5b57\u5178\uff0c\u5e76\u8fdb\u884c\u76f8\u5e94\u7684\u64cd\u4f5c\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">for key, value in nested_dict.items():<\/p>\n<p>    print(f&#39;{key}: {value}&#39;)<\/p>\n<p>    value[&#39;processed&#39;] = True  # \u6dfb\u52a0\u65b0\u952e\u503c\u5bf9<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u4e0a\u8ff0\u4ee3\u7801\u4e2d\uff0c\u904d\u5386\u4e86\u5d4c\u5957\u5b57\u5178<code>nested_dict<\/code>\u7684\u6bcf\u4e2a\u952e\u503c\u5bf9\uff0c\u6253\u5370\u5176\u5185\u5bb9\uff0c\u5e76\u5728\u6bcf\u4e2a\u5d4c\u5957\u5b57\u5178\u4e2d\u6dfb\u52a0\u4e86\u4e00\u4e2a\u65b0\u7684\u952e\u503c\u5bf9<code>&#39;processed&#39;: True<\/code>\u3002<\/p>\n<\/p>\n<p><p><strong>\u5229\u7528\u5faa\u73af\u52a8\u6001\u751f\u6210\u5b57\u5178<\/strong><\/p>\n<\/p>\n<p><p>\u5728\u9700\u8981\u751f\u6210\u5927\u91cf\u5b57\u5178\u65f6\uff0c\u4f7f\u7528\u5faa\u73af\u662f\u4e00\u79cd\u9ad8\u6548\u7684\u65b9\u6cd5\u3002\u901a\u8fc7\u5faa\u73af\uff0c\u53ef\u4ee5\u52a8\u6001\u751f\u6210\u5b57\u5178\u5e76\u5c06\u5176\u5b58\u50a8\u5728\u5217\u8868\u6216\u5d4c\u5957\u5b57\u5178\u4e2d\u3002<\/p>\n<\/p>\n<p><p><strong>\u4f7f\u7528\u5faa\u73af\u751f\u6210\u5b57\u5178\u5217\u8868<\/strong><\/p>\n<\/p>\n<p><p>\u53ef\u4ee5\u4f7f\u7528\u5faa\u73af\u751f\u6210\u591a\u4e2a\u5b57\u5178\uff0c\u5e76\u5c06\u5b83\u4eec\u6dfb\u52a0\u5230\u5217\u8868\u4e2d\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">list_of_dicts = []<\/p>\n<p>for i in range(10):<\/p>\n<p>    new_dict = {&#39;id&#39;: i, &#39;value&#39;: f&#39;value_{i}&#39;}<\/p>\n<p>    list_of_dicts.append(new_dict)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u4e0a\u8ff0\u4ee3\u7801\u4e2d\uff0c\u4f7f\u7528\u5faa\u73af\u751f\u6210\u4e8610\u4e2a\u5b57\u5178\uff0c\u6bcf\u4e2a\u5b57\u5178\u5305\u542b<code>id<\/code>\u548c<code>value<\/code>\u4e24\u4e2a\u952e\u503c\u5bf9\uff0c\u5e76\u5c06\u8fd9\u4e9b\u5b57\u5178\u6dfb\u52a0\u5230\u5217\u8868<code>list_of_dicts<\/code>\u4e2d\u3002<\/p>\n<\/p>\n<p><p><strong>\u4f7f\u7528\u5faa\u73af\u751f\u6210\u5d4c\u5957\u5b57\u5178<\/strong><\/p>\n<\/p>\n<p><p>\u540c\u6837\uff0c\u53ef\u4ee5\u4f7f\u7528\u5faa\u73af\u52a8\u6001\u751f\u6210\u5d4c\u5957\u5b57\u5178\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">nested_dict = {}<\/p>\n<p>for i in range(1, 11):<\/p>\n<p>    nested_dict[f&#39;dict{i}&#39;] = {&#39;id&#39;: i, &#39;value&#39;: f&#39;value_{i}&#39;}<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u4e0a\u8ff0\u4ee3\u7801\u4e2d\uff0c\u4f7f\u7528\u5faa\u73af\u751f\u6210\u4e8610\u4e2a\u5d4c\u5957\u5b57\u5178\uff0c\u6bcf\u4e2a\u5d4c\u5957\u5b57\u5178\u5305\u542b<code>id<\/code>\u548c<code>value<\/code>\u4e24\u4e2a\u952e\u503c\u5bf9\uff0c\u5e76\u5c06\u8fd9\u4e9b <\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u5728Python\u4e2d\u540c\u65f6\u521b\u5efa\u591a\u4e2a\u5b57\u5178\uff1f<\/strong><br \/>\u5728Python\u4e2d\uff0c\u60a8\u53ef\u4ee5\u4f7f\u7528\u5b57\u5178\u63a8\u5bfc\u5f0f\u6216\u5faa\u73af\u6765\u540c\u65f6\u521b\u5efa\u591a\u4e2a\u5b57\u5178\u3002\u5b57\u5178\u63a8\u5bfc\u5f0f\u63d0\u4f9b\u4e86\u4e00\u79cd\u7b80\u6d01\u7684\u65b9\u5f0f\u6765\u751f\u6210\u5b57\u5178\u3002\u4f8b\u5982\uff0c\u60a8\u53ef\u4ee5\u4f7f\u7528\u4e00\u4e2a\u5217\u8868\u548c\u4e00\u4e2a\u5b57\u5178\u63a8\u5bfc\u5f0f\u6765\u521b\u5efa\u591a\u4e2a\u5b57\u5178\u3002\u4ee5\u4e0b\u662f\u4e00\u4e2a\u793a\u4f8b\u4ee3\u7801\uff1a<\/p>\n<pre><code class=\"language-python\">keys = [&#39;dict1&#39;, &#39;dict2&#39;, &#39;dict3&#39;]\ndicts = {key: {} for key in keys}\n<\/code><\/pre>\n<p>\u8fd9\u6837\uff0c\u60a8\u5c06\u5f97\u5230\u4e00\u4e2a\u5305\u542b\u4e09\u4e2a\u7a7a\u5b57\u5178\u7684\u5b57\u5178\uff0c\u60a8\u53ef\u4ee5\u6839\u636e\u9700\u8981\u586b\u5145\u5b83\u4eec\u3002<\/p>\n<p><strong>\u5728Python\u4e2d\u5982\u4f55\u4f7f\u7528\u5217\u8868\u751f\u6210\u591a\u4e2a\u5b57\u5178\uff1f<\/strong><br \/>\u4f7f\u7528\u5217\u8868\u53ef\u4ee5\u65b9\u4fbf\u5730\u751f\u6210\u591a\u4e2a\u5b57\u5178\u3002\u4f8b\u5982\uff0c\u60a8\u53ef\u4ee5\u521b\u5efa\u4e00\u4e2a\u5305\u542b\u591a\u4e2a\u5b57\u5178\u7684\u5217\u8868\uff0c\u6bcf\u4e2a\u5b57\u5178\u4ee3\u8868\u4e0d\u540c\u7684\u7ed3\u6784\u6216\u6570\u636e\u3002\u4ee5\u4e0b\u793a\u4f8b\u5c55\u793a\u4e86\u5982\u4f55\u5b9e\u73b0\uff1a<\/p>\n<pre><code class=\"language-python\">dicts_list = [{} for _ in range(3)]\n<\/code><\/pre>\n<p>\u8fd9\u6bb5\u4ee3\u7801\u5c06\u521b\u5efa\u4e00\u4e2a\u5305\u542b\u4e09\u4e2a\u7a7a\u5b57\u5178\u7684\u5217\u8868\uff0c\u60a8\u53ef\u4ee5\u5728\u540e\u7eed\u64cd\u4f5c\u4e2d\u4e3a\u6bcf\u4e2a\u5b57\u5178\u6dfb\u52a0\u952e\u503c\u5bf9\u3002<\/p>\n<p><strong>\u662f\u5426\u53ef\u4ee5\u5728\u521b\u5efa\u5b57\u5178\u65f6\u76f4\u63a5\u521d\u59cb\u5316\u6570\u636e\uff1f<\/strong><br \/>\u786e\u5b9e\u53ef\u4ee5\u76f4\u63a5\u521d\u59cb\u5316\u5b57\u5178\u3002\u5728\u521b\u5efa\u5b57\u5178\u65f6\uff0c\u60a8\u53ef\u4ee5\u540c\u65f6\u6dfb\u52a0\u952e\u503c\u5bf9\u3002\u4ee5\u4e0b\u662f\u4e00\u4e2a\u793a\u4f8b\uff0c\u5c55\u793a\u4e86\u5982\u4f55\u5728\u521b\u5efa\u591a\u4e2a\u5b57\u5178\u65f6\u521d\u59cb\u5316\u6570\u636e\uff1a<\/p>\n<pre><code class=\"language-python\">dicts = {\n    &#39;dict1&#39;: {&#39;name&#39;: &#39;Alice&#39;, &#39;age&#39;: 25},\n    &#39;dict2&#39;: {&#39;name&#39;: &#39;Bob&#39;, &#39;age&#39;: 30},\n    &#39;dict3&#39;: {&#39;name&#39;: &#39;Charlie&#39;, &#39;age&#39;: 35}\n}\n<\/code><\/pre>\n<p>\u5728\u8fd9\u4e2a\u793a\u4f8b\u4e2d\uff0c\u60a8\u521b\u5efa\u4e86\u4e09\u4e2a\u5b57\u5178\uff0c\u5e76\u4e3a\u6bcf\u4e2a\u5b57\u5178\u521d\u59cb\u5316\u4e86\u59d3\u540d\u548c\u5e74\u9f84\u4fe1\u606f\u3002\u8fd9\u79cd\u65b9\u6cd5\u53ef\u4ee5\u5e2e\u52a9\u60a8\u5728\u521b\u5efa\u5b57\u5178\u65f6\u5feb\u901f\u586b\u5145\u6570\u636e\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"search(&quot;python\u5982\u4f55\u4e00\u6b65\u5efa\u7acb\u591a\u4e2a\u5b57\u5178&quot;) \u5728Python\u4e2d\uff0c\u53ef\u4ee5\u901a\u8fc7\u5217\u8868\u5b58\u50a8\u591a [&hellip;]","protected":false},"author":3,"featured_media":1068178,"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\/1068163"}],"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=1068163"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1068163\/revisions"}],"predecessor-version":[{"id":1068181,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1068163\/revisions\/1068181"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/1068178"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=1068163"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=1068163"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=1068163"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}