{"id":1153799,"date":"2025-01-13T17:43:11","date_gmt":"2025-01-13T09:43:11","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1153799.html"},"modified":"2025-01-13T17:43:16","modified_gmt":"2025-01-13T09:43:16","slug":"dict%e6%95%b0%e6%8d%ae%e5%a6%82%e4%bd%95%e5%a5%bd%e7%9c%8bpython","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/1153799.html","title":{"rendered":"dict\u6570\u636e\u5982\u4f55\u597d\u770bpython"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/25183525\/f830de04-4a95-4659-a38f-6e4478402735.webp\" alt=\"dict\u6570\u636e\u5982\u4f55\u597d\u770bpython\" \/><\/p>\n<p><p> <strong>\u4f7f\u7528<code>pprint<\/code>\u6a21\u5757\u3001\u4f7f\u7528<code>json<\/code>\u6a21\u5757\u3001\u4f7f\u7528<code>pandas<\/code>\u6a21\u5757\u3001\u4f7f\u7528<code>tabulate<\/code>\u6a21\u5757<\/strong>\u662f\u5c06Python\u5b57\u5178\u6570\u636e\u5c55\u793a\u5f97\u66f4\u597d\u770b\u7684\u51e0\u79cd\u65b9\u6cd5\u3002\u4e0b\u9762\u6211\u4eec\u8be6\u7ec6\u4ecb\u7ecd\u5176\u4e2d\u4e00\u79cd\u65b9\u6cd5\uff0c\u5373\u4f7f\u7528<code>pprint<\/code>\u6a21\u5757\u3002<\/p>\n<\/p>\n<p><h3>\u4f7f\u7528<code>pprint<\/code>\u6a21\u5757<\/h3>\n<\/p>\n<p><p>Python\u7684<code>pprint<\/code>\u6a21\u5757\u63d0\u4f9b\u4e86\u4e00\u4e2a\u79f0\u4e3a<code>pprint<\/code>\u7684\u51fd\u6570\uff0c\u7528\u4e8e\u201c\u6f02\u4eae\u6253\u5370\u201d\u6570\u636e\u7ed3\u6784\u3002\u8fd9\u4e2a\u51fd\u6570\u53ef\u4ee5\u5c06\u5b57\u5178\u7b49\u590d\u6742\u7684\u6570\u636e\u7ed3\u6784\u4ee5\u4e00\u79cd\u6613\u4e8e\u9605\u8bfb\u7684\u683c\u5f0f\u6253\u5370\u51fa\u6765\u3002\u4f7f\u7528<code>pprint<\/code>\u6a21\u5757\u975e\u5e38\u7b80\u5355\uff0c\u53ea\u9700\u5bfc\u5165\u6a21\u5757\u5e76\u8c03\u7528<code>pprint<\/code>\u51fd\u6570\u5373\u53ef\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import pprint<\/p>\n<p>data = {<\/p>\n<p>    &#39;name&#39;: &#39;John Doe&#39;,<\/p>\n<p>    &#39;age&#39;: 30,<\/p>\n<p>    &#39;address&#39;: {<\/p>\n<p>        &#39;street&#39;: &#39;123 M<a href=\"https:\/\/docs.pingcode.com\/blog\/59162.html\" target=\"_blank\">AI<\/a>n St&#39;,<\/p>\n<p>        &#39;city&#39;: &#39;Anytown&#39;,<\/p>\n<p>        &#39;state&#39;: &#39;CA&#39;,<\/p>\n<p>        &#39;zip&#39;: &#39;12345&#39;<\/p>\n<p>    },<\/p>\n<p>    &#39;phone_numbers&#39;: [<\/p>\n<p>        {&#39;type&#39;: &#39;home&#39;, &#39;number&#39;: &#39;555-555-5555&#39;},<\/p>\n<p>        {&#39;type&#39;: &#39;work&#39;, &#39;number&#39;: &#39;555-555-5556&#39;},<\/p>\n<p>    ],<\/p>\n<p>    &#39;email&#39;: &#39;john.doe@example.com&#39;<\/p>\n<p>}<\/p>\n<p>pprint.pprint(data)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u4f7f\u7528<code>pprint<\/code>\u6a21\u5757\u53ef\u4ee5\u4f7f\u8f93\u51fa\u66f4\u5177\u53ef\u8bfb\u6027\uff0c\u5c24\u5176\u662f\u5728\u5904\u7406\u5d4c\u5957\u7684\u6570\u636e\u7ed3\u6784\u65f6\u3002<\/p>\n<\/p>\n<hr>\n<p><h3>\u4e00\u3001\u4f7f\u7528<code>pprint<\/code>\u6a21\u5757<\/h3>\n<\/p>\n<p><p><code>pprint<\/code>\uff08pretty-print\uff09\u6a21\u5757\u662fPython\u6807\u51c6\u5e93\u7684\u4e00\u90e8\u5206\uff0c\u7528\u4e8e\u4ee5\u4e00\u79cd\u53ef\u8bfb\u7684\u65b9\u5f0f\u6253\u5370\u6570\u636e\u7ed3\u6784\u3002\u5b83\u7279\u522b\u9002\u7528\u4e8e\u5d4c\u5957\u7684\u6570\u636e\u7ed3\u6784\uff0c\u5982\u5b57\u5178\u548c\u5217\u8868\u3002<\/p>\n<\/p>\n<p><h4>1\u3001\u57fa\u672c\u7528\u6cd5<\/h4>\n<\/p>\n<p><p><code>pprint<\/code>\u6a21\u5757\u7684\u4f7f\u7528\u975e\u5e38\u7b80\u5355\uff0c\u53ea\u9700\u5bfc\u5165\u6a21\u5757\u5e76\u8c03\u7528<code>pprint<\/code>\u51fd\u6570\u5373\u53ef\u3002\u4ee5\u4e0b\u662f\u4e00\u4e2a\u7b80\u5355\u7684\u793a\u4f8b\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import pprint<\/p>\n<p>data = {<\/p>\n<p>    &#39;name&#39;: &#39;John Doe&#39;,<\/p>\n<p>    &#39;age&#39;: 30,<\/p>\n<p>    &#39;address&#39;: {<\/p>\n<p>        &#39;street&#39;: &#39;123 Main St&#39;,<\/p>\n<p>        &#39;city&#39;: &#39;Anytown&#39;,<\/p>\n<p>        &#39;state&#39;: &#39;CA&#39;,<\/p>\n<p>        &#39;zip&#39;: &#39;12345&#39;<\/p>\n<p>    },<\/p>\n<p>    &#39;phone_numbers&#39;: [<\/p>\n<p>        {&#39;type&#39;: &#39;home&#39;, &#39;number&#39;: &#39;555-555-5555&#39;},<\/p>\n<p>        {&#39;type&#39;: &#39;work&#39;, &#39;number&#39;: &#39;555-555-5556&#39;},<\/p>\n<p>    ],<\/p>\n<p>    &#39;email&#39;: &#39;john.doe@example.com&#39;<\/p>\n<p>}<\/p>\n<p>pprint.pprint(data)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>2\u3001\u9ad8\u7ea7\u7528\u6cd5<\/h4>\n<\/p>\n<p><p>\u9664\u4e86\u57fa\u672c\u7684\u6253\u5370\u529f\u80fd\uff0c<code>pprint<\/code>\u6a21\u5757\u8fd8\u63d0\u4f9b\u4e86\u4e00\u4e9b\u9ad8\u7ea7\u9009\u9879\uff0c\u53ef\u4ee5\u66f4\u597d\u5730\u63a7\u5236\u8f93\u51fa\u683c\u5f0f\u3002\u4f8b\u5982\uff0c\u60a8\u53ef\u4ee5\u4f7f\u7528<code>width<\/code>\u53c2\u6570\u6765\u8bbe\u7f6e\u6bcf\u884c\u7684\u6700\u5927\u5b57\u7b26\u6570\uff0c\u4f7f\u7528<code>depth<\/code>\u53c2\u6570\u6765\u9650\u5236\u8f93\u51fa\u7684\u5d4c\u5957\u5c42\u6570\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import pprint<\/p>\n<p>data = {<\/p>\n<p>    &#39;name&#39;: &#39;John Doe&#39;,<\/p>\n<p>    &#39;age&#39;: 30,<\/p>\n<p>    &#39;address&#39;: {<\/p>\n<p>        &#39;street&#39;: &#39;123 Main St&#39;,<\/p>\n<p>        &#39;city&#39;: &#39;Anytown&#39;,<\/p>\n<p>        &#39;state&#39;: &#39;CA&#39;,<\/p>\n<p>        &#39;zip&#39;: &#39;12345&#39;<\/p>\n<p>    },<\/p>\n<p>    &#39;phone_numbers&#39;: [<\/p>\n<p>        {&#39;type&#39;: &#39;home&#39;, &#39;number&#39;: &#39;555-555-5555&#39;},<\/p>\n<p>        {&#39;type&#39;: &#39;work&#39;, &#39;number&#39;: &#39;555-555-5556&#39;},<\/p>\n<p>    ],<\/p>\n<p>    &#39;email&#39;: &#39;john.doe@example.com&#39;<\/p>\n<p>}<\/p>\n<p>pprint.pprint(data, width=40, depth=2)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u4e8c\u3001\u4f7f\u7528<code>json<\/code>\u6a21\u5757<\/h3>\n<\/p>\n<p><p><code>json<\/code>\u6a21\u5757\u662fPython\u6807\u51c6\u5e93\u7684\u4e00\u90e8\u5206\uff0c\u7528\u4e8e\u5904\u7406JSON\u6570\u636e\u3002\u867d\u7136\u5b83\u4e3b\u8981\u7528\u4e8e\u5e8f\u5217\u5316\u548c\u53cd\u5e8f\u5217\u5316JSON\u6570\u636e\uff0c\u4f46\u4e5f\u53ef\u4ee5\u7528\u4e8e\u7f8e\u5316\u6253\u5370\u5b57\u5178\u6570\u636e\u3002<\/p>\n<\/p>\n<p><h4>1\u3001\u57fa\u672c\u7528\u6cd5<\/h4>\n<\/p>\n<p><p>\u53ef\u4ee5\u4f7f\u7528<code>json.dumps<\/code>\u51fd\u6570\u5c06\u5b57\u5178\u8f6c\u6362\u4e3a\u683c\u5f0f\u5316\u7684JSON\u5b57\u7b26\u4e32\uff0c\u5e76\u4f7f\u7528<code>indent<\/code>\u53c2\u6570\u6765\u6307\u5b9a\u7f29\u8fdb\u7ea7\u522b\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import json<\/p>\n<p>data = {<\/p>\n<p>    &#39;name&#39;: &#39;John Doe&#39;,<\/p>\n<p>    &#39;age&#39;: 30,<\/p>\n<p>    &#39;address&#39;: {<\/p>\n<p>        &#39;street&#39;: &#39;123 Main St&#39;,<\/p>\n<p>        &#39;city&#39;: &#39;Anytown&#39;,<\/p>\n<p>        &#39;state&#39;: &#39;CA&#39;,<\/p>\n<p>        &#39;zip&#39;: &#39;12345&#39;<\/p>\n<p>    },<\/p>\n<p>    &#39;phone_numbers&#39;: [<\/p>\n<p>        {&#39;type&#39;: &#39;home&#39;, &#39;number&#39;: &#39;555-555-5555&#39;},<\/p>\n<p>        {&#39;type&#39;: &#39;work&#39;, &#39;number&#39;: &#39;555-555-5556&#39;},<\/p>\n<p>    ],<\/p>\n<p>    &#39;email&#39;: &#39;john.doe@example.com&#39;<\/p>\n<p>}<\/p>\n<p>print(json.dumps(data, indent=4))<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>2\u3001\u9ad8\u7ea7\u7528\u6cd5<\/h4>\n<\/p>\n<p><p>\u9664\u4e86\u57fa\u672c\u7684\u7f29\u8fdb\u9009\u9879\uff0c<code>json.dumps<\/code>\u51fd\u6570\u8fd8\u63d0\u4f9b\u4e86\u4e00\u4e9b\u5176\u4ed6\u9009\u9879\uff0c\u5982<code>sort_keys<\/code>\u548c<code>separators<\/code>\uff0c\u53ef\u4ee5\u66f4\u597d\u5730\u63a7\u5236\u8f93\u51fa\u683c\u5f0f\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">print(json.dumps(data, indent=4, sort_keys=True))<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u4e09\u3001\u4f7f\u7528<code>pandas<\/code>\u6a21\u5757<\/h3>\n<\/p>\n<p><p><code>pandas<\/code>\u662fPython\u4e2d\u975e\u5e38\u5f3a\u5927\u7684\u6570\u636e\u5206\u6790\u5e93\uff0c\u53ef\u4ee5\u7528\u6765\u5904\u7406\u8868\u683c\u6570\u636e\u3002\u867d\u7136\u5b83\u4e3b\u8981\u7528\u4e8e\u6570\u636e\u5206\u6790\uff0c\u4f46\u4e5f\u53ef\u4ee5\u7528\u4e8e\u7f8e\u5316\u6253\u5370\u5b57\u5178\u6570\u636e\u3002<\/p>\n<\/p>\n<p><h4>1\u3001\u57fa\u672c\u7528\u6cd5<\/h4>\n<\/p>\n<p><p>\u53ef\u4ee5\u5c06\u5b57\u5178\u8f6c\u6362\u4e3a<code>pandas<\/code>\u7684<code>DataFrame<\/code>\u5bf9\u8c61\uff0c\u5e76\u4f7f\u7528<code>to_string<\/code>\u65b9\u6cd5\u8fdb\u884c\u683c\u5f0f\u5316\u8f93\u51fa\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import pandas as pd<\/p>\n<p>data = {<\/p>\n<p>    &#39;name&#39;: [&#39;John Doe&#39;],<\/p>\n<p>    &#39;age&#39;: [30],<\/p>\n<p>    &#39;address&#39;: [&#39;123 Main St, Anytown, CA, 12345&#39;],<\/p>\n<p>    &#39;phone_numbers&#39;: [[&#39;555-555-5555&#39;, &#39;555-555-5556&#39;]],<\/p>\n<p>    &#39;email&#39;: [&#39;john.doe@example.com&#39;]<\/p>\n<p>}<\/p>\n<p>df = pd.DataFrame(data)<\/p>\n<p>print(df.to_string(index=False))<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>2\u3001\u9ad8\u7ea7\u7528\u6cd5<\/h4>\n<\/p>\n<p><p><code>pandas<\/code>\u63d0\u4f9b\u4e86\u8bb8\u591a\u9009\u9879\uff0c\u53ef\u4ee5\u63a7\u5236\u8f93\u51fa\u683c\u5f0f\uff0c\u5982<code>max_rows<\/code>\u3001<code>max_columns<\/code>\u7b49\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">pd.set_option(&#39;max_rows&#39;, 10)<\/p>\n<p>pd.set_option(&#39;max_columns&#39;, 5)<\/p>\n<p>print(df.to_string(index=False))<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u56db\u3001\u4f7f\u7528<code>tabulate<\/code>\u6a21\u5757<\/h3>\n<\/p>\n<p><p><code>tabulate<\/code>\u662f\u4e00\u4e2a\u7b2c\u4e09\u65b9\u5e93\uff0c\u7528\u4e8e\u5c06\u5217\u8868\u6216\u5b57\u5178\u6570\u636e\u8f6c\u6362\u4e3a\u683c\u5f0f\u5316\u7684\u8868\u683c\u3002\u5b83\u652f\u6301\u591a\u79cd\u8868\u683c\u6837\u5f0f\uff0c\u5982<code>plain<\/code>\u3001<code>grid<\/code>\u3001<code>pipe<\/code>\u7b49\u3002<\/p>\n<\/p>\n<p><h4>1\u3001\u57fa\u672c\u7528\u6cd5<\/h4>\n<\/p>\n<p><p>\u53ef\u4ee5\u4f7f\u7528<code>tabulate<\/code>\u51fd\u6570\u5c06\u5b57\u5178\u6570\u636e\u8f6c\u6362\u4e3a\u8868\u683c\u683c\u5f0f\uff0c\u5e76\u6307\u5b9a\u8868\u683c\u6837\u5f0f\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">from tabulate import tabulate<\/p>\n<p>data = {<\/p>\n<p>    &#39;name&#39;: [&#39;John Doe&#39;],<\/p>\n<p>    &#39;age&#39;: [30],<\/p>\n<p>    &#39;address&#39;: [&#39;123 Main St, Anytown, CA, 12345&#39;],<\/p>\n<p>    &#39;phone_numbers&#39;: [[&#39;555-555-5555&#39;, &#39;555-555-5556&#39;]],<\/p>\n<p>    &#39;email&#39;: [&#39;john.doe@example.com&#39;]<\/p>\n<p>}<\/p>\n<p>print(tabulate(data, headers=&#39;keys&#39;, tablefmt=&#39;grid&#39;))<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>2\u3001\u9ad8\u7ea7\u7528\u6cd5<\/h4>\n<\/p>\n<p><p><code>tabulate<\/code>\u6a21\u5757\u652f\u6301\u591a\u79cd\u8868\u683c\u6837\u5f0f\uff0c\u53ef\u4ee5\u6839\u636e\u9700\u6c42\u9009\u62e9\u5408\u9002\u7684\u6837\u5f0f\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">print(tabulate(data, headers=&#39;keys&#39;, tablefmt=&#39;pipe&#39;))<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u603b\u7ed3<\/h3>\n<\/p>\n<p><p>\u5728Python\u4e2d\uff0c\u6709\u591a\u79cd\u65b9\u6cd5\u53ef\u4ee5\u5c06\u5b57\u5178\u6570\u636e\u5c55\u793a\u5f97\u66f4\u597d\u770b\u3002<strong>\u4f7f\u7528<code>pprint<\/code>\u6a21\u5757\u3001\u4f7f\u7528<code>json<\/code>\u6a21\u5757\u3001\u4f7f\u7528<code>pandas<\/code>\u6a21\u5757\u3001\u4f7f\u7528<code>tabulate<\/code>\u6a21\u5757<\/strong>\u662f\u5176\u4e2d\u8f83\u4e3a\u5e38\u89c1\u548c\u6709\u6548\u7684\u65b9\u6cd5\u3002\u6839\u636e\u5177\u4f53\u9700\u6c42\u548c\u6570\u636e\u7ed3\u6784\u7684\u590d\u6742\u6027\uff0c\u9009\u62e9\u5408\u9002\u7684\u65b9\u6cd5\u53ef\u4ee5\u5927\u5927\u63d0\u9ad8\u6570\u636e\u7684\u53ef\u8bfb\u6027\u548c\u5c55\u793a\u6548\u679c\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u5c06Python\u4e2d\u7684dict\u6570\u636e\u683c\u5f0f\u5316\u4e3a\u66f4\u6613\u8bfb\u7684\u5f62\u5f0f\uff1f<\/strong><br \/>\u5728Python\u4e2d\uff0c\u53ef\u4ee5\u4f7f\u7528<code>pprint<\/code>\u6a21\u5757\u6765\u683c\u5f0f\u5316dict\u6570\u636e\uff0c\u4f7f\u5176\u66f4\u52a0\u6613\u8bfb\u3002<code>pprint<\/code>\u63d0\u4f9b\u4e86\u4e00\u4e2a<code>pprint()<\/code>\u51fd\u6570\uff0c\u53ef\u4ee5\u5c06\u5b57\u5178\u4ee5\u66f4\u6e05\u6670\u7684\u683c\u5f0f\u8f93\u51fa\u3002\u4f8b\u5982\uff0c\u4f7f\u7528<code>from pprint import pprint<\/code>\u5bfc\u5165\u6a21\u5757\u540e\uff0c\u53ef\u4ee5\u76f4\u63a5\u8c03\u7528<code>pprint(your_dict)<\/code>\u6765\u5b9e\u73b0\u5b57\u5178\u7684\u7f8e\u89c2\u8f93\u51fa\u3002<\/p>\n<p><strong>\u5728Python\u4e2d\uff0c\u6709\u54ea\u4e9b\u5e93\u53ef\u4ee5\u5e2e\u52a9\u7f8e\u5316\u5b57\u5178\u6570\u636e\u7684\u8f93\u51fa\uff1f<\/strong><br \/>\u9664\u4e86<code>pprint<\/code>\uff0c\u8fd8\u6709\u5176\u4ed6\u5e93\u53ef\u4ee5\u5e2e\u52a9\u7f8e\u5316\u5b57\u5178\u8f93\u51fa\uff0c\u4f8b\u5982<code>json<\/code>\u5e93\u3002\u901a\u8fc7<code>json.dumps(your_dict, indent=4)<\/code>\u53ef\u4ee5\u5c06\u5b57\u5178\u8f6c\u6362\u4e3a\u683c\u5f0f\u5316\u7684JSON\u5b57\u7b26\u4e32\uff0c<code>indent<\/code>\u53c2\u6570\u7528\u4e8e\u6307\u5b9a\u7f29\u8fdb\u7684\u7a7a\u683c\u6570\uff0c\u4f7f\u5f97\u8f93\u51fa\u66f4\u52a0\u6574\u9f50\u53ef\u8bfb\u3002\u6b64\u5916\uff0c<code>yaml<\/code>\u5e93\u4e5f\u53ef\u4ee5\u7528\u6765\u5c06dict\u6570\u636e\u8f6c\u6362\u4e3aYAML\u683c\u5f0f\uff0c\u540c\u6837\u53ef\u4ee5\u589e\u5f3a\u53ef\u8bfb\u6027\u3002<\/p>\n<p><strong>\u5982\u4f55\u5728Python\u4e2d\u4ee5\u8868\u683c\u5f62\u5f0f\u5c55\u793adict\u6570\u636e\uff1f<\/strong><br \/>\u5982\u679c\u60f3\u8981\u4ee5\u8868\u683c\u5f62\u5f0f\u5c55\u793adict\u6570\u636e\uff0c\u53ef\u4ee5\u8003\u8651\u4f7f\u7528<code>pandas<\/code>\u5e93\u3002\u5c06\u5b57\u5178\u8f6c\u6362\u4e3a<code>DataFrame<\/code>\u540e\uff0c\u53ef\u4ee5\u8f7b\u677e\u5730\u4ee5\u8868\u683c\u65b9\u5f0f\u5448\u73b0\u3002\u4f8b\u5982\uff0c\u901a\u8fc7<code>import pandas as pd<\/code>\u548c<code>df = pd.DataFrame(your_dict)<\/code>\u53ef\u4ee5\u5b9e\u73b0\uff0c\u7136\u540e\u4f7f\u7528<code>print(df)<\/code>\u6765\u8f93\u51fa\u8868\u683c\u3002\u8fd9\u6837\uff0c\u6570\u636e\u7684\u7ed3\u6784\u4e0e\u5173\u7cfb\u4f1a\u66f4\u52a0\u76f4\u89c2\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u4f7f\u7528pprint\u6a21\u5757\u3001\u4f7f\u7528json\u6a21\u5757\u3001\u4f7f\u7528pandas\u6a21\u5757\u3001\u4f7f\u7528tabulate\u6a21\u5757\u662f\u5c06Python\u5b57\u5178\u6570\u636e [&hellip;]","protected":false},"author":3,"featured_media":1153805,"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\/1153799"}],"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=1153799"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1153799\/revisions"}],"predecessor-version":[{"id":1153810,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1153799\/revisions\/1153810"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/1153805"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=1153799"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=1153799"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=1153799"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}