{"id":956347,"date":"2024-12-27T02:33:02","date_gmt":"2024-12-26T18:33:02","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/956347.html"},"modified":"2024-12-27T02:33:05","modified_gmt":"2024-12-26T18:33:05","slug":"python%e5%a6%82%e4%bd%95%e6%98%be%e7%a4%ba%e5%ad%97%e5%85%b8%e9%a1%b9","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/956347.html","title":{"rendered":"python\u5982\u4f55\u663e\u793a\u5b57\u5178\u9879"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/25100003\/ab0cb0f5-54aa-4114-a97d-880f9e6c5692.webp\" alt=\"python\u5982\u4f55\u663e\u793a\u5b57\u5178\u9879\" \/><\/p>\n<p><p> <strong>\u5728Python\u4e2d\uff0c\u663e\u793a\u5b57\u5178\u9879\u7684\u65b9\u6cd5\u6709\u591a\u79cd\uff0c\u4e3b\u8981\u5305\u62ec\uff1a\u76f4\u63a5\u6253\u5370\u5b57\u5178\u3001\u4f7f\u7528\u5faa\u73af\u904d\u5386\u5b57\u5178\u9879\u3001\u4f7f\u7528\u5b57\u5178\u65b9\u6cd5\u83b7\u53d6\u952e\u503c\u5bf9\u3002<\/strong>\u5e38\u7528\u7684\u65b9\u6cd5\u662f\u901a\u8fc7\u5faa\u73af\u904d\u5386\u5b57\u5178\u9879\uff0c\u8fd9\u6837\u53ef\u4ee5\u5206\u522b\u8bbf\u95ee\u5b57\u5178\u7684\u952e\u548c\u503c\uff0c\u5e76\u5bf9\u5176\u8fdb\u884c\u5904\u7406\u3002\u5728Python\u4e2d\uff0c\u5b57\u5178\u63d0\u4f9b\u4e86\u4e00\u4e9b\u5185\u7f6e\u65b9\u6cd5\uff0c\u5982<code>items()<\/code>\u3001<code>keys()<\/code>\u3001<code>values()<\/code>\u7b49\uff0c\u53ef\u4ee5\u65b9\u4fbf\u5730\u83b7\u53d6\u5b57\u5178\u7684\u952e\u3001\u503c\u6216\u952e\u503c\u5bf9\u3002\u4e0b\u9762\u5c06\u8be6\u7ec6\u4ecb\u7ecd\u5982\u4f55\u4f7f\u7528\u8fd9\u4e9b\u65b9\u6cd5\u3002<\/p>\n<\/p>\n<p><p>\u4e00\u3001\u76f4\u63a5\u6253\u5370\u5b57\u5178<\/p>\n<\/p>\n<p><p>\u76f4\u63a5\u6253\u5370\u5b57\u5178\u662f\u6700\u7b80\u5355\u7684\u65b9\u6cd5\u4e4b\u4e00\u3002\u901a\u8fc7\u4f7f\u7528Python\u7684<code>print()<\/code>\u51fd\u6570\uff0c\u53ef\u4ee5\u5feb\u901f\u67e5\u770b\u5b57\u5178\u7684\u5168\u90e8\u5185\u5bb9\u3002\u8fd9\u4e2a\u65b9\u6cd5\u9002\u7528\u4e8e\u9700\u8981\u5feb\u901f\u8c03\u8bd5\u6216\u68c0\u67e5\u5b57\u5178\u5185\u5bb9\u7684\u573a\u666f\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">my_dict = {&#39;a&#39;: 1, &#39;b&#39;: 2, &#39;c&#39;: 3}<\/p>\n<p>print(my_dict)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u4f8b\u5b50\u4e2d\uff0c\u76f4\u63a5\u8f93\u51fa<code>my_dict<\/code>\u4f1a\u663e\u793a\u6574\u4e2a\u5b57\u5178\u5185\u5bb9\uff0c\u5305\u62ec\u6240\u6709\u7684\u952e\u548c\u503c\u3002\u7136\u800c\uff0c\u8fd9\u79cd\u65b9\u6cd5\u5728\u5b57\u5178\u5185\u5bb9\u8f83\u591a\u65f6\u4e0d\u591f\u76f4\u89c2\uff0c\u4e0d\u5229\u4e8e\u9010\u9879\u5206\u6790\u3002<\/p>\n<\/p>\n<p><p>\u4e8c\u3001\u4f7f\u7528\u5faa\u73af\u904d\u5386\u5b57\u5178\u9879<\/p>\n<\/p>\n<ol>\n<li><strong>\u4f7f\u7528<code>for<\/code>\u5faa\u73af\u904d\u5386\u5b57\u5178<\/strong><\/li>\n<\/ol>\n<p><p>\u4f7f\u7528<code>for<\/code>\u5faa\u73af\u7ed3\u5408\u5b57\u5178\u7684<code>items()<\/code>\u65b9\u6cd5\uff0c\u53ef\u4ee5\u904d\u5386\u5b57\u5178\u4e2d\u7684\u6bcf\u4e00\u4e2a\u952e\u503c\u5bf9\u3002\u8fd9\u79cd\u65b9\u6cd5\u975e\u5e38\u7075\u6d3b\uff0c\u5141\u8bb8\u5728\u904d\u5386\u8fc7\u7a0b\u4e2d\u5bf9\u952e\u548c\u503c\u8fdb\u884c\u4e2a\u6027\u5316\u5904\u7406\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">my_dict = {&#39;a&#39;: 1, &#39;b&#39;: 2, &#39;c&#39;: 3}<\/p>\n<p>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>\u5728\u8fd9\u4e2a\u4f8b\u5b50\u4e2d\uff0c<code>my_dict.items()<\/code>\u8fd4\u56de\u4e00\u4e2a\u5305\u542b\u6240\u6709\u952e\u503c\u5bf9\u7684\u89c6\u56fe\u5bf9\u8c61\uff0c<code>for<\/code>\u5faa\u73af\u4f1a\u4f9d\u6b21\u8bbf\u95ee\u6bcf\u4e2a\u952e\u503c\u5bf9\uff0c\u5e76\u5c06\u952e\u548c\u503c\u5206\u522b\u8d4b\u7ed9<code>key<\/code>\u548c<code>value<\/code>\u53d8\u91cf\uff0c\u7136\u540e\u5728\u5faa\u73af\u4f53\u4e2d\u5904\u7406\u3002<\/p>\n<\/p>\n<ol start=\"2\">\n<li><strong>\u4f7f\u7528<code>for<\/code>\u5faa\u73af\u904d\u5386\u5b57\u5178\u7684\u952e<\/strong><\/li>\n<\/ol>\n<p><p>\u5982\u679c\u53ea\u9700\u8981\u8bbf\u95ee\u5b57\u5178\u4e2d\u7684\u952e\uff0c\u53ef\u4ee5\u4f7f\u7528<code>for<\/code>\u5faa\u73af\u7ed3\u5408\u5b57\u5178\u7684<code>keys()<\/code>\u65b9\u6cd5\u3002<code>keys()<\/code>\u65b9\u6cd5\u8fd4\u56de\u4e00\u4e2a\u5305\u542b\u5b57\u5178\u6240\u6709\u952e\u7684\u89c6\u56fe\u5bf9\u8c61\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">my_dict = {&#39;a&#39;: 1, &#39;b&#39;: 2, &#39;c&#39;: 3}<\/p>\n<p>for key in my_dict.keys():<\/p>\n<p>    print(f&quot;Key: {key}&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u4f8b\u5b50\u4e2d\uff0c<code>my_dict.keys()<\/code>\u8fd4\u56de\u4e00\u4e2a\u5305\u542b\u5b57\u5178\u6240\u6709\u952e\u7684\u89c6\u56fe\u5bf9\u8c61\uff0c<code>for<\/code>\u5faa\u73af\u4f1a\u4f9d\u6b21\u8bbf\u95ee\u6bcf\u4e2a\u952e\u3002<\/p>\n<\/p>\n<ol start=\"3\">\n<li><strong>\u4f7f\u7528<code>for<\/code>\u5faa\u73af\u904d\u5386\u5b57\u5178\u7684\u503c<\/strong><\/li>\n<\/ol>\n<p><p>\u540c\u6837\u5730\uff0c\u5982\u679c\u53ea\u9700\u8981\u8bbf\u95ee\u5b57\u5178\u4e2d\u7684\u503c\uff0c\u53ef\u4ee5\u4f7f\u7528<code>for<\/code>\u5faa\u73af\u7ed3\u5408\u5b57\u5178\u7684<code>values()<\/code>\u65b9\u6cd5\u3002<code>values()<\/code>\u65b9\u6cd5\u8fd4\u56de\u4e00\u4e2a\u5305\u542b\u5b57\u5178\u6240\u6709\u503c\u7684\u89c6\u56fe\u5bf9\u8c61\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">my_dict = {&#39;a&#39;: 1, &#39;b&#39;: 2, &#39;c&#39;: 3}<\/p>\n<p>for value in my_dict.values():<\/p>\n<p>    print(f&quot;Value: {value}&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u4f8b\u5b50\u4e2d\uff0c<code>my_dict.values()<\/code>\u8fd4\u56de\u4e00\u4e2a\u5305\u542b\u5b57\u5178\u6240\u6709\u503c\u7684\u89c6\u56fe\u5bf9\u8c61\uff0c<code>for<\/code>\u5faa\u73af\u4f1a\u4f9d\u6b21\u8bbf\u95ee\u6bcf\u4e2a\u503c\u3002<\/p>\n<\/p>\n<p><p>\u4e09\u3001\u4f7f\u7528\u5b57\u5178\u65b9\u6cd5\u83b7\u53d6\u952e\u503c\u5bf9<\/p>\n<\/p>\n<ol>\n<li><strong>\u4f7f\u7528<code>items()<\/code>\u65b9\u6cd5<\/strong><\/li>\n<\/ol>\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\u8fd9\u4e2a\u5bf9\u8c61\u53ef\u4ee5\u7528\u4e8e\u904d\u5386\u6216\u8f6c\u6362\u4e3a\u5176\u4ed6\u6570\u636e\u7c7b\u578b\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">my_dict = {&#39;a&#39;: 1, &#39;b&#39;: 2, &#39;c&#39;: 3}<\/p>\n<p>items = my_dict.items()<\/p>\n<p>print(items)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u4f8b\u5b50\u4e2d\uff0c<code>items<\/code>\u662f\u4e00\u4e2a\u5305\u542b\u6240\u6709\u952e\u503c\u5bf9\u7684\u89c6\u56fe\u5bf9\u8c61\uff0c\u76f4\u63a5\u6253\u5370\u4f1a\u663e\u793a\u6240\u6709\u952e\u503c\u5bf9\u3002<\/p>\n<\/p>\n<ol start=\"2\">\n<li><strong>\u4f7f\u7528<code>keys()<\/code>\u65b9\u6cd5<\/strong><\/li>\n<\/ol>\n<p><p><code>keys()<\/code>\u65b9\u6cd5\u8fd4\u56de\u4e00\u4e2a\u5305\u542b\u5b57\u5178\u4e2d\u6240\u6709\u952e\u7684\u89c6\u56fe\u5bf9\u8c61\u3002\u8fd9\u4e2a\u65b9\u6cd5\u975e\u5e38\u6709\u7528\uff0c\u5c24\u5176\u662f\u5728\u9700\u8981\u68c0\u67e5\u6216\u4f7f\u7528\u5b57\u5178\u7684\u952e\u65f6\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">my_dict = {&#39;a&#39;: 1, &#39;b&#39;: 2, &#39;c&#39;: 3}<\/p>\n<p>keys = my_dict.keys()<\/p>\n<p>print(keys)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u4f8b\u5b50\u4e2d\uff0c<code>keys<\/code>\u662f\u4e00\u4e2a\u5305\u542b\u6240\u6709\u952e\u7684\u89c6\u56fe\u5bf9\u8c61\uff0c\u76f4\u63a5\u6253\u5370\u4f1a\u663e\u793a\u6240\u6709\u952e\u3002<\/p>\n<\/p>\n<ol start=\"3\">\n<li><strong>\u4f7f\u7528<code>values()<\/code>\u65b9\u6cd5<\/strong><\/li>\n<\/ol>\n<p><p><code>values()<\/code>\u65b9\u6cd5\u8fd4\u56de\u4e00\u4e2a\u5305\u542b\u5b57\u5178\u4e2d\u6240\u6709\u503c\u7684\u89c6\u56fe\u5bf9\u8c61\u3002\u8fd9\u4e2a\u65b9\u6cd5\u975e\u5e38\u6709\u7528\uff0c\u5c24\u5176\u662f\u5728\u9700\u8981\u68c0\u67e5\u6216\u4f7f\u7528\u5b57\u5178\u7684\u503c\u65f6\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">my_dict = {&#39;a&#39;: 1, &#39;b&#39;: 2, &#39;c&#39;: 3}<\/p>\n<p>values = my_dict.values()<\/p>\n<p>print(values)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u4f8b\u5b50\u4e2d\uff0c<code>values<\/code>\u662f\u4e00\u4e2a\u5305\u542b\u6240\u6709\u503c\u7684\u89c6\u56fe\u5bf9\u8c61\uff0c\u76f4\u63a5\u6253\u5370\u4f1a\u663e\u793a\u6240\u6709\u503c\u3002<\/p>\n<\/p>\n<p><p>\u56db\u3001\u4f7f\u7528\u5b57\u5178\u63a8\u5bfc\u5f0f<\/p>\n<\/p>\n<p><p>\u5b57\u5178\u63a8\u5bfc\u5f0f\u662f\u4e00\u79cd\u7b80\u6d01\u7684\u8bed\u6cd5\uff0c\u53ef\u4ee5\u65b9\u4fbf\u5730\u6784\u9020\u548c\u8f6c\u6362\u5b57\u5178\u3002\u5728\u67d0\u4e9b\u60c5\u51b5\u4e0b\uff0c\u53ef\u4ee5\u4f7f\u7528\u5b57\u5178\u63a8\u5bfc\u5f0f\u6765\u5904\u7406\u548c\u663e\u793a\u5b57\u5178\u9879\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">my_dict = {&#39;a&#39;: 1, &#39;b&#39;: 2, &#39;c&#39;: 3}<\/p>\n<p>new_dict = {k: v*2 for k, v in my_dict.items()}<\/p>\n<p>print(new_dict)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u4f8b\u5b50\u4e2d\uff0c\u5b57\u5178\u63a8\u5bfc\u5f0f\u7528\u4e8e\u5c06\u6bcf\u4e2a\u503c\u4e58\u4ee52\uff0c\u5e76\u751f\u6210\u4e00\u4e2a\u65b0\u7684\u5b57\u5178<code>new_dict<\/code>\u3002<\/p>\n<\/p>\n<p><p>\u4e94\u3001\u4f7f\u7528<code>json<\/code>\u6a21\u5757\u683c\u5f0f\u5316\u8f93\u51fa<\/p>\n<\/p>\n<p><p>\u5f53\u5b57\u5178\u5185\u5bb9\u8f83\u591a\u4e14\u7ed3\u6784\u590d\u6742\u65f6\uff0c\u53ef\u4ee5\u4f7f\u7528Python\u7684<code>json<\/code>\u6a21\u5757\u5bf9\u5b57\u5178\u8fdb\u884c\u683c\u5f0f\u5316\u8f93\u51fa\uff0c\u4ee5\u63d0\u9ad8\u53ef\u8bfb\u6027\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import json<\/p>\n<p>my_dict = {&#39;a&#39;: 1, &#39;b&#39;: 2, &#39;c&#39;: 3}<\/p>\n<p>print(json.dumps(my_dict, indent=4))<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u4f8b\u5b50\u4e2d\uff0c<code>json.dumps()<\/code>\u51fd\u6570\u5c06\u5b57\u5178\u8f6c\u6362\u4e3aJSON\u683c\u5f0f\u7684\u5b57\u7b26\u4e32\uff0c<code>indent=4<\/code>\u53c2\u6570\u6307\u5b9a\u7f29\u8fdb\u4e3a4\u4e2a\u7a7a\u683c\uff0c\u4ece\u800c\u751f\u6210\u683c\u5f0f\u5316\u8f93\u51fa\u3002<\/p>\n<\/p>\n<p><p>\u516d\u3001\u603b\u7ed3<\/p>\n<\/p>\n<p><p>\u5728Python\u4e2d\uff0c\u663e\u793a\u5b57\u5178\u9879\u7684\u65b9\u6cd5\u591a\u79cd\u591a\u6837\uff0c\u9009\u62e9\u5408\u9002\u7684\u65b9\u6cd5\u53d6\u51b3\u4e8e\u5177\u4f53\u7684\u9700\u6c42\u548c\u573a\u666f\u3002<strong>\u76f4\u63a5\u6253\u5370\u5b57\u5178\u9002\u7528\u4e8e\u7b80\u5355\u68c0\u67e5\uff0c\u4f7f\u7528\u5faa\u73af\u904d\u5386\u5b57\u5178\u9879\u9002\u7528\u4e8e\u9010\u9879\u5206\u6790\uff0c\u5b57\u5178\u65b9\u6cd5\u63d0\u4f9b\u4e86\u7075\u6d3b\u7684\u952e\u503c\u5bf9\u8bbf\u95ee\u65b9\u5f0f\uff0c\u5b57\u5178\u63a8\u5bfc\u5f0f\u53ef\u4ee5\u7528\u4e8e\u590d\u6742\u7684\u5b57\u5178\u5904\u7406\uff0c<code>json<\/code>\u6a21\u5757\u5219\u63d0\u4f9b\u4e86\u683c\u5f0f\u5316\u8f93\u51fa\u7684\u80fd\u529b\u3002<\/strong>\u901a\u8fc7\u638c\u63e1\u8fd9\u4e9b\u65b9\u6cd5\uff0c\u60a8\u53ef\u4ee5\u66f4\u9ad8\u6548\u5730\u64cd\u4f5c\u548c\u663e\u793aPython\u5b57\u5178\u4e2d\u7684\u6570\u636e\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u5728Python\u4e2d\u4ee5\u7f8e\u89c2\u7684\u65b9\u5f0f\u663e\u793a\u5b57\u5178\u9879\uff1f<\/strong><br \/>\u5728Python\u4e2d\uff0c\u53ef\u4ee5\u4f7f\u7528<code>pprint<\/code>\u6a21\u5757\u6765\u4ee5\u66f4\u7f8e\u89c2\u7684\u683c\u5f0f\u663e\u793a\u5b57\u5178\u9879\u3002\u8fd9\u4e2a\u6a21\u5757\u63d0\u4f9b\u4e86\u4e00\u4e2a<code>pprint<\/code>\u51fd\u6570\uff0c\u53ef\u4ee5\u8ba9\u5b57\u5178\u4ee5\u7f29\u8fdb\u548c\u6362\u884c\u7684\u65b9\u5f0f\u8f93\u51fa\uff0c\u4fbf\u4e8e\u9605\u8bfb\u3002\u4f8b\u5982\uff1a<\/p>\n<pre><code class=\"language-python\">import pprint\n\nmy_dict = {&#39;name&#39;: &#39;Alice&#39;, &#39;age&#39;: 30, &#39;city&#39;: &#39;New York&#39;}\npprint.pprint(my_dict)\n<\/code><\/pre>\n<p>\u8fd9\u79cd\u65b9\u5f0f\u53ef\u4ee5\u6e05\u6670\u5730\u663e\u793a\u5b57\u5178\u7684\u7ed3\u6784\uff0c\u5c24\u5176\u662f\u5728\u5b57\u5178\u8f83\u5927\u65f6\u3002<\/p>\n<p><strong>\u5728Python\u4e2d\u5982\u4f55\u5faa\u73af\u904d\u5386\u5b57\u5178\u5e76\u6253\u5370\u6bcf\u4e2a\u9879\uff1f<\/strong><br \/>\u904d\u5386\u5b57\u5178\u7684\u5e38\u7528\u65b9\u6cd5\u662f\u4f7f\u7528<code>for<\/code>\u5faa\u73af\u3002\u53ef\u4ee5\u901a\u8fc7<code>items()<\/code>\u65b9\u6cd5\u6765\u83b7\u53d6\u5b57\u5178\u7684\u952e\u503c\u5bf9\u3002\u4f8b\u5982\uff1a<\/p>\n<pre><code class=\"language-python\">my_dict = {&#39;name&#39;: &#39;Alice&#39;, &#39;age&#39;: 30, &#39;city&#39;: &#39;New York&#39;}\nfor key, value in my_dict.items():\n    print(f&#39;{key}: {value}&#39;)\n<\/code><\/pre>\n<p>\u8fd9\u79cd\u65b9\u5f0f\u53ef\u4ee5\u8ba9\u4f60\u9010\u4e00\u8f93\u51fa\u6bcf\u4e2a\u952e\u503c\u5bf9\uff0c\u4fbf\u4e8e\u5904\u7406\u6216\u8c03\u8bd5\u3002<\/p>\n<p><strong>\u662f\u5426\u53ef\u4ee5\u5c06\u5b57\u5178\u8f6c\u6362\u4e3a\u5b57\u7b26\u4e32\u4ee5\u4fbf\u4e8e\u663e\u793a\uff1f<\/strong><br \/>\u786e\u5b9e\u53ef\u4ee5\u4f7f\u7528<code>json<\/code>\u6a21\u5757\u5c06\u5b57\u5178\u8f6c\u6362\u4e3aJSON\u683c\u5f0f\u7684\u5b57\u7b26\u4e32\uff0c\u4fbf\u4e8e\u663e\u793a\u548c\u5b58\u50a8\u3002\u901a\u8fc7<code>json.dumps()<\/code>\u65b9\u6cd5\u53ef\u4ee5\u5c06\u5b57\u5178\u8f6c\u4e3a\u5b57\u7b26\u4e32\uff0c\u793a\u4f8b\u5982\u4e0b\uff1a<\/p>\n<pre><code class=\"language-python\">import json\n\nmy_dict = {&#39;name&#39;: &#39;Alice&#39;, &#39;age&#39;: 30, &#39;city&#39;: &#39;New York&#39;}\ndict_string = json.dumps(my_dict, indent=4)\nprint(dict_string)\n<\/code><\/pre>\n<p>\u8fd9\u79cd\u65b9\u6cd5\u4e0d\u4ec5\u53ef\u4ee5\u8ba9\u5b57\u5178\u4ee5\u53ef\u8bfb\u7684\u683c\u5f0f\u663e\u793a\uff0c\u8fd8\u80fd\u65b9\u4fbf\u5730\u8fdb\u884c\u6570\u636e\u4f20\u8f93\u548c\u5b58\u50a8\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u5728Python\u4e2d\uff0c\u663e\u793a\u5b57\u5178\u9879\u7684\u65b9\u6cd5\u6709\u591a\u79cd\uff0c\u4e3b\u8981\u5305\u62ec\uff1a\u76f4\u63a5\u6253\u5370\u5b57\u5178\u3001\u4f7f\u7528\u5faa\u73af\u904d\u5386\u5b57\u5178\u9879\u3001\u4f7f\u7528\u5b57\u5178\u65b9\u6cd5\u83b7\u53d6\u952e\u503c\u5bf9\u3002 [&hellip;]","protected":false},"author":3,"featured_media":956352,"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\/956347"}],"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=956347"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/956347\/revisions"}],"predecessor-version":[{"id":956354,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/956347\/revisions\/956354"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/956352"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=956347"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=956347"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=956347"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}