{"id":959271,"date":"2024-12-27T03:39:11","date_gmt":"2024-12-26T19:39:11","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/959271.html"},"modified":"2024-12-27T03:39:13","modified_gmt":"2024-12-26T19:39:13","slug":"%e5%a6%82%e4%bd%95%e6%89%a7%e8%a1%8c%e4%b8%bb%e7%a8%8b%e5%ba%8fpython","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/959271.html","title":{"rendered":"\u5982\u4f55\u6267\u884c\u4e3b\u7a0b\u5e8fPython"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/25102128\/593cf49c-4d55-4f07-b670-347e337792bf.webp\" alt=\"\u5982\u4f55\u6267\u884c\u4e3b\u7a0b\u5e8fPython\" \/><\/p>\n<p><p> <strong>\u8981\u6267\u884c\u4e3b\u7a0b\u5e8fPython\uff0c\u4f60\u9700\u8981\u786e\u4fdd\u4f60\u7684\u8ba1\u7b97\u673a\u4e0a\u5df2\u7ecf\u5b89\u88c5\u4e86Python\u89e3\u91ca\u5668\u3001\u6b63\u786e\u7f16\u5199\u5e76\u4fdd\u5b58Python\u811a\u672c\u6587\u4ef6\u3001\u5728\u547d\u4ee4\u884c\u6216\u7ec8\u7aef\u4e2d\u5bfc\u822a\u5230\u811a\u672c\u6240\u5728\u76ee\u5f55\u3001\u4f7f\u7528Python\u547d\u4ee4\u6267\u884c\u811a\u672c<\/strong>\u3002\u5176\u4e2d\uff0c\u786e\u4fddPython\u89e3\u91ca\u5668\u5b89\u88c5\u6b63\u786e\u662f\u5173\u952e\uff0c\u56e0\u4e3a\u8fd9\u662f\u8fd0\u884cPython\u811a\u672c\u7684\u57fa\u7840\u3002\u63a5\u4e0b\u6765\uff0c\u6211\u4eec\u5c06\u8be6\u7ec6\u63a2\u8ba8\u5982\u4f55\u786e\u4fdd\u5b89\u88c5\u6b63\u786e\u3001\u7f16\u5199\u548c\u8fd0\u884cPython\u811a\u672c\u7684\u6bcf\u4e00\u4e2a\u6b65\u9aa4\u3002<\/p>\n<\/p>\n<p><p>\u4e00\u3001\u5b89\u88c5\u548c\u914d\u7f6ePython\u89e3\u91ca\u5668<\/p>\n<\/p>\n<p><p>\u5728\u4efb\u4f55\u64cd\u4f5c\u7cfb\u7edf\u4e0a\u8fd0\u884cPython\u7a0b\u5e8f\u7684\u7b2c\u4e00\u6b65\u662f\u786e\u4fddPython\u89e3\u91ca\u5668\u5b89\u88c5\u6b63\u786e\u3002Python\u652f\u6301Windows\u3001macOS\u3001Linux\u7b49\u591a\u79cd\u64cd\u4f5c\u7cfb\u7edf\u3002\u4f60\u53ef\u4ee5\u901a\u8fc7\u4ee5\u4e0b\u6b65\u9aa4\u6765\u5b89\u88c5\u548c\u914d\u7f6ePython\uff1a<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u4e0b\u8f7d\u5b89\u88c5Python<\/strong>\uff1a\u8bbf\u95eePython\u7684\u5b98\u65b9\u7f51\u7ad9\uff08<a href=\"https:\/\/www.python.org\/%EF%BC%89%EF%BC%8C%E4%B8%8B%E8%BD%BD%E6%9C%80%E6%96%B0%E7%89%88%E6%9C%AC%E7%9A%84Python%E3%80%82%E6%A0%B9%E6%8D%AE%E4%BD%A0%E7%9A%84%E6%93%8D%E4%BD%9C%E7%B3%BB%E7%BB%9F%E9%80%89%E6%8B%A9%E5%90%88%E9%80%82%E7%9A%84%E5%AE%89%E8%A3%85%E5%8C%85%EF%BC%8C%E5%B9%B6%E6%8C%89%E7%85%A7%E6%8C%87%E5%BC%95%E5%AE%8C%E6%88%90%E5%AE%89%E8%A3%85%E3%80%82\">https:\/\/www.python.org\/\uff09\uff0c\u4e0b\u8f7d\u6700\u65b0\u7248\u672c\u7684Python\u3002\u6839\u636e\u4f60\u7684\u64cd\u4f5c\u7cfb\u7edf\u9009\u62e9\u5408\u9002\u7684\u5b89\u88c5\u5305\uff0c\u5e76\u6309\u7167\u6307\u5f15\u5b8c\u6210\u5b89\u88c5\u3002<\/a><\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u914d\u7f6e\u73af\u5883\u53d8\u91cf<\/strong>\uff1a\u5bf9\u4e8eWindows\u7528\u6237\uff0c\u901a\u5e38\u9700\u8981\u624b\u52a8\u5c06Python\u6dfb\u52a0\u5230\u7cfb\u7edf\u7684\u73af\u5883\u53d8\u91cf\u4e2d\uff0c\u8fd9\u6837\u624d\u80fd\u5728\u547d\u4ee4\u884c\u4e2d\u76f4\u63a5\u4f7f\u7528Python\u547d\u4ee4\u3002\u5b89\u88c5\u65f6\u52fe\u9009\u201cAdd Python to PATH\u201d\u9009\u9879\u53ef\u4ee5\u81ea\u52a8\u5b8c\u6210\u8fd9\u4e00\u6b65\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u9a8c\u8bc1\u5b89\u88c5<\/strong>\uff1a\u6253\u5f00\u547d\u4ee4\u884c\u6216\u7ec8\u7aef\uff0c\u8f93\u5165<code>python --version<\/code>\u6216<code>python3 --version<\/code>\u67e5\u770b\u662f\u5426\u663e\u793a\u51faPython\u7248\u672c\u53f7\u3002\u82e5\u663e\u793a\u6b63\u786e\u7248\u672c\u53f7\uff0c\u8bf4\u660ePython\u5b89\u88c5\u6210\u529f\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u4e8c\u3001\u7f16\u5199Python\u811a\u672c<\/p>\n<\/p>\n<p><p>\u5728\u6210\u529f\u5b89\u88c5Python\u540e\uff0c\u4e0b\u4e00\u6b65\u662f\u7f16\u5199\u4e00\u4e2aPython\u811a\u672c\u3002Python\u811a\u672c\u901a\u5e38\u4ee5<code>.py<\/code>\u4e3a\u6269\u5c55\u540d\u3002\u4f60\u53ef\u4ee5\u4f7f\u7528\u4efb\u4f55\u6587\u672c\u7f16\u8f91\u5668\u521b\u5efa\u548c\u7f16\u8f91Python\u811a\u672c\uff0c\u4f46\u5efa\u8bae\u4f7f\u7528\u5e26\u6709\u8bed\u6cd5\u9ad8\u4eae\u548c\u81ea\u52a8\u8865\u5168\u529f\u80fd\u7684\u7f16\u8f91\u5668\uff0c\u5982Visual Studio Code\u3001PyCharm\u7b49\u3002<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u521b\u5efaPython\u6587\u4ef6<\/strong>\uff1a\u5728\u4f60\u7684\u5de5\u4f5c\u76ee\u5f55\u4e0b\u521b\u5efa\u4e00\u4e2a\u65b0\u7684\u6587\u4ef6\uff0c\u547d\u540d\u4e3a<code>m<a href=\"https:\/\/docs.pingcode.com\/blog\/59162.html\" target=\"_blank\">AI<\/a>n.py<\/code>\u3002\u8fd9\u4e2a\u6587\u4ef6\u5c06\u5305\u542b\u4f60\u7684Python\u7a0b\u5e8f\u4ee3\u7801\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u7f16\u5199\u4ee3\u7801<\/strong>\uff1a\u5728<code>main.py<\/code>\u4e2d\u7f16\u5199\u4f60\u7684Python\u4ee3\u7801\u3002\u4ee5\u4e0b\u662f\u4e00\u4e2a\u7b80\u5355\u7684Python\u7a0b\u5e8f\u793a\u4f8b\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">def main():<\/p>\n<p>    print(&quot;Hello, World!&quot;)<\/p>\n<p>if __name__ == &quot;__main__&quot;:<\/p>\n<p>    main()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u4e2a\u7a0b\u5e8f\u5b9a\u4e49\u4e86\u4e00\u4e2a<code>main()<\/code>\u51fd\u6570\uff0c\u5e76\u5728\u811a\u672c\u4f5c\u4e3a\u4e3b\u7a0b\u5e8f\u6267\u884c\u65f6\u8c03\u7528\u8be5\u51fd\u6570\u8f93\u51fa\u201cHello, World!\u201d\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u4e09\u3001\u5728\u547d\u4ee4\u884c\u6216\u7ec8\u7aef\u4e2d\u6267\u884cPython\u811a\u672c<\/p>\n<\/p>\n<p><p>\u5b8c\u6210\u811a\u672c\u7f16\u5199\u540e\uff0c\u4f60\u9700\u8981\u5728\u547d\u4ee4\u884c\u6216\u7ec8\u7aef\u4e2d\u6267\u884c\u5b83\u3002\u4ee5\u4e0b\u662f\u5177\u4f53\u6b65\u9aa4\uff1a<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u6253\u5f00\u547d\u4ee4\u884c\u6216\u7ec8\u7aef<\/strong>\uff1a\u5728Windows\u4e0a\uff0c\u53ef\u4ee5\u4f7f\u7528\u201c\u547d\u4ee4\u63d0\u793a\u7b26\u201d\u6216\u201cPowerShell\u201d\uff1b\u5728macOS\u548cLinux\u4e0a\uff0c\u53ef\u4ee5\u4f7f\u7528\u201c\u7ec8\u7aef\u201d\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u5bfc\u822a\u5230\u811a\u672c\u76ee\u5f55<\/strong>\uff1a\u4f7f\u7528<code>cd<\/code>\u547d\u4ee4\u5bfc\u822a\u5230\u4f60\u7684Python\u811a\u672c\u6240\u5728\u7684\u76ee\u5f55\u3002\u4f8b\u5982\uff0c\u5982\u679c\u4f60\u7684\u811a\u672c\u4f4d\u4e8e\u684c\u9762\u4e0a\uff0c\u53ef\u4ee5\u8f93\u5165\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">cd Desktop<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u6267\u884cPython\u811a\u672c<\/strong>\uff1a\u5728\u547d\u4ee4\u884c\u6216\u7ec8\u7aef\u4e2d\u8f93\u5165\u4ee5\u4e0b\u547d\u4ee4\u6765\u8fd0\u884c\u811a\u672c\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">python main.py<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u6216\u8005\u5728\u67d0\u4e9b\u7cfb\u7edf\u4e0a\u4f7f\u7528<code>python3<\/code>\u547d\u4ee4\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">python3 main.py<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u6267\u884c\u540e\uff0c\u4f60\u5e94\u80fd\u770b\u5230\u8f93\u51fa\u7ed3\u679c\u201cHello, World!\u201d\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u56db\u3001\u5e38\u89c1\u95ee\u9898\u53ca\u89e3\u51b3\u65b9\u6848<\/p>\n<\/p>\n<p><p>\u5728\u6267\u884cPython\u811a\u672c\u65f6\uff0c\u53ef\u80fd\u4f1a\u9047\u5230\u4e00\u4e9b\u5e38\u89c1\u95ee\u9898\u3002\u4ee5\u4e0b\u662f\u4e00\u4e9b\u95ee\u9898\u53ca\u5176\u89e3\u51b3\u65b9\u6848\uff1a<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>Python\u547d\u4ee4\u672a\u627e\u5230<\/strong>\uff1a\u8fd9\u901a\u5e38\u662f\u56e0\u4e3aPython\u672a\u6b63\u786e\u6dfb\u52a0\u5230\u7cfb\u7edf\u7684\u73af\u5883\u53d8\u91cf\u3002\u786e\u4fdd\u5728\u5b89\u88c5Python\u65f6\u52fe\u9009\u201cAdd Python to PATH\u201d\u9009\u9879\uff0c\u6216\u8005\u624b\u52a8\u6dfb\u52a0Python\u8def\u5f84\u5230\u7cfb\u7edf\u73af\u5883\u53d8\u91cf\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u7248\u672c\u517c\u5bb9\u6027\u95ee\u9898<\/strong>\uff1a\u5728\u8fd0\u884c\u67d0\u4e9bPython\u4ee3\u7801\u65f6\uff0c\u53ef\u80fd\u4f1a\u56e0\u4e3a\u7248\u672c\u5dee\u5f02\u5bfc\u81f4\u9519\u8bef\u3002\u786e\u4fdd\u4f60\u7684\u4ee3\u7801\u4e0e\u5f53\u524d\u5b89\u88c5\u7684Python\u7248\u672c\u517c\u5bb9\uff0c\u6216\u8005\u8003\u8651\u4f7f\u7528<code>virtualenv<\/code>\u521b\u5efa\u865a\u62df\u73af\u5883\u6765\u7ba1\u7406\u4e0d\u540c\u9879\u76ee\u7684\u4f9d\u8d56\u548cPython\u7248\u672c\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u6743\u9650\u95ee\u9898<\/strong>\uff1a\u5728\u67d0\u4e9b\u7cfb\u7edf\u4e0a\uff0c\u53ef\u80fd\u9700\u8981\u4f7f\u7528\u7ba1\u7406\u5458\u6743\u9650\u6765\u8fd0\u884cPython\u811a\u672c\u6216\u5b89\u88c5\u4f9d\u8d56\u3002\u5728\u8fd9\u79cd\u60c5\u51b5\u4e0b\uff0c\u53ef\u4ee5\u5c1d\u8bd5\u4f7f\u7528<code>sudo<\/code>\u547d\u4ee4\uff08\u9002\u7528\u4e8emacOS\u548cLinux\uff09\u6765\u63d0\u5347\u6743\u9650\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u4e94\u3001\u4f7f\u7528\u96c6\u6210\u5f00\u53d1\u73af\u5883\uff08IDE\uff09\u8fd0\u884cPython\u811a\u672c<\/p>\n<\/p>\n<p><p>\u867d\u7136\u5728\u547d\u4ee4\u884c\u4e2d\u8fd0\u884cPython\u811a\u672c\u662f\u4e86\u89e3\u7a0b\u5e8f\u6267\u884c\u8fc7\u7a0b\u7684\u57fa\u7840\uff0c\u4f46\u4f7f\u7528\u96c6\u6210\u5f00\u53d1\u73af\u5883\uff08IDE\uff09\u53ef\u4ee5\u63d0\u4f9b\u66f4\u5f3a\u5927\u7684\u529f\u80fd\u548c\u66f4\u53cb\u597d\u7684\u7528\u6237\u4f53\u9a8c\u3002\u4ee5\u4e0b\u662f\u4e00\u4e9b\u6d41\u884c\u7684Python IDE\u53ca\u5176\u4f18\u70b9\uff1a<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>PyCharm<\/strong>\uff1a\u7531JetBrains\u5f00\u53d1\uff0c\u662f\u4e00\u6b3e\u529f\u80fd\u5168\u9762\u7684Python IDE\uff0c\u652f\u6301\u8c03\u8bd5\u3001\u4ee3\u7801\u8865\u5168\u3001\u8bed\u6cd5\u9ad8\u4eae\u548c\u7248\u672c\u63a7\u5236\u3002\u5bf9\u4e8e\u9700\u8981\u5f00\u53d1\u590d\u6742Python\u9879\u76ee\u7684\u7528\u6237\uff0cPyCharm\u662f\u4e00\u4e2a\u5f88\u597d\u7684\u9009\u62e9\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>Visual Studio Code<\/strong>\uff1a\u4e00\u6b3e\u8f7b\u91cf\u7ea7\u7684\u4ee3\u7801\u7f16\u8f91\u5668\uff0c\u5177\u6709\u4e30\u5bcc\u7684\u63d2\u4ef6\u751f\u6001\u7cfb\u7edf\u3002\u901a\u8fc7\u5b89\u88c5Python\u63d2\u4ef6\uff0cVS Code\u53ef\u4ee5\u63d0\u4f9b\u7c7b\u4f3cIDE\u7684\u529f\u80fd\uff0c\u5e76\u4e14\u66f4\u7075\u6d3b\u548c\u53ef\u5b9a\u5236\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>Jupyter Notebook<\/strong>\uff1a\u7279\u522b\u9002\u5408\u6570\u636e\u79d1\u5b66\u548c<a href=\"https:\/\/docs.pingcode.com\/ask\/59192.html\" target=\"_blank\">\u673a\u5668\u5b66\u4e60<\/a>\u9886\u57df\u7684Python\u5f00\u53d1\uff0c\u652f\u6301\u4ea4\u4e92\u5f0f\u7f16\u7a0b\u548c\u53ef\u89c6\u5316\u3002\u901a\u8fc7Jupyter Notebook\uff0c\u7528\u6237\u53ef\u4ee5\u5728\u201c\u5355\u5143\u683c\u201d\u4e2d\u7f16\u5199\u548c\u6267\u884c\u4ee3\u7801\uff0c\u5e76\u5b9e\u65f6\u67e5\u770b\u8f93\u51fa\u7ed3\u679c\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u5728\u4f7f\u7528IDE\u65f6\uff0c\u4f60\u53ef\u4ee5\u901a\u8fc7IDE\u5185\u7f6e\u7684\u8fd0\u884c\u6309\u94ae\u6216\u8c03\u8bd5\u5de5\u5177\u6765\u6267\u884cPython\u811a\u672c\uff0c\u800c\u65e0\u9700\u624b\u52a8\u4f7f\u7528\u547d\u4ee4\u884c\u3002\u8fd9\u79cd\u65b9\u5f0f\u4e0d\u4ec5\u7b80\u5316\u4e86\u5f00\u53d1\u6d41\u7a0b\uff0c\u8fd8\u80fd\u63d0\u4f9b\u5b9e\u65f6\u7684\u4ee3\u7801\u53cd\u9988\u548c\u8c03\u8bd5\u652f\u6301\u3002<\/p>\n<\/p>\n<p><p>\u603b\u7ed3<\/p>\n<\/p>\n<p><p>\u6267\u884cPython\u4e3b\u7a0b\u5e8f\u662fPython\u5f00\u53d1\u7684\u57fa\u672c\u6280\u80fd\u3002\u901a\u8fc7\u786e\u4fddPython\u89e3\u91ca\u5668\u6b63\u786e\u5b89\u88c5\u3001\u7f16\u5199\u6709\u6548\u7684Python\u811a\u672c\u3001\u4ee5\u53ca\u5728\u547d\u4ee4\u884c\u6216IDE\u4e2d\u6b63\u786e\u6267\u884c\u811a\u672c\uff0c\u4f60\u53ef\u4ee5\u987a\u5229\u5730\u8fd0\u884c\u548c\u6d4b\u8bd5\u4f60\u7684Python\u7a0b\u5e8f\u3002\u5728\u6b64\u8fc7\u7a0b\u4e2d\uff0c\u638c\u63e1\u5e38\u89c1\u95ee\u9898\u7684\u89e3\u51b3\u65b9\u6848\u548c\u4f7f\u7528\u5408\u9002\u7684\u5f00\u53d1\u5de5\u5177\uff0c\u5c06\u6709\u52a9\u4e8e\u63d0\u5347\u4f60\u7684\u5f00\u53d1\u6548\u7387\u548c\u4ee3\u7801\u8d28\u91cf\u3002\u65e0\u8bba\u662f\u521d\u5b66\u8005\u8fd8\u662f\u7ecf\u9a8c\u4e30\u5bcc\u7684\u5f00\u53d1\u8005\uff0c\u7406\u89e3\u548c\u4f18\u5316Python\u811a\u672c\u7684\u6267\u884c\u6d41\u7a0b\u90fd\u662f\u81f3\u5173\u91cd\u8981\u7684\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u5728Python\u4e2d\u8fd0\u884c\u4e3b\u7a0b\u5e8f\uff1f<\/strong><br \/>\u5728Python\u4e2d\uff0c\u4e3b\u7a0b\u5e8f\u901a\u5e38\u662f\u6307\u6267\u884c\u7684\u5165\u53e3\u70b9\u3002\u8981\u8fd0\u884c\u4e3b\u7a0b\u5e8f\uff0c\u53ef\u4ee5\u4f7f\u7528\u547d\u4ee4\u884c\u5de5\u5177\uff0c\u8f93\u5165<code>python your_script.py<\/code>\uff0c\u5176\u4e2d<code>your_script.py<\/code>\u662f\u4f60\u7684Python\u6587\u4ef6\u540d\u3002\u786e\u4fdd\u4f60\u5728\u7ec8\u7aef\u6216\u547d\u4ee4\u63d0\u793a\u7b26\u4e2d\u5bfc\u822a\u5230\u5305\u542b\u8be5\u6587\u4ef6\u7684\u76ee\u5f55\u3002\u6b64\u5916\uff0c\u786e\u4fdd\u4f60\u7684Python\u73af\u5883\u5df2\u6b63\u786e\u5b89\u88c5\u3002<\/p>\n<p><strong>Python\u811a\u672c\u7684\u5165\u53e3\u70b9\u662f\u4ec0\u4e48\uff1f<\/strong><br \/>\u5728Python\u4e2d\uff0c\u5165\u53e3\u70b9\u901a\u5e38\u662f\u901a\u8fc7<code>if __name__ == &quot;__main__&quot;:<\/code>\u6765\u5b9a\u4e49\u7684\u3002\u8fd9\u6bb5\u4ee3\u7801\u786e\u4fdd\u5f53\u811a\u672c\u88ab\u76f4\u63a5\u8fd0\u884c\u65f6\uff0c\u7279\u5b9a\u7684\u4ee3\u7801\u5757\u4f1a\u88ab\u6267\u884c\uff0c\u800c\u5f53\u811a\u672c\u88ab\u4f5c\u4e3a\u6a21\u5757\u5bfc\u5165\u65f6\uff0c\u8fd9\u6bb5\u4ee3\u7801\u4e0d\u4f1a\u6267\u884c\u3002\u8fd9\u6837\u53ef\u4ee5\u6709\u6548\u5730\u7ec4\u7ec7\u4ee3\u7801\u5e76\u907f\u514d\u4e0d\u5fc5\u8981\u7684\u6267\u884c\u3002<\/p>\n<p><strong>\u5982\u4f55\u5728IDE\u4e2d\u8fd0\u884cPython\u4e3b\u7a0b\u5e8f\uff1f<\/strong><br \/>\u8bb8\u591a\u96c6\u6210\u5f00\u53d1\u73af\u5883\uff08IDE\uff09\u5982PyCharm\u3001Visual Studio Code\u7b49\u90fd\u652f\u6301\u76f4\u63a5\u8fd0\u884cPython\u811a\u672c\u3002\u5728\u8fd9\u4e9b\u5de5\u5177\u4e2d\uff0c\u4f60\u53ef\u4ee5\u6253\u5f00\u4f60\u7684Python\u6587\u4ef6\uff0c\u901a\u5e38\u4f1a\u6709\u4e00\u4e2a\u201c\u8fd0\u884c\u201d\u6309\u94ae\u6216\u8005\u901a\u8fc7\u83dc\u5355\u9009\u9879\u6765\u8fd0\u884c\u4e3b\u7a0b\u5e8f\u3002IDE\u4f1a\u81ea\u52a8\u5904\u7406\u547d\u4ee4\u884c\u53c2\u6570\u548c\u73af\u5883\u8bbe\u7f6e\uff0c\u4f7f\u5f97\u8fd0\u884c\u8fc7\u7a0b\u66f4\u52a0\u65b9\u4fbf\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u8981\u6267\u884c\u4e3b\u7a0b\u5e8fPython\uff0c\u4f60\u9700\u8981\u786e\u4fdd\u4f60\u7684\u8ba1\u7b97\u673a\u4e0a\u5df2\u7ecf\u5b89\u88c5\u4e86Python\u89e3\u91ca\u5668\u3001\u6b63\u786e\u7f16\u5199\u5e76\u4fdd\u5b58Python\u811a\u672c\u6587 [&hellip;]","protected":false},"author":3,"featured_media":959279,"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\/959271"}],"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=959271"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/959271\/revisions"}],"predecessor-version":[{"id":959280,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/959271\/revisions\/959280"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/959279"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=959271"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=959271"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=959271"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}