{"id":1088805,"date":"2025-01-08T13:47:40","date_gmt":"2025-01-08T05:47:40","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1088805.html"},"modified":"2025-01-08T13:47:42","modified_gmt":"2025-01-08T05:47:42","slug":"python%e5%a6%82%e4%bd%95%e7%bc%a9%e8%bf%9b2%e4%b8%aa%e5%ad%97%e7%ac%a6-2","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/1088805.html","title":{"rendered":"Python\u5982\u4f55\u7f29\u8fdb2\u4e2a\u5b57\u7b26"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/24201103\/79173120-6884-47dd-bb4b-ed1c02ab4faf.webp\" alt=\"Python\u5982\u4f55\u7f29\u8fdb2\u4e2a\u5b57\u7b26\" \/><\/p>\n<p><p> <strong>Python\u7f29\u8fdb2\u4e2a\u5b57\u7b26\u53ef\u4ee5\u901a\u8fc7\u4f7f\u7528\u7a7a\u683c\u3001\u7f16\u8f91\u5668\u914d\u7f6e\u3001\u4ee3\u7801\u683c\u5f0f\u5316\u5de5\u5177\u7b49\u65b9\u5f0f\u6765\u5b9e\u73b0\u3002\u901a\u5e38\u60c5\u51b5\u4e0b\uff0cPython\u63a8\u8350\u4f7f\u75284\u4e2a\u7a7a\u683c\u4f5c\u4e3a\u7f29\u8fdb\uff0c\u4f46\u6839\u636e\u56e2\u961f\u7ea6\u5b9a\u6216\u4e2a\u4eba\u559c\u597d\uff0c\u53ef\u4ee5\u8c03\u6574\u4e3a2\u4e2a\u5b57\u7b26\u3002<\/strong> \u4e0b\u9762\u5c06\u8be6\u7ec6\u4ecb\u7ecd\u5982\u4f55\u5728\u4e0d\u540c\u73af\u5883\u4e0b\u5b9e\u73b02\u4e2a\u5b57\u7b26\u7f29\u8fdb\u3002<\/p>\n<\/p>\n<p><h3>\u4e00\u3001\u4f7f\u7528\u7a7a\u683c\u5b9e\u73b02\u4e2a\u5b57\u7b26\u7f29\u8fdb<\/h3>\n<\/p>\n<p><p>\u5728Python\u4ee3\u7801\u4e2d\uff0c\u53ef\u4ee5\u76f4\u63a5\u4f7f\u7528\u7a7a\u683c\u8fdb\u884c\u7f29\u8fdb\u3002\u867d\u7136Python\u5b98\u65b9\u63a8\u8350\u4f7f\u75284\u4e2a\u7a7a\u683c\uff0c\u4f46\u5982\u679c\u9700\u8981\u4f7f\u75282\u4e2a\u5b57\u7b26\u8fdb\u884c\u7f29\u8fdb\uff0c\u53ef\u4ee5\u624b\u52a8\u8f93\u51652\u4e2a\u7a7a\u683c\u6765\u5b9e\u73b0\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">def example_function():<\/p>\n<p>  print(&quot;This is an example function with 2-character indentation.&quot;)<\/p>\n<p>  if True:<\/p>\n<p>    print(&quot;This line is also indented with 2 characters.&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u4e8c\u3001\u914d\u7f6e\u7f16\u8f91\u5668\u5b9e\u73b02\u4e2a\u5b57\u7b26\u7f29\u8fdb<\/h3>\n<\/p>\n<p><p>\u5927\u591a\u6570\u73b0\u4ee3\u4ee3\u7801\u7f16\u8f91\u5668\u548c\u96c6\u6210\u5f00\u53d1\u73af\u5883\uff08IDE\uff09\u90fd\u5141\u8bb8\u7528\u6237\u914d\u7f6e\u7f29\u8fdb\u5b57\u7b26\u6570\u3002\u4ee5\u4e0b\u662f\u4e00\u4e9b\u5e38\u7528\u7f16\u8f91\u5668\u7684\u914d\u7f6e\u65b9\u6cd5\uff1a<\/p>\n<\/p>\n<p><h4>1. Visual Studio Code (VS Code)<\/h4>\n<\/p>\n<p><p>\u5728VS Code\u4e2d\uff0c\u53ef\u4ee5\u901a\u8fc7\u8bbe\u7f6e\u6587\u4ef6\u6765\u914d\u7f6e\u7f29\u8fdb\u5b57\u7b26\u6570\uff1a<\/p>\n<\/p>\n<ol>\n<li>\u6253\u5f00\u8bbe\u7f6e\u6587\u4ef6\uff08<code>settings.json<\/code>\uff09\u3002<\/li>\n<li>\u6dfb\u52a0\u6216\u4fee\u6539\u4ee5\u4e0b\u914d\u7f6e\u9879\uff1a<\/li>\n<\/ol>\n<p><pre><code class=\"language-json\">{<\/p>\n<p>  &quot;editor.tabSize&quot;: 2,<\/p>\n<p>  &quot;editor.insertSpaces&quot;: true<\/p>\n<p>}<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u5c06\u4f7fVS Code\u5728\u7f16\u8f91Python\u6587\u4ef6\u65f6\u4f7f\u75282\u4e2a\u7a7a\u683c\u8fdb\u884c\u7f29\u8fdb\u3002<\/p>\n<\/p>\n<p><h4>2. PyCharm<\/h4>\n<\/p>\n<p><p>\u5728PyCharm\u4e2d\uff0c\u53ef\u4ee5\u901a\u8fc7\u4ee5\u4e0b\u6b65\u9aa4\u914d\u7f6e\u7f29\u8fdb\u5b57\u7b26\u6570\uff1a<\/p>\n<\/p>\n<ol>\n<li>\u6253\u5f00<code>File<\/code> -&gt; <code>Settings<\/code>\u3002<\/li>\n<li>\u5bfc\u822a\u5230<code>Editor<\/code> -&gt; <code>Code Style<\/code> -&gt; <code>Python<\/code>\u3002<\/li>\n<li>\u5728<code>Tabs and Indents<\/code>\u9009\u9879\u5361\u4e2d\uff0c\u5c06<code>Tab and Indent Size<\/code>\u8bbe\u7f6e\u4e3a2\u3002<\/li>\n<\/ol>\n<p><h4>3. Sublime Text<\/h4>\n<\/p>\n<p><p>\u5728Sublime Text\u4e2d\uff0c\u53ef\u4ee5\u901a\u8fc7\u8bbe\u7f6e\u6587\u4ef6\u6765\u914d\u7f6e\u7f29\u8fdb\u5b57\u7b26\u6570\uff1a<\/p>\n<\/p>\n<ol>\n<li>\u6253\u5f00<code>Preferences<\/code> -&gt; <code>Settings<\/code>\u3002<\/li>\n<li>\u6dfb\u52a0\u6216\u4fee\u6539\u4ee5\u4e0b\u914d\u7f6e\u9879\uff1a<\/li>\n<\/ol>\n<p><pre><code class=\"language-json\">{<\/p>\n<p>  &quot;tab_size&quot;: 2,<\/p>\n<p>  &quot;translate_tabs_to_spaces&quot;: true<\/p>\n<p>}<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u4e09\u3001\u4f7f\u7528\u4ee3\u7801\u683c\u5f0f\u5316\u5de5\u5177<\/h3>\n<\/p>\n<p><p>\u4ee3\u7801\u683c\u5f0f\u5316\u5de5\u5177\u53ef\u4ee5\u81ea\u52a8\u8c03\u6574\u4ee3\u7801\u7f29\u8fdb\uff0c\u4f7f\u5176\u7b26\u5408\u6307\u5b9a\u7684\u98ce\u683c\u6807\u51c6\u3002\u4ee5\u4e0b\u662f\u4e00\u4e9b\u5e38\u7528\u7684\u4ee3\u7801\u683c\u5f0f\u5316\u5de5\u5177\u53ca\u5176\u914d\u7f6e\u65b9\u6cd5\uff1a<\/p>\n<\/p>\n<p><h4>1. Black<\/h4>\n<\/p>\n<p><p><code>Black<\/code>\u662f\u4e00\u4e2a\u6d41\u884c\u7684Python\u4ee3\u7801\u683c\u5f0f\u5316\u5de5\u5177\uff0c\u9ed8\u8ba4\u4f7f\u75284\u4e2a\u7a7a\u683c\u7f29\u8fdb\u3002\u867d\u7136<code>Black<\/code>\u4e0d\u652f\u6301\u76f4\u63a5\u914d\u7f6e\u7f29\u8fdb\u5b57\u7b26\u6570\uff0c\u4f46\u53ef\u4ee5\u901a\u8fc7\u914d\u5408\u5176\u4ed6\u5de5\u5177\u5b9e\u73b02\u4e2a\u5b57\u7b26\u7f29\u8fdb\u3002<\/p>\n<\/p>\n<p><h4>2. autopep8<\/h4>\n<\/p>\n<p><p><code>autopep8<\/code>\u662f\u53e6\u4e00\u4e2a\u6d41\u884c\u7684Python\u4ee3\u7801\u683c\u5f0f\u5316\u5de5\u5177\uff0c\u53ef\u4ee5\u6839\u636ePEP 8\u98ce\u683c\u6307\u5357\u81ea\u52a8\u683c\u5f0f\u5316\u4ee3\u7801\u3002\u867d\u7136<code>autopep8<\/code>\u4e5f\u9ed8\u8ba4\u4f7f\u75284\u4e2a\u7a7a\u683c\u7f29\u8fdb\uff0c\u4f46\u53ef\u4ee5\u901a\u8fc7\u4ee5\u4e0b\u547d\u4ee4\u884c\u53c2\u6570\u5b9e\u73b02\u4e2a\u5b57\u7b26\u7f29\u8fdb\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">autopep8 --indent-size 2 your_script.py<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>3. yapf<\/h4>\n<\/p>\n<p><p><code>yapf<\/code>\u662fGoogle\u5f00\u53d1\u7684\u4ee3\u7801\u683c\u5f0f\u5316\u5de5\u5177\uff0c\u53ef\u4ee5\u901a\u8fc7\u914d\u7f6e\u6587\u4ef6\u8bbe\u7f6e\u7f29\u8fdb\u5b57\u7b26\u6570\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">yapf --style=&quot;{based_on_style: pep8, indent_width: 2}&quot; your_script.py<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u56db\u3001\u56e2\u961f\u7ea6\u5b9a\u548c\u4ee3\u7801\u98ce\u683c\u6307\u5357<\/h3>\n<\/p>\n<p><p>\u867d\u7136Python\u5b98\u65b9\u63a8\u8350\u4f7f\u75284\u4e2a\u7a7a\u683c\u4f5c\u4e3a\u7f29\u8fdb\uff0c\u4f46\u5728\u67d0\u4e9b\u60c5\u51b5\u4e0b\uff0c\u56e2\u961f\u53ef\u80fd\u4f1a\u6839\u636e\u5177\u4f53\u9700\u6c42\u7ea6\u5b9a\u4e0d\u540c\u7684\u7f29\u8fdb\u5b57\u7b26\u6570\u3002\u5728\u8fd9\u79cd\u60c5\u51b5\u4e0b\uff0c\u786e\u4fdd\u56e2\u961f\u6210\u5458\u90fd\u9075\u5faa\u76f8\u540c\u7684\u4ee3\u7801\u98ce\u683c\u6307\u5357\u975e\u5e38\u91cd\u8981\uff0c\u4ee5\u4fdd\u6301\u4ee3\u7801\u5e93\u7684\u4e00\u81f4\u6027\u548c\u53ef\u8bfb\u6027\u3002<\/p>\n<\/p>\n<p><h3>\u4e94\u3001\u7f16\u5199\u53ef\u8bfb\u6027\u4ee3\u7801\u7684\u6700\u4f73\u5b9e\u8df5<\/h3>\n<\/p>\n<p><p>\u65e0\u8bba\u4f7f\u7528\u591a\u5c11\u5b57\u7b26\u8fdb\u884c\u7f29\u8fdb\uff0c\u7f16\u5199\u53ef\u8bfb\u6027\u9ad8\u7684\u4ee3\u7801\u90fd\u662f\u81f3\u5173\u91cd\u8981\u7684\u3002\u4ee5\u4e0b\u662f\u4e00\u4e9b\u7f16\u5199\u53ef\u8bfb\u4ee3\u7801\u7684\u6700\u4f73\u5b9e\u8df5\uff1a<\/p>\n<\/p>\n<ol>\n<li><strong>\u4fdd\u6301\u4e00\u81f4\u6027<\/strong>\uff1a\u786e\u4fdd\u5728\u6574\u4e2a\u9879\u76ee\u4e2d\u4f7f\u7528\u4e00\u81f4\u7684\u7f29\u8fdb\u5b57\u7b26\u6570\u3002<\/li>\n<li><strong>\u9075\u5faaPEP 8<\/strong>\uff1a\u5c3d\u91cf\u9075\u5faaPython\u7684PEP 8\u98ce\u683c\u6307\u5357\uff0c\u4ee5\u63d0\u9ad8\u4ee3\u7801\u7684\u53ef\u8bfb\u6027\u548c\u53ef\u7ef4\u62a4\u6027\u3002<\/li>\n<li><strong>\u4f7f\u7528\u4ee3\u7801\u683c\u5f0f\u5316\u5de5\u5177<\/strong>\uff1a\u4f7f\u7528\u4ee3\u7801\u683c\u5f0f\u5316\u5de5\u5177\u53ef\u4ee5\u81ea\u52a8\u8c03\u6574\u4ee3\u7801\u98ce\u683c\uff0c\u51cf\u5c11\u4eba\u5de5\u8c03\u6574\u7684\u7e41\u7410\u3002<\/li>\n<li><strong>\u6ce8\u91ca\u548c\u6587\u6863<\/strong>\uff1a\u4e3a\u4ee3\u7801\u6dfb\u52a0\u9002\u5f53\u7684\u6ce8\u91ca\u548c\u6587\u6863\uff0c\u4ee5\u4fbf\u4ed6\u4eba\u7406\u89e3\u4ee3\u7801\u7684\u529f\u80fd\u548c\u903b\u8f91\u3002<\/li>\n<li><strong><a href=\"https:\/\/docs.pingcode.com\/code-review\" target=\"_blank\">\u4ee3\u7801\u5ba1\u67e5<\/a><\/strong>\uff1a\u901a\u8fc7\u4ee3\u7801\u5ba1\u67e5\u786e\u4fdd\u56e2\u961f\u6210\u5458\u9075\u5faa\u76f8\u540c\u7684\u4ee3\u7801\u98ce\u683c\u548c\u6700\u4f73\u5b9e\u8df5\u3002<\/li>\n<\/ol>\n<p><h3>\u516d\u3001Python\u7f29\u8fdb\u7684\u91cd\u8981\u6027<\/h3>\n<\/p>\n<p><p>Python\u4f7f\u7528\u7f29\u8fdb\u6765\u8868\u793a\u4ee3\u7801\u5757\uff0c\u56e0\u6b64\u6b63\u786e\u7684\u7f29\u8fdb\u5bf9\u4e8e\u4ee3\u7801\u7684\u6b63\u786e\u6267\u884c\u81f3\u5173\u91cd\u8981\u3002\u4ee5\u4e0b\u662f\u4e00\u4e9b\u5173\u4e8ePython\u7f29\u8fdb\u7684\u91cd\u8981\u6982\u5ff5\uff1a<\/p>\n<\/p>\n<p><h4>1. \u7f29\u8fdb\u7ea7\u522b<\/h4>\n<\/p>\n<p><p>\u6bcf\u4e2a\u7f29\u8fdb\u7ea7\u522b\u901a\u5e38\u8868\u793a\u4e00\u4e2a\u65b0\u7684\u4ee3\u7801\u5757\uff0c\u4f8b\u5982\u51fd\u6570\u5b9a\u4e49\u3001\u5faa\u73af\u4f53\u6216\u6761\u4ef6\u8bed\u53e5\u3002\u4f7f\u7528\u4e00\u81f4\u7684\u7f29\u8fdb\u7ea7\u522b\u53ef\u4ee5\u63d0\u9ad8\u4ee3\u7801\u7684\u53ef\u8bfb\u6027\u548c\u903b\u8f91\u6e05\u6670\u5ea6\u3002<\/p>\n<\/p>\n<p><h4>2. \u6df7\u5408\u7f29\u8fdb<\/h4>\n<\/p>\n<p><p>\u5728Python\u4e2d\uff0c\u6df7\u5408\u4f7f\u7528\u7a7a\u683c\u548c\u5236\u8868\u7b26\u8fdb\u884c\u7f29\u8fdb\u662f\u4e0d\u53ef\u53d6\u7684\uff0c\u56e0\u4e3a\u8fd9\u53ef\u80fd\u4f1a\u5bfc\u81f4\u89e3\u91ca\u5668\u65e0\u6cd5\u6b63\u786e\u89e3\u6790\u4ee3\u7801\u3002\u786e\u4fdd\u4f7f\u7528\u4e00\u81f4\u7684\u7f29\u8fdb\u5b57\u7b26\uff08\u7a7a\u683c\u6216\u5236\u8868\u7b26\uff09\u662f\u4e00\u4e2a\u826f\u597d\u7684\u7f16\u7a0b\u4e60\u60ef\u3002<\/p>\n<\/p>\n<p><h4>3. \u7f29\u8fdb\u9519\u8bef<\/h4>\n<\/p>\n<p><p>\u7f29\u8fdb\u9519\u8bef\u662fPython\u4e2d\u5e38\u89c1\u7684\u8bed\u6cd5\u9519\u8bef\u4e4b\u4e00\u3002\u786e\u4fdd\u5728\u4ee3\u7801\u7f16\u8f91\u5668\u4e2d\u542f\u7528\u663e\u793a\u7a7a\u683c\u548c\u5236\u8868\u7b26\u7684\u529f\u80fd\uff0c\u4ee5\u4fbf\u53ca\u65f6\u53d1\u73b0\u548c\u7ea0\u6b63\u7f29\u8fdb\u9519\u8bef\u3002<\/p>\n<\/p>\n<p><h3>\u4e03\u3001\u603b\u7ed3<\/h3>\n<\/p>\n<p><p>\u5b9e\u73b0Python\u4ee3\u7801\u76842\u4e2a\u5b57\u7b26\u7f29\u8fdb\u53ef\u4ee5\u901a\u8fc7\u591a\u79cd\u65b9\u5f0f\uff0c\u5305\u62ec\u624b\u52a8\u8f93\u5165\u7a7a\u683c\u3001\u914d\u7f6e\u7f16\u8f91\u5668\u548c\u4f7f\u7528\u4ee3\u7801\u683c\u5f0f\u5316\u5de5\u5177\u3002\u65e0\u8bba\u9009\u62e9\u54ea\u79cd\u65b9\u5f0f\uff0c\u4fdd\u6301\u4ee3\u7801\u98ce\u683c\u7684\u4e00\u81f4\u6027\u548c\u53ef\u8bfb\u6027\u90fd\u662f\u81f3\u5173\u91cd\u8981\u7684\u3002\u901a\u8fc7\u9075\u5faa\u6700\u4f73\u5b9e\u8df5\u548c\u56e2\u961f\u7ea6\u5b9a\uff0c\u53ef\u4ee5\u786e\u4fdd\u4ee3\u7801\u5e93\u7684\u9ad8\u8d28\u91cf\u548c\u53ef\u7ef4\u62a4\u6027\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u5728Python\u4e2d\u8bbe\u7f6e\u7f29\u8fdb\u4e3a\u4e24\u4e2a\u5b57\u7b26\uff1f<\/strong><br \/>\u5728Python\u4e2d\uff0c\u7f29\u8fdb\u901a\u5e38\u662f\u7528\u7a7a\u683c\u6216\u5236\u8868\u7b26\u6765\u5b9e\u73b0\u7684\u3002\u8981\u5c06\u7f29\u8fdb\u8bbe\u7f6e\u4e3a\u4e24\u4e2a\u5b57\u7b26\uff0c\u53ef\u4ee5\u5728\u6587\u672c\u7f16\u8f91\u5668\u6216IDE\u4e2d\u8c03\u6574\u8bbe\u7f6e\uff0c\u786e\u4fdd\u6bcf\u6b21\u6309\u4e0bTab\u952e\u6216\u8f93\u5165\u7a7a\u683c\u65f6\uff0c\u63d2\u5165\u4e24\u4e2a\u7a7a\u683c\u3002\u5927\u591a\u6570\u73b0\u4ee3\u7f16\u8f91\u5668\uff08\u5982VSCode\u3001PyCharm\u7b49\uff09\u90fd\u5141\u8bb8\u60a8\u81ea\u5b9a\u4e49\u7f29\u8fdb\u8bbe\u7f6e\u3002<\/p>\n<p><strong>Python\u7f29\u8fdb\u4e0d\u4e00\u81f4\u4f1a\u5bfc\u81f4\u4ec0\u4e48\u95ee\u9898\uff1f<\/strong><br \/>\u4e0d\u4e00\u81f4\u7684\u7f29\u8fdb\u4f1a\u5bfc\u81f4Python\u89e3\u91ca\u5668\u629b\u51faIndentationError\u9519\u8bef\u3002Python\u5bf9\u7f29\u8fdb\u7684\u8981\u6c42\u975e\u5e38\u4e25\u683c\uff0c\u6240\u6709\u4ee3\u7801\u5757\uff08\u5982\u51fd\u6570\u3001\u5faa\u73af\u548c\u6761\u4ef6\u8bed\u53e5\uff09\u90fd\u5fc5\u987b\u4f7f\u7528\u76f8\u540c\u6570\u91cf\u7684\u7a7a\u683c\u6216\u5236\u8868\u7b26\u8fdb\u884c\u7f29\u8fdb\u3002\u5982\u679c\u60a8\u6df7\u5408\u4f7f\u7528\u4e86\u4e0d\u540c\u7684\u7f29\u8fdb\u65b9\u5f0f\uff0c\u4ee3\u7801\u5c06\u65e0\u6cd5\u6b63\u5e38\u8fd0\u884c\u3002<\/p>\n<p><strong>\u5728\u56e2\u961f\u4e2d\u4f7f\u7528\u4e24\u7a7a\u683c\u7f29\u8fdb\u6709\u4ec0\u4e48\u5efa\u8bae\uff1f<\/strong><br \/>\u5728\u56e2\u961f\u534f\u4f5c\u65f6\uff0c\u7edf\u4e00\u4ee3\u7801\u98ce\u683c\u975e\u5e38\u91cd\u8981\u3002\u5efa\u8bae\u56e2\u961f\u6210\u5458\u8fbe\u6210\u5171\u8bc6\uff0c\u51b3\u5b9a\u4f7f\u7528\u4e24\u4e2a\u7a7a\u683c\u4f5c\u4e3a\u7f29\u8fdb\u98ce\u683c\u3002\u53ef\u4ee5\u901a\u8fc7\u4f7f\u7528\u4ee3\u7801\u683c\u5f0f\u5316\u5de5\u5177\uff08\u5982Black\u3001autopep8\u7b49\uff09\u6765\u81ea\u52a8\u8c03\u6574\u4ee3\u7801\u7f29\u8fdb\uff0c\u4ee5\u786e\u4fdd\u6240\u6709\u4ee3\u7801\u7b26\u5408\u56e2\u961f\u7684\u98ce\u683c\u6307\u5357\u3002\u6b64\u5916\uff0c\u4f7f\u7528\u7248\u672c\u63a7\u5236\u7cfb\u7edf\uff08\u5982Git\uff09\u53ef\u4ee5\u5e2e\u52a9\u8ddf\u8e2a\u4ee3\u7801\u66f4\u6539\uff0c\u5e76\u786e\u4fdd\u56e2\u961f\u6210\u5458\u7684\u4ee3\u7801\u98ce\u683c\u4e00\u81f4\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"Python\u7f29\u8fdb2\u4e2a\u5b57\u7b26\u53ef\u4ee5\u901a\u8fc7\u4f7f\u7528\u7a7a\u683c\u3001\u7f16\u8f91\u5668\u914d\u7f6e\u3001\u4ee3\u7801\u683c\u5f0f\u5316\u5de5\u5177\u7b49\u65b9\u5f0f\u6765\u5b9e\u73b0\u3002\u901a\u5e38\u60c5\u51b5\u4e0b\uff0cPython\u63a8\u8350 [&hellip;]","protected":false},"author":3,"featured_media":1088817,"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\/1088805"}],"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=1088805"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1088805\/revisions"}],"predecessor-version":[{"id":1088818,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1088805\/revisions\/1088818"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/1088817"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=1088805"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=1088805"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=1088805"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}