{"id":1121797,"date":"2025-01-08T19:13:32","date_gmt":"2025-01-08T11:13:32","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1121797.html"},"modified":"2025-01-08T19:13:35","modified_gmt":"2025-01-08T11:13:35","slug":"%e5%a6%82%e4%bd%95%e5%b0%86%e8%ae%b0%e4%ba%8b%e6%9c%ac%e8%bd%ac%e5%8c%96%e4%b8%bapython","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/1121797.html","title":{"rendered":"\u5982\u4f55\u5c06\u8bb0\u4e8b\u672c\u8f6c\u5316\u4e3apython"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/25083910\/17ae5e02-09cd-448d-9511-0149528e0960.webp\" alt=\"\u5982\u4f55\u5c06\u8bb0\u4e8b\u672c\u8f6c\u5316\u4e3apython\" \/><\/p>\n<p><p> <strong>\u5c06\u8bb0\u4e8b\u672c\u8f6c\u5316\u4e3aPython\u811a\u672c\u6709\u51e0\u4e2a\u5173\u952e\u6b65\u9aa4\uff1a\u4fdd\u5b58\u6587\u4ef6\u4e3a.py\u683c\u5f0f\u3001\u7f16\u5199\u6709\u6548\u7684Python\u4ee3\u7801\u3001\u786e\u4fdd\u4ee3\u7801\u7684\u6b63\u786e\u7f29\u8fdb\u3001\u4f7f\u7528\u9002\u5f53\u7684\u7f16\u7801\u683c\u5f0f<\/strong>\u3002\u5176\u4e2d\uff0c\u6700\u5173\u952e\u7684\u4e00\u6b65\u662f<strong>\u4fdd\u5b58\u6587\u4ef6\u4e3a.py\u683c\u5f0f<\/strong>\u3002\u8fd9\u4e00\u6b65\u9aa4\u786e\u4fdd\u4e86\u6587\u4ef6\u88ab\u8bc6\u522b\u4e3aPython\u811a\u672c\uff0c\u800c\u4e0d\u662f\u666e\u901a\u7684\u6587\u672c\u6587\u4ef6\u3002\u63a5\u4e0b\u6765\uff0c\u6211\u4eec\u5c06\u8be6\u7ec6\u63cf\u8ff0\u5982\u4f55\u5b8c\u6210\u8fd9\u4e00\u8fc7\u7a0b\u3002<\/p>\n<\/p>\n<hr>\n<p><h3>\u4e00\u3001\u4fdd\u5b58\u6587\u4ef6\u4e3a.py\u683c\u5f0f<\/h3>\n<\/p>\n<p><h4>1. \u6253\u5f00\u8bb0\u4e8b\u672c<\/h4>\n<\/p>\n<p><p>\u9996\u5148\uff0c\u4f7f\u7528\u4efb\u4f55\u6587\u672c\u7f16\u8f91\u5668\uff08\u5982Windows\u81ea\u5e26\u7684\u8bb0\u4e8b\u672c\uff09\u6253\u5f00\u4e00\u4e2a\u65b0\u6587\u4ef6\u6216\u73b0\u6709\u7684\u6587\u672c\u6587\u4ef6\u3002<\/p>\n<\/p>\n<p><h4>2. \u7f16\u5199Python\u4ee3\u7801<\/h4>\n<\/p>\n<p><p>\u5728\u8bb0\u4e8b\u672c\u4e2d\u7f16\u5199\u6709\u6548\u7684Python\u4ee3\u7801\u3002\u4f8b\u5982\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">print(&quot;Hello, World!&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u786e\u4fdd\u4ee3\u7801\u7f29\u8fdb\u6b63\u786e\uff0c\u56e0\u4e3aPython\u5bf9\u7f29\u8fdb\u975e\u5e38\u654f\u611f\u3002<\/p>\n<\/p>\n<p><h4>3. \u4fdd\u5b58\u6587\u4ef6<\/h4>\n<\/p>\n<p><p>\u70b9\u51fb\u201c\u6587\u4ef6\u201d\u83dc\u5355\uff0c\u9009\u62e9\u201c\u53e6\u5b58\u4e3a\u201d\u3002\u5728\u5f39\u51fa\u7684\u4fdd\u5b58\u5bf9\u8bdd\u6846\u4e2d\uff0c\u786e\u4fdd\u6587\u4ef6\u540d\u4ee5\u201c.py\u201d\u7ed3\u5c3e\uff0c\u4f8b\u5982\u201cexample.py\u201d\u3002\u5728\u201c\u4fdd\u5b58\u7c7b\u578b\u201d\u4e0b\u62c9\u83dc\u5355\u4e2d\uff0c\u9009\u62e9\u201c\u6240\u6709\u6587\u4ef6\u201d\uff0c\u7136\u540e\u70b9\u51fb\u201c\u4fdd\u5b58\u201d\u3002<\/p>\n<\/p>\n<p><h3>\u4e8c\u3001\u7f16\u5199\u6709\u6548\u7684Python\u4ee3\u7801<\/h3>\n<\/p>\n<p><h4>1. \u4e86\u89e3Python\u8bed\u6cd5<\/h4>\n<\/p>\n<p><p>\u5728\u7f16\u5199\u4ee3\u7801\u4e4b\u524d\uff0c\u786e\u4fdd\u4f60\u4e86\u89e3Python\u7684\u57fa\u672c\u8bed\u6cd5\u548c\u89c4\u5219\u3002Python\u662f\u4e00\u79cd\u89e3\u91ca\u578b\u8bed\u8a00\uff0c\u5b83\u8981\u6c42\u4ee3\u7801\u6309\u7167\u7279\u5b9a\u7684\u683c\u5f0f\u7f16\u5199\u3002<\/p>\n<\/p>\n<p><h4>2. \u4f7f\u7528\u5408\u9002\u7684\u5e93\u548c\u6a21\u5757<\/h4>\n<\/p>\n<p><p>\u6839\u636e\u4f60\u7684\u9700\u6c42\uff0c\u5bfc\u5165\u5408\u9002\u7684\u5e93\u548c\u6a21\u5757\u3002\u4f8b\u5982\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import math<\/p>\n<p>import os<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u4e9b\u6a21\u5757\u53ef\u4ee5\u5e2e\u52a9\u4f60\u5b8c\u6210\u5404\u79cd\u4efb\u52a1\uff0c\u4ece\u6570\u5b66\u8ba1\u7b97\u5230\u6587\u4ef6\u64cd\u4f5c\u3002<\/p>\n<\/p>\n<p><h4>3. \u7f16\u5199\u51fd\u6570\u548c\u7c7b<\/h4>\n<\/p>\n<p><p>\u5c06\u4f60\u7684\u4ee3\u7801\u7ec4\u7ec7\u6210\u51fd\u6570\u548c\u7c7b\uff0c\u4ee5\u63d0\u9ad8\u4ee3\u7801\u7684\u53ef\u8bfb\u6027\u548c\u53ef\u7ef4\u62a4\u6027\u3002\u4f8b\u5982\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">def greet(name):<\/p>\n<p>    return f&quot;Hello, {name}!&quot;<\/p>\n<p>class Person:<\/p>\n<p>    def __init__(self, name):<\/p>\n<p>        self.name = name<\/p>\n<p>    def greet(self):<\/p>\n<p>        return f&quot;Hello, {self.name}!&quot;<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u4e09\u3001\u786e\u4fdd\u4ee3\u7801\u7684\u6b63\u786e\u7f29\u8fdb<\/h3>\n<\/p>\n<p><h4>1. \u4f7f\u7528\u56db\u4e2a\u7a7a\u683c\u6216\u4e00\u4e2aTab<\/h4>\n<\/p>\n<p><p>Python\u5bf9\u7f29\u8fdb\u975e\u5e38\u654f\u611f\uff0c\u5efa\u8bae\u4f7f\u7528\u56db\u4e2a\u7a7a\u683c\u6216\u4e00\u4e2aTab\u8fdb\u884c\u7f29\u8fdb\u3002\u786e\u4fdd\u4ee3\u7801\u7ed3\u6784\u6e05\u6670\u3002<\/p>\n<\/p>\n<p><h4>2. \u907f\u514d\u6df7\u7528Tab\u548c\u7a7a\u683c<\/h4>\n<\/p>\n<p><p>\u6df7\u7528Tab\u548c\u7a7a\u683c\u4f1a\u5bfc\u81f4\u4ee3\u7801\u8fd0\u884c\u9519\u8bef\uff0c\u786e\u4fdd\u5728\u6574\u4e2a\u6587\u4ef6\u4e2d\u4f7f\u7528\u4e00\u81f4\u7684\u7f29\u8fdb\u65b9\u5f0f\u3002<\/p>\n<\/p>\n<p><h3>\u56db\u3001\u4f7f\u7528\u9002\u5f53\u7684\u7f16\u7801\u683c\u5f0f<\/h3>\n<\/p>\n<p><h4>1. \u8bbe\u7f6e\u6587\u4ef6\u7f16\u7801<\/h4>\n<\/p>\n<p><p>\u5728\u4fdd\u5b58\u6587\u4ef6\u65f6\uff0c\u786e\u4fdd\u9009\u62e9UTF-8\u7f16\u7801\u683c\u5f0f\u3002\u8fd9\u5c06\u786e\u4fdd\u6587\u4ef6\u5728\u4e0d\u540c\u5e73\u53f0\u4e0a\u90fd\u80fd\u6b63\u786e\u8bfb\u53d6\u3002<\/p>\n<\/p>\n<p><h4>2. \u6dfb\u52a0\u7f16\u7801\u58f0\u660e<\/h4>\n<\/p>\n<p><p>\u5728\u6587\u4ef6\u7684\u5f00\u5934\u6dfb\u52a0\u7f16\u7801\u58f0\u660e\uff0c\u5c24\u5176\u662f\u5f53\u6587\u4ef6\u5305\u542b\u975eASCII\u5b57\u7b26\u65f6\u3002\u4f8b\u5982\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\"># -*- coding: utf-8 -*-<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u4e94\u3001\u6d4b\u8bd5\u548c\u8c03\u8bd5<\/h3>\n<\/p>\n<p><h4>1. \u8fd0\u884cPython\u811a\u672c<\/h4>\n<\/p>\n<p><p>\u5728\u547d\u4ee4\u884c\u6216\u7ec8\u7aef\u4e2d\uff0c\u5bfc\u822a\u5230\u6587\u4ef6\u6240\u5728\u76ee\u5f55\uff0c\u8f93\u5165\u4ee5\u4e0b\u547d\u4ee4\u8fd0\u884c\u811a\u672c\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">python example.py<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>2. \u8c03\u8bd5\u548c\u4fee\u6b63\u9519\u8bef<\/h4>\n<\/p>\n<p><p>\u5982\u679c\u811a\u672c\u8fd0\u884c\u8fc7\u7a0b\u4e2d\u51fa\u73b0\u9519\u8bef\uff0c\u6839\u636e\u9519\u8bef\u63d0\u793a\u8fdb\u884c\u8c03\u8bd5\u548c\u4fee\u6b63\u3002\u786e\u4fdd\u4ee3\u7801\u65e0\u8bef\u3002<\/p>\n<\/p>\n<p><h3>\u516d\u3001\u4f7f\u7528\u96c6\u6210\u5f00\u53d1\u73af\u5883\uff08IDE\uff09<\/h3>\n<\/p>\n<p><h4>1. \u9009\u62e9\u9002\u5408\u7684IDE<\/h4>\n<\/p>\n<p><p>\u4f7f\u7528\u96c6\u6210\u5f00\u53d1\u73af\u5883\uff08\u5982PyCharm\u3001VS Code\u7b49\uff09\u53ef\u4ee5\u5927\u5927\u63d0\u9ad8\u5f00\u53d1\u6548\u7387\u3002\u8fd9\u4e9bIDE\u63d0\u4f9b\u4e86\u4ee3\u7801\u9ad8\u4eae\u3001\u81ea\u52a8\u8865\u5168\u548c\u8c03\u8bd5\u5de5\u5177\u3002<\/p>\n<\/p>\n<p><h4>2. \u5bfc\u5165\u8bb0\u4e8b\u672c\u6587\u4ef6<\/h4>\n<\/p>\n<p><p>\u5c06\u8bb0\u4e8b\u672c\u6587\u4ef6\u5bfc\u5165\u5230IDE\u4e2d\uff0c\u7ee7\u7eed\u7f16\u8f91\u548c\u8c03\u8bd5\u4ee3\u7801\u3002IDE\u63d0\u4f9b\u7684\u5de5\u5177\u53ef\u4ee5\u5e2e\u52a9\u4f60\u66f4\u5feb\u5730\u53d1\u73b0\u548c\u4fee\u6b63\u9519\u8bef\u3002<\/p>\n<\/p>\n<p><h3>\u4e03\u3001\u7248\u672c\u63a7\u5236<\/h3>\n<\/p>\n<p><h4>1. \u4f7f\u7528Git\u8fdb\u884c\u7248\u672c\u63a7\u5236<\/h4>\n<\/p>\n<p><p>\u5c06Python\u811a\u672c\u7eb3\u5165\u7248\u672c\u63a7\u5236\u7cfb\u7edf\uff08\u5982Git\uff09\uff0c\u4ee5\u4fbf\u8ddf\u8e2a\u4ee3\u7801\u7684\u66f4\u6539\u5386\u53f2\u3002\u521b\u5efa\u4e00\u4e2aGit\u4ed3\u5e93\uff0c\u6dfb\u52a0\u6587\u4ef6\u5e76\u63d0\u4ea4\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">git init<\/p>\n<p>git add example.py<\/p>\n<p>git commit -m &quot;Initial commit&quot;<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>2. \u4e0e\u56e2\u961f\u534f\u4f5c<\/h4>\n<\/p>\n<p><p>\u5982\u679c\u4f60\u5728\u56e2\u961f\u4e2d\u5de5\u4f5c\uff0c\u4f7f\u7528GitHub\u3001GitLab\u7b49\u5e73\u53f0\u8fdb\u884c\u534f\u4f5c\uff0c\u5171\u4eab\u4ee3\u7801\u548c\u8fdb\u884c\u4ee3\u7801\u8bc4\u5ba1\u3002<\/p>\n<\/p>\n<p><h3>\u516b\u3001\u53d1\u5e03\u548c\u5206\u4eab<\/h3>\n<\/p>\n<p><h4>1. \u521b\u5efa\u6587\u6863<\/h4>\n<\/p>\n<p><p>\u4e3a\u4f60\u7684Python\u811a\u672c\u521b\u5efa\u6587\u6863\uff0c\u89e3\u91ca\u4ee3\u7801\u7684\u529f\u80fd\u548c\u4f7f\u7528\u65b9\u6cd5\u3002\u8fd9\u53ef\u4ee5\u5e2e\u52a9\u5176\u4ed6\u4eba\u7406\u89e3\u548c\u4f7f\u7528\u4f60\u7684\u4ee3\u7801\u3002<\/p>\n<\/p>\n<p><h4>2. \u53d1\u5e03\u5230PyPI<\/h4>\n<\/p>\n<p><p>\u5982\u679c\u4f60\u7684\u811a\u672c\u662f\u4e00\u4e2a\u6709\u7528\u7684\u5de5\u5177\u6216\u5e93\uff0c\u53ef\u4ee5\u5c06\u5176\u6253\u5305\u5e76\u53d1\u5e03\u5230Python Package Index (PyPI)\uff0c\u4f9b\u5176\u4ed6\u4eba\u5b89\u88c5\u548c\u4f7f\u7528\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">python setup.py sdist<\/p>\n<p>twine upload dist\/*<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u4e5d\u3001\u6301\u7eed\u5b66\u4e60\u548c\u6539\u8fdb<\/h3>\n<\/p>\n<p><h4>1. \u5b66\u4e60Python\u9ad8\u7ea7\u7279\u6027<\/h4>\n<\/p>\n<p><p>\u4e0d\u65ad\u5b66\u4e60Python\u7684\u65b0\u7279\u6027\u548c\u9ad8\u7ea7\u7528\u6cd5\uff0c\u5982\u751f\u6210\u5668\u3001\u88c5\u9970\u5668\u548c\u4e0a\u4e0b\u6587\u7ba1\u7406\u5668\uff0c\u4ee5\u63d0\u9ad8\u4ee3\u7801\u8d28\u91cf\u548c\u6548\u7387\u3002<\/p>\n<\/p>\n<p><h4>2. \u53c2\u4e0e\u793e\u533a<\/h4>\n<\/p>\n<p><p>\u53c2\u4e0ePython\u793e\u533a\uff0c\u901a\u8fc7\u8d21\u732e\u5f00\u6e90\u9879\u76ee\u3001\u53c2\u52a0\u6280\u672f\u4f1a\u8bae\u548c\u5728\u7ebf\u8ba8\u8bba\uff0c\u63d0\u5347\u81ea\u5df1\u7684\u6280\u80fd\u548c\u77e5\u8bc6\u3002<\/p>\n<\/p>\n<p><h3>\u5341\u3001\u603b\u7ed3<\/h3>\n<\/p>\n<p><p>\u5c06\u8bb0\u4e8b\u672c\u8f6c\u5316\u4e3aPython\u811a\u672c\u662f\u4e00\u4e2a\u7b80\u5355\u4f46\u9700\u8981\u6ce8\u610f\u7ec6\u8282\u7684\u8fc7\u7a0b\u3002\u4ece\u4fdd\u5b58\u6587\u4ef6\u4e3a.py\u683c\u5f0f\uff0c\u5230\u7f16\u5199\u6709\u6548\u7684Python\u4ee3\u7801\uff0c\u786e\u4fdd\u4ee3\u7801\u7684\u6b63\u786e\u7f29\u8fdb\u548c\u7f16\u7801\u683c\u5f0f\uff0c\u6bcf\u4e00\u6b65\u90fd\u81f3\u5173\u91cd\u8981\u3002\u901a\u8fc7\u4f7f\u7528\u96c6\u6210\u5f00\u53d1\u73af\u5883\u548c\u7248\u672c\u63a7\u5236\u5de5\u5177\uff0c\u53ef\u4ee5\u63d0\u9ad8\u5f00\u53d1\u6548\u7387\u548c\u4ee3\u7801\u8d28\u91cf\u3002\u4e0d\u65ad\u5b66\u4e60\u548c\u53c2\u4e0e\u793e\u533a\u6d3b\u52a8\uff0c\u53ef\u4ee5\u5e2e\u52a9\u4f60\u6210\u4e3a\u4e00\u540d\u66f4\u52a0\u51fa\u8272\u7684Python\u5f00\u53d1\u8005\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u5c06\u8bb0\u4e8b\u672c\u4e2d\u7684\u6587\u672c\u6570\u636e\u5bfc\u5165\u5230Python\u4e2d\u8fdb\u884c\u5904\u7406\uff1f<\/strong><br \/>\u8981\u5c06\u8bb0\u4e8b\u672c\u4e2d\u7684\u6587\u672c\u6570\u636e\u5bfc\u5165\u5230Python\u4e2d\uff0c\u53ef\u4ee5\u4f7f\u7528\u5185\u7f6e\u7684\u6587\u4ef6\u8bfb\u53d6\u529f\u80fd\u3002\u60a8\u53ef\u4ee5\u4f7f\u7528<code>open()<\/code>\u51fd\u6570\u6253\u5f00\u6587\u4ef6\uff0c\u7136\u540e\u4f7f\u7528<code>read()<\/code>\u6216<code>readlines()<\/code>\u65b9\u6cd5\u8bfb\u53d6\u6587\u4ef6\u5185\u5bb9\u3002\u4ee5\u4e0b\u662f\u4e00\u4e2a\u7b80\u5355\u7684\u793a\u4f8b\uff1a  <\/p>\n<pre><code class=\"language-python\">with open(&#39;your_file.txt&#39;, &#39;r&#39;) as file:\n    data = file.read()\nprint(data)\n<\/code><\/pre>\n<p>\u8fd9\u6bb5\u4ee3\u7801\u4f1a\u5c06\u8bb0\u4e8b\u672c\u4e2d\u7684\u6240\u6709\u6587\u672c\u8bfb\u53d6\u5230\u53d8\u91cf<code>data<\/code>\u4e2d\uff0c\u60a8\u53ef\u4ee5\u6839\u636e\u9700\u8981\u8fdb\u4e00\u6b65\u5904\u7406\u8fd9\u4e9b\u6570\u636e\u3002<\/p>\n<p><strong>\u8bb0\u4e8b\u672c\u6587\u4ef6\u9700\u8981\u4ec0\u4e48\u683c\u5f0f\u624d\u80fd\u5728Python\u4e2d\u4f7f\u7528\uff1f<\/strong><br \/>\u8bb0\u4e8b\u672c\u6587\u4ef6\uff08.txt\uff09\u901a\u5e38\u4ee5\u7eaf\u6587\u672c\u683c\u5f0f\u4fdd\u5b58\uff0c\u53ef\u4ee5\u76f4\u63a5\u5728Python\u4e2d\u4f7f\u7528\u3002\u786e\u4fdd\u6587\u4ef6\u4e2d\u6ca1\u6709\u7279\u6b8a\u5b57\u7b26\u6216\u683c\u5f0f\u5316\u4fe1\u606f\uff0c\u8fd9\u6837\u53ef\u4ee5\u907f\u514d\u5728\u8bfb\u53d6\u65f6\u51fa\u73b0\u95ee\u9898\u3002\u60a8\u53ef\u4ee5\u5728\u8bb0\u4e8b\u672c\u4e2d\u8f93\u5165\u7b80\u5355\u7684\u6587\u672c\uff0cPython\u4f1a\u5f88\u5bb9\u6613\u8bfb\u53d6\u5e76\u5904\u7406\u8fd9\u4e9b\u5185\u5bb9\u3002<\/p>\n<p><strong>\u5982\u4f55\u5c06\u8bb0\u4e8b\u672c\u4e2d\u7684\u6570\u636e\u8f6c\u6362\u4e3aPython\u7684\u6570\u636e\u7ed3\u6784\uff1f<\/strong><br \/>\u5982\u679c\u8bb0\u4e8b\u672c\u4e2d\u7684\u6570\u636e\u662f\u4ee5\u7279\u5b9a\u683c\u5f0f\uff08\u5982CSV\u6216JSON\uff09\u5b58\u50a8\u7684\uff0c\u60a8\u53ef\u4ee5\u4f7f\u7528\u76f8\u5173\u7684\u5e93\u6765\u89e3\u6790\u8fd9\u4e9b\u6570\u636e\u3002\u5bf9\u4e8eCSV\u683c\u5f0f\uff0c\u53ef\u4ee5\u4f7f\u7528<code>csv<\/code>\u6a21\u5757\uff1b\u5bf9\u4e8eJSON\u683c\u5f0f\uff0c\u53ef\u4ee5\u4f7f\u7528<code>json<\/code>\u6a21\u5757\u3002\u4f8b\u5982\uff0c\u8bfb\u53d6CSV\u6587\u4ef6\u7684\u793a\u4f8b\u4ee3\u7801\u5982\u4e0b\uff1a  <\/p>\n<pre><code class=\"language-python\">import csv\n\nwith open(&#39;your_file.csv&#39;, &#39;r&#39;) as file:\n    reader = csv.reader(file)\n    for row in reader:\n        print(row)\n<\/code><\/pre>\n<p>\u8fd9\u6837\u60a8\u5c31\u80fd\u5c06\u8bb0\u4e8b\u672c\u4e2d\u7684\u6570\u636e\u8f6c\u6362\u4e3aPython\u4e2d\u7684\u5217\u8868\u6216\u5b57\u5178\u7b49\u6570\u636e\u7ed3\u6784\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u5c06\u8bb0\u4e8b\u672c\u8f6c\u5316\u4e3aPython\u811a\u672c\u6709\u51e0\u4e2a\u5173\u952e\u6b65\u9aa4\uff1a\u4fdd\u5b58\u6587\u4ef6\u4e3a.py\u683c\u5f0f\u3001\u7f16\u5199\u6709\u6548\u7684Python\u4ee3\u7801\u3001\u786e\u4fdd\u4ee3\u7801\u7684\u6b63\u786e [&hellip;]","protected":false},"author":3,"featured_media":1121803,"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\/1121797"}],"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=1121797"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1121797\/revisions"}],"predecessor-version":[{"id":1121804,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1121797\/revisions\/1121804"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/1121803"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=1121797"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=1121797"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=1121797"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}