{"id":1158930,"date":"2025-01-13T18:46:45","date_gmt":"2025-01-13T10:46:45","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1158930.html"},"modified":"2025-01-13T18:46:48","modified_gmt":"2025-01-13T10:46:48","slug":"%e7%94%b5%e8%84%91%e4%b8%8a%e5%a6%82%e4%bd%95%e8%bf%9b%e5%85%a5python","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/1158930.html","title":{"rendered":"\u7535\u8111\u4e0a\u5982\u4f55\u8fdb\u5165python"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/25200739\/060712c4-0b56-4c93-9caf-35e638051b63.webp\" alt=\"\u7535\u8111\u4e0a\u5982\u4f55\u8fdb\u5165python\" \/><\/p>\n<p><p> \u8981\u5728\u7535\u8111\u4e0a\u8fdb\u5165Python\u7f16\u7a0b\u73af\u5883\uff0c\u4f60\u9700\u8981\u5b89\u88c5Python\u89e3\u91ca\u5668\u5e76\u4e86\u89e3\u5982\u4f55\u5728\u547d\u4ee4\u884c\u6216\u96c6\u6210\u5f00\u53d1\u73af\u5883\uff08IDE\uff09\u4e2d\u8fd0\u884cPython\u4ee3\u7801\u3002<strong>\u5b89\u88c5Python\u89e3\u91ca\u5668\u3001\u4f7f\u7528\u547d\u4ee4\u884c\u8fd0\u884cPython\u4ee3\u7801\u3001\u9009\u62e9\u5e76\u4f7f\u7528IDE\u3001\u5b89\u88c5\u5fc5\u8981\u7684\u5e93\u548c\u5305\u3001\u4e86\u89e3\u57fa\u672c\u7684Python\u8bed\u6cd5<\/strong>\u3002\u5176\u4e2d\uff0c\u9009\u62e9\u5e76\u4f7f\u7528\u5408\u9002\u7684IDE\u5bf9\u4e8e\u521d\u5b66\u8005\u6765\u8bf4\u5c24\u4e3a\u91cd\u8981\uff0c\u56e0\u4e3a\u5b83\u80fd\u63d0\u4f9b\u4ee3\u7801\u8865\u5168\u3001\u8c03\u8bd5\u5de5\u5177\u7b49\u591a\u79cd\u4fbf\u5229\u529f\u80fd\u3002<\/p>\n<\/p>\n<p><p>\u9009\u62e9\u5408\u9002\u7684IDE\uff0c\u5982PyCharm\u3001VS Code\u6216Jupyter Notebook\uff0c\u6709\u52a9\u4e8e\u63d0\u5347\u7f16\u7a0b\u6548\u7387\u3002PyCharm\u662f\u4e00\u4e2a\u4e13\u4e1a\u7684Python\u5f00\u53d1\u73af\u5883\uff0c\u63d0\u4f9b\u5f3a\u5927\u7684\u4ee3\u7801\u5206\u6790\u3001\u8c03\u8bd5\u3001\u6d4b\u8bd5\u548c\u7248\u672c\u63a7\u5236\u529f\u80fd\u3002VS Code\u5219\u662f\u4e00\u6b3e\u8f7b\u91cf\u7ea7\u7684\u4ee3\u7801\u7f16\u8f91\u5668\uff0c\u652f\u6301\u591a\u79cd\u7f16\u7a0b\u8bed\u8a00\u548c\u6269\u5c55\uff0c\u9002\u5408\u591a\u9886\u57df\u5f00\u53d1\u3002Jupyter Notebook\u5219\u9002\u7528\u4e8e\u6570\u636e\u79d1\u5b66\u548c<a href=\"https:\/\/docs.pingcode.com\/ask\/59192.html\" target=\"_blank\">\u673a\u5668\u5b66\u4e60<\/a>\u9886\u57df\uff0c\u4fbf\u4e8e\u5c55\u793a\u4ee3\u7801\u548c\u7ed3\u679c\u3002\u9009\u62e9\u5408\u9002\u7684IDE\u53ef\u4ee5\u8ba9\u4f60\u66f4\u4e13\u6ce8\u4e8e\u7f16\u5199\u548c\u8c03\u8bd5\u4ee3\u7801\uff0c\u63d0\u9ad8\u5b66\u4e60\u548c\u5f00\u53d1\u6548\u7387\u3002<\/p>\n<\/p>\n<p><p>\u63a5\u4e0b\u6765\uff0c\u6211\u4eec\u5c06\u8be6\u7ec6\u4ecb\u7ecd\u5982\u4f55\u5728\u7535\u8111\u4e0a\u8fdb\u5165Python\u7f16\u7a0b\u73af\u5883\u3002<\/p>\n<\/p>\n<p><h3>\u4e00\u3001\u5b89\u88c5Python\u89e3\u91ca\u5668<\/h3>\n<\/p>\n<p><h4>1. \u68c0\u67e5\u7cfb\u7edf\u662f\u5426\u5df2\u5b89\u88c5Python<\/h4>\n<\/p>\n<p><p>\u5728\u5b89\u88c5Python\u4e4b\u524d\uff0c\u4f60\u53ef\u4ee5\u5148\u68c0\u67e5\u7535\u8111\u4e0a\u662f\u5426\u5df2\u7ecf\u5b89\u88c5\u4e86Python\u3002\u6253\u5f00\u547d\u4ee4\u884c\u7a97\u53e3\uff08Windows\u7cfb\u7edf\u4e0b\u7684cmd\u6216PowerShell\uff0cMac\u548cLinux\u7cfb\u7edf\u4e0b\u7684\u7ec8\u7aef\uff09\uff0c\u8f93\u5165\u4ee5\u4e0b\u547d\u4ee4\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">python --version<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u6216\u8005<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">python3 --version<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5982\u679c\u7cfb\u7edf\u5df2\u5b89\u88c5Python\uff0c\u4f1a\u663e\u793aPython\u7684\u7248\u672c\u53f7\u3002\u5982\u679c\u672a\u5b89\u88c5\uff0c\u4f60\u9700\u8981\u4e0b\u8f7d\u5e76\u5b89\u88c5Python\u3002<\/p>\n<\/p>\n<p><h4>2. \u4e0b\u8f7d\u548c\u5b89\u88c5Python<\/h4>\n<\/p>\n<p><p>\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%E9%80%82%E7%94%A8%E4%BA%8E%E4%BD%A0%E6%93%8D%E4%BD%9C%E7%B3%BB%E7%BB%9F%E7%9A%84%E6%9C%80%E6%96%B0%E7%89%88%E6%9C%AC%E7%9A%84Python%E5%AE%89%E8%A3%85%E5%8C%85%E3%80%82%E4%B8%8B%E8%BD%BD%E5%AE%8C%E6%88%90%E5%90%8E%EF%BC%8C%E8%BF%90%E8%A1%8C%E5%AE%89%E8%A3%85%E5%8C%85%E8%BF%9B%E8%A1%8C%E5%AE%89%E8%A3%85%E3%80%82%E5%9C%A8%E5%AE%89%E8%A3%85%E8%BF%87%E7%A8%8B%E4%B8%AD%EF%BC%8C%E7%A1%AE%E4%BF%9D%E5%8B%BE%E9%80%89%E2%80%9CAdd\">https:\/\/www.python.org\/\uff09\uff0c\u4e0b\u8f7d\u9002\u7528\u4e8e\u4f60\u64cd\u4f5c\u7cfb\u7edf\u7684\u6700\u65b0\u7248\u672c\u7684Python\u5b89\u88c5\u5305\u3002\u4e0b\u8f7d\u5b8c\u6210\u540e\uff0c\u8fd0\u884c\u5b89\u88c5\u5305\u8fdb\u884c\u5b89\u88c5\u3002\u5728\u5b89\u88c5\u8fc7\u7a0b\u4e2d\uff0c\u786e\u4fdd\u52fe\u9009\u201cAdd<\/a> Python to PATH\u201d\u9009\u9879\uff0c\u8fd9\u5c06Python\u6dfb\u52a0\u5230\u7cfb\u7edf\u7684\u73af\u5883\u53d8\u91cf\u4e2d\uff0c\u4fbf\u4e8e\u5728\u547d\u4ee4\u884c\u4e2d\u76f4\u63a5\u8fd0\u884cPython\u3002<\/p>\n<\/p>\n<p><h4>3. \u9a8c\u8bc1\u5b89\u88c5<\/h4>\n<\/p>\n<p><p>\u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u518d\u6b21\u6253\u5f00\u547d\u4ee4\u884c\u7a97\u53e3\uff0c\u8f93\u5165\u4ee5\u4e0b\u547d\u4ee4\u4ee5\u9a8c\u8bc1Python\u662f\u5426\u5b89\u88c5\u6210\u529f\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">python --version<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u6216\u8005<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">python3 --version<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5982\u679c\u663e\u793aPython\u7684\u7248\u672c\u53f7\uff0c\u8bf4\u660ePython\u5df2\u6210\u529f\u5b89\u88c5\u3002<\/p>\n<\/p>\n<p><h3>\u4e8c\u3001\u4f7f\u7528\u547d\u4ee4\u884c\u8fd0\u884cPython\u4ee3\u7801<\/h3>\n<\/p>\n<p><h4>1. \u8fdb\u5165Python\u4ea4\u4e92\u6a21\u5f0f<\/h4>\n<\/p>\n<p><p>\u5728\u547d\u4ee4\u884c\u7a97\u53e3\u4e2d\u8f93\u5165\u4ee5\u4e0b\u547d\u4ee4\u8fdb\u5165Python\u4ea4\u4e92\u6a21\u5f0f\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">python<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u6216\u8005<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">python3<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fdb\u5165Python\u4ea4\u4e92\u6a21\u5f0f\u540e\uff0c\u4f60\u53ef\u4ee5\u76f4\u63a5\u8f93\u5165Python\u4ee3\u7801\u5e76\u7acb\u5373\u6267\u884c\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><h4>2. \u8fd0\u884cPython\u811a\u672c<\/h4>\n<\/p>\n<p><p>\u4f60\u8fd8\u53ef\u4ee5\u5728\u547d\u4ee4\u884c\u4e2d\u8fd0\u884cPython\u811a\u672c\u3002\u9996\u5148\uff0c\u5728\u6587\u672c\u7f16\u8f91\u5668\u4e2d\u7f16\u5199\u4f60\u7684Python\u4ee3\u7801\uff0c\u5e76\u4fdd\u5b58\u4e3a<code>.py<\/code>\u6587\u4ef6\u3002\u4f8b\u5982\uff0c\u5c06\u4ee5\u4e0b\u4ee3\u7801\u4fdd\u5b58\u4e3a<code>hello.py<\/code>\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>\u7136\u540e\u5728\u547d\u4ee4\u884c\u4e2d\u5bfc\u822a\u5230\u8be5\u6587\u4ef6\u6240\u5728\u7684\u76ee\u5f55\uff0c\u5e76\u8fd0\u884c\u4ee5\u4e0b\u547d\u4ee4\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">python hello.py<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u6216\u8005<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">python3 hello.py<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u5c06\u6267\u884c<code>hello.py<\/code>\u811a\u672c\uff0c\u5e76\u5728\u547d\u4ee4\u884c\u7a97\u53e3\u4e2d\u8f93\u51fa\u201cHello, World!\u201d\u3002<\/p>\n<\/p>\n<p><h3>\u4e09\u3001\u9009\u62e9\u5e76\u4f7f\u7528IDE<\/h3>\n<\/p>\n<p><h4>1. PyCharm<\/h4>\n<\/p>\n<p><p>PyCharm\u662f\u7531JetBr<a href=\"https:\/\/docs.pingcode.com\/blog\/59162.html\" target=\"_blank\">AI<\/a>ns\u5f00\u53d1\u7684\u4e00\u6b3e\u4e13\u4e1a\u7684Python IDE\uff0c\u63d0\u4f9b\u4e86\u5f3a\u5927\u7684\u4ee3\u7801\u7f16\u8f91\u3001\u8c03\u8bd5\u548c\u6d4b\u8bd5\u529f\u80fd\u3002\u4ee5\u4e0b\u662f\u5b89\u88c5\u548c\u4f7f\u7528PyCharm\u7684\u6b65\u9aa4\uff1a<\/p>\n<\/p>\n<ol>\n<li>\u8bbf\u95eePyCharm\u7684\u5b98\u65b9\u7f51\u7ad9\uff08<a href=\"https:\/\/www.jetbrains.com\/pycharm\/%EF%BC%89%EF%BC%8C%E4%B8%8B%E8%BD%BD%E9%80%82%E7%94%A8%E4%BA%8E%E4%BD%A0%E6%93%8D%E4%BD%9C%E7%B3%BB%E7%BB%9F%E7%9A%84%E5%AE%89%E8%A3%85%E5%8C%85%E3%80%82\">https:\/\/www.jetbrains.com\/pycharm\/\uff09\uff0c\u4e0b\u8f7d\u9002\u7528\u4e8e\u4f60\u64cd\u4f5c\u7cfb\u7edf\u7684\u5b89\u88c5\u5305\u3002<\/a><\/li>\n<li>\u8fd0\u884c\u5b89\u88c5\u5305\u5e76\u6309\u7167\u63d0\u793a\u5b8c\u6210\u5b89\u88c5\u3002<\/li>\n<li>\u542f\u52a8PyCharm\uff0c\u521b\u5efa\u4e00\u4e2a\u65b0\u7684Python\u9879\u76ee\u3002<\/li>\n<li>\u5728\u9879\u76ee\u4e2d\u521b\u5efa\u4e00\u4e2a\u65b0\u7684Python\u6587\u4ef6\uff08\u4f8b\u5982<code>main.py<\/code>\uff09\uff0c\u5e76\u7f16\u5199Python\u4ee3\u7801\u3002<\/li>\n<li>\u70b9\u51fb\u8fd0\u884c\u6309\u94ae\u6267\u884c\u4ee3\u7801\uff0c\u67e5\u770b\u8f93\u51fa\u7ed3\u679c\u3002<\/li>\n<\/ol>\n<p><p>PyCharm\u8fd8\u63d0\u4f9b\u4e86\u4ee3\u7801\u8865\u5168\u3001\u8bed\u6cd5\u68c0\u67e5\u3001\u8c03\u8bd5\u5de5\u5177\u548c\u7248\u672c\u63a7\u5236\u96c6\u6210\u7b49\u591a\u79cd\u529f\u80fd\uff0c\u5e2e\u52a9\u4f60\u66f4\u9ad8\u6548\u5730\u7f16\u5199\u548c\u8c03\u8bd5\u4ee3\u7801\u3002<\/p>\n<\/p>\n<p><h4>2. Visual Studio Code (VS Code)<\/h4>\n<\/p>\n<p><p>VS Code\u662f\u7531Microsoft\u5f00\u53d1\u7684\u4e00\u6b3e\u8f7b\u91cf\u7ea7\u4ee3\u7801\u7f16\u8f91\u5668\uff0c\u652f\u6301\u591a\u79cd\u7f16\u7a0b\u8bed\u8a00\u548c\u6269\u5c55\u3002\u4ee5\u4e0b\u662f\u5b89\u88c5\u548c\u4f7f\u7528VS Code\u7684\u6b65\u9aa4\uff1a<\/p>\n<\/p>\n<ol>\n<li>\u8bbf\u95eeVS Code\u7684\u5b98\u65b9\u7f51\u7ad9\uff08<a href=\"https:\/\/code.visualstudio.com\/%EF%BC%89%EF%BC%8C%E4%B8%8B%E8%BD%BD%E9%80%82%E7%94%A8%E4%BA%8E%E4%BD%A0%E6%93%8D%E4%BD%9C%E7%B3%BB%E7%BB%9F%E7%9A%84%E5%AE%89%E8%A3%85%E5%8C%85%E3%80%82\">https:\/\/code.visualstudio.com\/\uff09\uff0c\u4e0b\u8f7d\u9002\u7528\u4e8e\u4f60\u64cd\u4f5c\u7cfb\u7edf\u7684\u5b89\u88c5\u5305\u3002<\/a><\/li>\n<li>\u8fd0\u884c\u5b89\u88c5\u5305\u5e76\u6309\u7167\u63d0\u793a\u5b8c\u6210\u5b89\u88c5\u3002<\/li>\n<li>\u542f\u52a8VS Code\uff0c\u5e76\u5b89\u88c5Python\u6269\u5c55\uff08\u5728\u6269\u5c55\u5e02\u573a\u4e2d\u641c\u7d22\u201cPython\u201d\u5e76\u70b9\u51fb\u5b89\u88c5\uff09\u3002<\/li>\n<li>\u6253\u5f00\u6216\u521b\u5efa\u4e00\u4e2a\u65b0\u7684\u5de5\u4f5c\u76ee\u5f55\uff0c\u5e76\u5728\u5176\u4e2d\u521b\u5efa\u4e00\u4e2a\u65b0\u7684Python\u6587\u4ef6\uff08\u4f8b\u5982<code>main.py<\/code>\uff09\u3002<\/li>\n<li>\u7f16\u5199Python\u4ee3\u7801\uff0c\u5e76\u70b9\u51fb\u8fd0\u884c\u6309\u94ae\u6216\u5728\u7ec8\u7aef\u4e2d\u6267\u884c\u4ee3\u7801\u3002<\/li>\n<\/ol>\n<p><p>VS Code\u63d0\u4f9b\u4e86\u4ee3\u7801\u8865\u5168\u3001\u8bed\u6cd5\u9ad8\u4eae\u3001\u8c03\u8bd5\u5de5\u5177\u548c\u96c6\u6210\u7ec8\u7aef\u7b49\u591a\u79cd\u529f\u80fd\uff0c\u652f\u6301\u591a\u79cd\u7f16\u7a0b\u8bed\u8a00\u548c\u6269\u5c55\uff0c\u9002\u5408\u591a\u9886\u57df\u5f00\u53d1\u3002<\/p>\n<\/p>\n<p><h4>3. Jupyter Notebook<\/h4>\n<\/p>\n<p><p>Jupyter Notebook\u662f\u4e00\u6b3e\u57fa\u4e8e\u6d4f\u89c8\u5668\u7684\u4ea4\u4e92\u5f0f\u7f16\u7a0b\u73af\u5883\uff0c\u5e7f\u6cdb\u5e94\u7528\u4e8e\u6570\u636e\u79d1\u5b66\u548c\u673a\u5668\u5b66\u4e60\u9886\u57df\u3002\u4ee5\u4e0b\u662f\u5b89\u88c5\u548c\u4f7f\u7528Jupyter Notebook\u7684\u6b65\u9aa4\uff1a<\/p>\n<\/p>\n<ol>\n<li>\u6253\u5f00\u547d\u4ee4\u884c\u7a97\u53e3\uff0c\u8f93\u5165\u4ee5\u4e0b\u547d\u4ee4\u5b89\u88c5Jupyter Notebook\uff1a<\/li>\n<\/ol>\n<p><pre><code class=\"language-bash\">pip install jupyter<\/p>\n<p><\/code><\/pre>\n<\/p>\n<ol start=\"2\">\n<li>\u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u8f93\u5165\u4ee5\u4e0b\u547d\u4ee4\u542f\u52a8Jupyter Notebook\uff1a<\/li>\n<\/ol>\n<p><pre><code class=\"language-bash\">jupyter notebook<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u5c06\u81ea\u52a8\u5728\u9ed8\u8ba4\u6d4f\u89c8\u5668\u4e2d\u6253\u5f00Jupyter Notebook\u7684\u4e3b\u9875\u3002<\/p>\n<\/p>\n<ol start=\"3\">\n<li>\u5728Jupyter Notebook\u4e3b\u9875\u4e2d\uff0c\u5bfc\u822a\u5230\u4f60\u5e0c\u671b\u4fdd\u5b58\u7b14\u8bb0\u672c\u7684\u76ee\u5f55\uff0c\u5e76\u70b9\u51fb\u201cNew\u201d\u6309\u94ae\uff0c\u9009\u62e9\u201cPython 3\u201d\u521b\u5efa\u4e00\u4e2a\u65b0\u7684\u7b14\u8bb0\u672c\u3002<\/li>\n<li>\u5728\u65b0\u7684\u7b14\u8bb0\u672c\u4e2d\uff0c\u4f60\u53ef\u4ee5\u5728\u5355\u5143\u683c\u4e2d\u8f93\u5165Python\u4ee3\u7801\uff0c\u5e76\u70b9\u51fb\u201cRun\u201d\u6309\u94ae\u6267\u884c\u4ee3\u7801\u3002\u7ed3\u679c\u5c06\u663e\u793a\u5728\u5355\u5143\u683c\u4e0b\u65b9\u3002<\/li>\n<\/ol>\n<p><p>Jupyter Notebook\u63d0\u4f9b\u4e86\u65b9\u4fbf\u7684\u4ea4\u4e92\u5f0f\u7f16\u7a0b\u73af\u5883\uff0c\u9002\u5408\u6570\u636e\u5206\u6790\u548c\u5c55\u793a\u4ee3\u7801\u548c\u7ed3\u679c\u3002<\/p>\n<\/p>\n<p><h3>\u56db\u3001\u5b89\u88c5\u5fc5\u8981\u7684\u5e93\u548c\u5305<\/h3>\n<\/p>\n<p><p>Python\u7684\u5f3a\u5927\u4e4b\u5904\u5728\u4e8e\u5176\u4e30\u5bcc\u7684\u7b2c\u4e09\u65b9\u5e93\u548c\u5305\u3002\u5728\u7f16\u5199Python\u4ee3\u7801\u65f6\uff0c\u4f60\u53ef\u80fd\u9700\u8981\u5b89\u88c5\u4e00\u4e9b\u5e38\u7528\u7684\u5e93\u548c\u5305\u3002\u4ee5\u4e0b\u662f\u5b89\u88c5\u7b2c\u4e09\u65b9\u5e93\u548c\u5305\u7684\u6b65\u9aa4\uff1a<\/p>\n<\/p>\n<ol>\n<li>\u6253\u5f00\u547d\u4ee4\u884c\u7a97\u53e3\uff0c\u4f7f\u7528<code>pip<\/code>\u547d\u4ee4\u5b89\u88c5\u5e93\u548c\u5305\u3002\u4f8b\u5982\uff0c\u5b89\u88c5\u5e38\u7528\u7684<code>numpy<\/code>\u5e93\uff1a<\/li>\n<\/ol>\n<p><pre><code class=\"language-bash\">pip install numpy<\/p>\n<p><\/code><\/pre>\n<\/p>\n<ol start=\"2\">\n<li>\u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u4f60\u53ef\u4ee5\u5728Python\u4ee3\u7801\u4e2d\u5bfc\u5165\u5e76\u4f7f\u7528\u8fd9\u4e9b\u5e93\u548c\u5305\u3002\u4f8b\u5982\uff1a<\/li>\n<\/ol>\n<p><pre><code class=\"language-python\">import numpy as np<\/p>\n<p>arr = np.array([1, 2, 3, 4, 5])<\/p>\n<p>print(arr)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<ol start=\"3\">\n<li>\u5728\u4f7f\u7528IDE\u65f6\uff0c\u4f60\u53ef\u4ee5\u5728\u96c6\u6210\u7ec8\u7aef\u4e2d\u76f4\u63a5\u4f7f\u7528<code>pip<\/code>\u547d\u4ee4\u5b89\u88c5\u5e93\u548c\u5305\uff0c\u6216\u5728IDE\u7684\u8bbe\u7f6e\u4e2d\u914d\u7f6e\u4f9d\u8d56\u9879\u3002<\/li>\n<\/ol>\n<p><h3>\u4e94\u3001\u4e86\u89e3\u57fa\u672c\u7684Python\u8bed\u6cd5<\/h3>\n<\/p>\n<p><p>\u5728\u8fdb\u5165Python\u7f16\u7a0b\u73af\u5883\u540e\uff0c\u4e86\u89e3\u5e76\u638c\u63e1\u57fa\u672c\u7684Python\u8bed\u6cd5\u662f\u7f16\u5199\u6709\u6548\u4ee3\u7801\u7684\u5173\u952e\u3002\u4ee5\u4e0b\u662f\u4e00\u4e9b\u57fa\u672c\u7684Python\u8bed\u6cd5\u548c\u793a\u4f8b\uff1a<\/p>\n<\/p>\n<p><h4>1. \u53d8\u91cf\u548c\u6570\u636e\u7c7b\u578b<\/h4>\n<\/p>\n<p><p>Python\u652f\u6301\u591a\u79cd\u6570\u636e\u7c7b\u578b\uff0c\u5305\u62ec\u6574\u6570\u3001\u6d6e\u70b9\u6570\u3001\u5b57\u7b26\u4e32\u3001\u5217\u8868\u3001\u5143\u7ec4\u3001\u5b57\u5178\u7b49\u3002\u4f60\u53ef\u4ee5\u901a\u8fc7\u8d4b\u503c\u64cd\u4f5c\u521b\u5efa\u548c\u4f7f\u7528\u53d8\u91cf\u3002\u4f8b\u5982\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\"># \u6574\u6570<\/p>\n<p>a = 10<\/p>\n<h2><strong>\u6d6e\u70b9\u6570<\/strong><\/h2>\n<p>b = 3.14<\/p>\n<h2><strong>\u5b57\u7b26\u4e32<\/strong><\/h2>\n<p>c = &quot;Hello, World!&quot;<\/p>\n<h2><strong>\u5217\u8868<\/strong><\/h2>\n<p>d = [1, 2, 3, 4, 5]<\/p>\n<h2><strong>\u5143\u7ec4<\/strong><\/h2>\n<p>e = (1, 2, 3, 4, 5)<\/p>\n<h2><strong>\u5b57\u5178<\/strong><\/h2>\n<p>f = {&quot;name&quot;: &quot;Alice&quot;, &quot;age&quot;: 25}<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>2. \u63a7\u5236\u7ed3\u6784<\/h4>\n<\/p>\n<p><p>Python\u652f\u6301\u5e38\u7528\u7684\u63a7\u5236\u7ed3\u6784\uff0c\u5305\u62ec\u6761\u4ef6\u5224\u65ad\u3001\u5faa\u73af\u7b49\u3002\u4f8b\u5982\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\"># \u6761\u4ef6\u5224\u65ad<\/p>\n<p>x = 10<\/p>\n<p>if x &gt; 0:<\/p>\n<p>    print(&quot;x is positive&quot;)<\/p>\n<p>elif x &lt; 0:<\/p>\n<p>    print(&quot;x is negative&quot;)<\/p>\n<p>else:<\/p>\n<p>    print(&quot;x is zero&quot;)<\/p>\n<h2><strong>\u5faa\u73af<\/strong><\/h2>\n<p>for i in range(5):<\/p>\n<p>    print(i)<\/p>\n<p>while x &gt; 0:<\/p>\n<p>    print(x)<\/p>\n<p>    x -= 1<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>3. \u51fd\u6570\u548c\u7c7b<\/h4>\n<\/p>\n<p><p>\u5728Python\u4e2d\uff0c\u4f60\u53ef\u4ee5\u5b9a\u4e49\u548c\u8c03\u7528\u51fd\u6570\uff0c\u4ee5\u53ca\u521b\u5efa\u548c\u4f7f\u7528\u7c7b\u3002\u4f8b\u5982\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\"># \u51fd\u6570\u5b9a\u4e49\u548c\u8c03\u7528<\/p>\n<p>def add(a, b):<\/p>\n<p>    return a + b<\/p>\n<p>result = add(3, 5)<\/p>\n<p>print(result)<\/p>\n<h2><strong>\u7c7b\u5b9a\u4e49\u548c\u4f7f\u7528<\/strong><\/h2>\n<p>class Person:<\/p>\n<p>    def __init__(self, name, age):<\/p>\n<p>        self.name = name<\/p>\n<p>        self.age = age<\/p>\n<p>    def greet(self):<\/p>\n<p>        print(f&quot;Hello, my name is {self.name}&quot;)<\/p>\n<p>person = Person(&quot;Alice&quot;, 25)<\/p>\n<p>person.greet()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u901a\u8fc7\u638c\u63e1\u4ee5\u4e0a\u57fa\u672c\u8bed\u6cd5\uff0c\u4f60\u53ef\u4ee5\u7f16\u5199\u548c\u8c03\u8bd5Python\u4ee3\u7801\uff0c\u89e3\u51b3\u5b9e\u9645\u95ee\u9898\u3002<\/p>\n<\/p>\n<p><h3>\u516d\u3001\u8c03\u8bd5\u548c\u6d4b\u8bd5\u4ee3\u7801<\/h3>\n<\/p>\n<p><p>\u5728\u7f16\u5199Python\u4ee3\u7801\u65f6\uff0c\u8c03\u8bd5\u548c\u6d4b\u8bd5\u662f\u786e\u4fdd\u4ee3\u7801\u6b63\u786e\u6027\u548c\u7a33\u5b9a\u6027\u7684\u5173\u952e\u6b65\u9aa4\u3002\u4ee5\u4e0b\u662f\u4e00\u4e9b\u5e38\u7528\u7684\u8c03\u8bd5\u548c\u6d4b\u8bd5\u65b9\u6cd5\uff1a<\/p>\n<\/p>\n<p><h4>1. \u4f7f\u7528\u6253\u5370\u8bed\u53e5\u8c03\u8bd5<\/h4>\n<\/p>\n<p><p>\u5728\u7f16\u5199\u4ee3\u7801\u65f6\uff0c\u6dfb\u52a0\u9002\u5f53\u7684\u6253\u5370\u8bed\u53e5\u53ef\u4ee5\u5e2e\u52a9\u4f60\u4e86\u89e3\u4ee3\u7801\u7684\u6267\u884c\u8fc7\u7a0b\u548c\u53d8\u91cf\u7684\u503c\u3002\u4f8b\u5982\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">def add(a, b):<\/p>\n<p>    print(f&quot;Adding {a} and {b}&quot;)<\/p>\n<p>    return a + b<\/p>\n<p>result = add(3, 5)<\/p>\n<p>print(f&quot;Result: {result}&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>2. \u4f7f\u7528\u8c03\u8bd5\u5de5\u5177<\/h4>\n<\/p>\n<p><p>\u8bb8\u591aIDE\u63d0\u4f9b\u4e86\u5185\u7f6e\u7684\u8c03\u8bd5\u5de5\u5177\uff0c\u5141\u8bb8\u4f60\u8bbe\u7f6e\u65ad\u70b9\u3001\u5355\u6b65\u6267\u884c\u4ee3\u7801\u3001\u67e5\u770b\u53d8\u91cf\u503c\u7b49\u3002\u4f8b\u5982\uff0c\u5728PyCharm\u548cVS Code\u4e2d\uff0c\u4f60\u53ef\u4ee5\u901a\u8fc7\u70b9\u51fb\u884c\u53f7\u5de6\u4fa7\u8bbe\u7f6e\u65ad\u70b9\uff0c\u5e76\u542f\u52a8\u8c03\u8bd5\u6a21\u5f0f\uff0c\u9010\u6b65\u68c0\u67e5\u4ee3\u7801\u7684\u6267\u884c\u60c5\u51b5\u3002<\/p>\n<\/p>\n<p><h4>3. \u7f16\u5199\u5355\u5143\u6d4b\u8bd5<\/h4>\n<\/p>\n<p><p>\u7f16\u5199\u5355\u5143\u6d4b\u8bd5\u53ef\u4ee5\u5e2e\u52a9\u4f60\u9a8c\u8bc1\u4ee3\u7801\u7684\u6b63\u786e\u6027\uff0c\u5e76\u5728\u4ee3\u7801\u53d1\u751f\u53d8\u5316\u65f6\u53ca\u65f6\u53d1\u73b0\u95ee\u9898\u3002Python\u7684<code>unittest<\/code>\u6a21\u5757\u63d0\u4f9b\u4e86\u7f16\u5199\u548c\u8fd0\u884c\u5355\u5143\u6d4b\u8bd5\u7684\u5de5\u5177\u3002\u4f8b\u5982\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import unittest<\/p>\n<p>def add(a, b):<\/p>\n<p>    return a + b<\/p>\n<p>class TestAdd(unittest.TestCase):<\/p>\n<p>    def test_add(self):<\/p>\n<p>        self.assertEqual(add(3, 5), 8)<\/p>\n<p>        self.assertEqual(add(-1, 1), 0)<\/p>\n<p>if __name__ == &quot;__main__&quot;:<\/p>\n<p>    unittest.main()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u901a\u8fc7\u7f16\u5199\u6d4b\u8bd5\u7528\u4f8b\uff0c\u4f60\u53ef\u4ee5\u81ea\u52a8\u5316\u6d4b\u8bd5\u8fc7\u7a0b\uff0c\u63d0\u9ad8\u4ee3\u7801\u7684\u7a33\u5b9a\u6027\u548c\u53ef\u9760\u6027\u3002<\/p>\n<\/p>\n<p><h3>\u4e03\u3001\u7248\u672c\u63a7\u5236\u548c\u534f\u4f5c\u5f00\u53d1<\/h3>\n<\/p>\n<p><p>\u5728\u56e2\u961f\u5f00\u53d1\u6216\u4e2a\u4eba\u9879\u76ee\u4e2d\uff0c\u4f7f\u7528\u7248\u672c\u63a7\u5236\u7cfb\u7edf\uff08\u5982Git\uff09\u53ef\u4ee5\u5e2e\u52a9\u4f60\u7ba1\u7406\u4ee3\u7801\u7248\u672c\u3001\u8ddf\u8e2a\u53d8\u66f4\u548c\u534f\u4f5c\u5f00\u53d1\u3002\u4ee5\u4e0b\u662f\u4f7f\u7528Git\u8fdb\u884c\u7248\u672c\u63a7\u5236\u7684\u57fa\u672c\u6b65\u9aa4\uff1a<\/p>\n<\/p>\n<p><h4>1. \u521d\u59cb\u5316Git\u4ed3\u5e93<\/h4>\n<\/p>\n<p><p>\u5728\u9879\u76ee\u76ee\u5f55\u4e2d\uff0c\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u521d\u59cb\u5316Git\u4ed3\u5e93\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">git init<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>2. \u6dfb\u52a0\u548c\u63d0\u4ea4\u6587\u4ef6<\/h4>\n<\/p>\n<p><p>\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u6dfb\u52a0\u6587\u4ef6\u5230\u6682\u5b58\u533a\uff0c\u5e76\u63d0\u4ea4\u5230\u4ed3\u5e93\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">git add .<\/p>\n<p>git commit -m &quot;Initial commit&quot;<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>3. \u8fdc\u7a0b\u4ed3\u5e93<\/h4>\n<\/p>\n<p><p>\u521b\u5efa\u8fdc\u7a0b\u4ed3\u5e93\uff08\u5982GitHub\u3001GitLab\uff09\uff0c\u5e76\u5c06\u672c\u5730\u4ed3\u5e93\u4e0e\u8fdc\u7a0b\u4ed3\u5e93\u5173\u8054\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">git remote add origin &lt;remote_repository_url&gt;<\/p>\n<p>git push -u origin master<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>4. \u5206\u652f\u548c\u5408\u5e76<\/h4>\n<\/p>\n<p><p>\u4f7f\u7528\u5206\u652f\u8fdb\u884c\u5f00\u53d1\uff0c\u907f\u514d\u76f4\u63a5\u5728\u4e3b\u5206\u652f\u4e0a\u8fdb\u884c\u66f4\u6539\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">git checkout -b new_feature<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5b8c\u6210\u5f00\u53d1\u540e\uff0c\u5408\u5e76\u5206\u652f\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">git checkout master<\/p>\n<p>git merge new_feature<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u901a\u8fc7\u4f7f\u7528\u7248\u672c\u63a7\u5236\u7cfb\u7edf\uff0c\u4f60\u53ef\u4ee5\u66f4\u597d\u5730\u7ba1\u7406\u4ee3\u7801\u7248\u672c\u548c\u534f\u4f5c\u5f00\u53d1\uff0c\u63d0\u9ad8\u5f00\u53d1\u6548\u7387\u548c\u4ee3\u7801\u8d28\u91cf\u3002<\/p>\n<\/p>\n<p><h3>\u516b\u3001\u5b66\u4e60\u8d44\u6e90\u548c\u793e\u533a<\/h3>\n<\/p>\n<p><p>\u5b66\u4e60Python\u7f16\u7a0b\u662f\u4e00\u4e2a\u6301\u7eed\u7684\u8fc7\u7a0b\uff0c\u5229\u7528\u4e30\u5bcc\u7684\u5b66\u4e60\u8d44\u6e90\u548c\u52a0\u5165\u793e\u533a\u53ef\u4ee5\u5e2e\u52a9\u4f60\u66f4\u5feb\u5730\u638c\u63e1Python\u3002\u4ee5\u4e0b\u662f\u4e00\u4e9b\u63a8\u8350\u7684\u5b66\u4e60\u8d44\u6e90\u548c\u793e\u533a\uff1a<\/p>\n<\/p>\n<p><h4>1. \u5b98\u65b9\u6587\u6863<\/h4>\n<\/p>\n<p><p>Python\u7684\u5b98\u65b9\u6587\u6863\uff08<a href=\"https:\/\/docs.python.org\/%EF%BC%89%E6%98%AF%E5%AD%A6%E4%B9%A0Python%E8%AF%AD%E6%B3%95%E5%92%8C%E5%BA%93%E7%9A%84%E6%9C%80%E4%BD%B3%E8%B5%84%E6%BA%90%EF%BC%8C%E6%8F%90%E4%BE%9B%E4%BA%86%E8%AF%A6%E7%BB%86%E7%9A%84%E6%95%99%E7%A8%8B%E3%80%81%E5%8F%82%E8%80%83%E6%89%8B%E5%86%8C%E5%92%8C%E7%A4%BA%E4%BE%8B%E4%BB%A3%E7%A0%81%E3%80%82\">https:\/\/docs.python.org\/\uff09\u662f\u5b66\u4e60Python\u8bed\u6cd5\u548c\u5e93\u7684\u6700\u4f73\u8d44\u6e90\uff0c\u63d0\u4f9b\u4e86\u8be6\u7ec6\u7684\u6559\u7a0b\u3001\u53c2\u8003\u624b\u518c\u548c\u793a\u4f8b\u4ee3\u7801\u3002<\/a><\/p>\n<\/p>\n<p><h4>2. \u5728\u7ebf\u8bfe\u7a0b<\/h4>\n<\/p>\n<p><p>\u8bb8\u591a\u5728\u7ebf\u6559\u80b2\u5e73\u53f0\u63d0\u4f9bPython\u7f16\u7a0b\u8bfe\u7a0b\uff0c\u5982Coursera\u3001edX\u3001Udemy\u7b49\u3002\u8fd9\u4e9b\u8bfe\u7a0b\u901a\u5e38\u7531\u7ecf\u9a8c\u4e30\u5bcc\u7684\u8bb2\u5e08\u6388\u8bfe\uff0c\u6db5\u76d6\u57fa\u7840\u77e5\u8bc6\u5230\u9ad8\u7ea7\u5e94\u7528\u3002<\/p>\n<\/p>\n<p><h4>3. \u7f16\u7a0b\u4e66\u7c4d<\/h4>\n<\/p>\n<p><p>\u9605\u8bfb\u7f16\u7a0b\u4e66\u7c4d\u662f\u7cfb\u7edf\u5b66\u4e60Python\u7684\u6709\u6548\u65b9\u6cd5\u3002\u4f8b\u5982\uff0c\u300aPython\u7f16\u7a0b\uff1a\u4ece\u5165\u95e8\u5230\u5b9e\u8df5\u300b\u3001\u300a\u6d41\u7545\u7684Python\u300b\u3001\u300aPython\u6838\u5fc3\u7f16\u7a0b\u300b\u7b49\u90fd\u662f\u5e7f\u53d7\u597d\u8bc4\u7684\u4e66\u7c4d\u3002<\/p>\n<\/p>\n<p><h4>4. \u7f16\u7a0b\u793e\u533a<\/h4>\n<\/p>\n<p><p>\u52a0\u5165\u7f16\u7a0b\u793e\u533a\u53ef\u4ee5\u5e2e\u52a9\u4f60\u7ed3\u8bc6\u5176\u4ed6Python\u5f00\u53d1\u8005\uff0c\u4ea4\u6d41\u7ecf\u9a8c\u548c\u89e3\u51b3\u95ee\u9898\u3002\u4f8b\u5982\uff0cStack Overflow\u3001Reddit\u7684r\/learnpython\u5b50\u7248\u3001GitHub\u7b49\u90fd\u662f\u6d3b\u8dc3\u7684\u7f16\u7a0b\u793e\u533a\u3002<\/p>\n<\/p>\n<p><p>\u901a\u8fc7\u5229\u7528\u591a\u79cd\u5b66\u4e60\u8d44\u6e90\u548c\u53c2\u4e0e\u793e\u533a\u6d3b\u52a8\uff0c\u4f60\u53ef\u4ee5\u4e0d\u65ad\u63d0\u5347\u81ea\u5df1\u7684\u7f16\u7a0b\u6280\u80fd\uff0c\u89e3\u51b3\u5b9e\u9645\u95ee\u9898\uff0c\u5e76\u5728Python\u7f16\u7a0b\u7684\u9053\u8def\u4e0a\u4e0d\u65ad\u8fdb\u6b65\u3002<\/p>\n<\/p>\n<p><h3>\u603b\u7ed3<\/h3>\n<\/p>\n<p><p>\u672c\u6587\u8be6\u7ec6\u4ecb\u7ecd\u4e86\u5728\u7535\u8111\u4e0a\u8fdb\u5165Python\u7f16\u7a0b\u73af\u5883\u7684\u6b65\u9aa4\u548c\u6ce8\u610f\u4e8b\u9879\uff0c\u5305\u62ec\u5b89\u88c5Python\u89e3\u91ca\u5668\u3001\u4f7f\u7528\u547d\u4ee4\u884c\u8fd0\u884cPython\u4ee3\u7801\u3001\u9009\u62e9\u5e76\u4f7f\u7528IDE\u3001\u5b89\u88c5\u5fc5\u8981\u7684\u5e93\u548c\u5305\u3001\u4e86\u89e3\u57fa\u672c\u7684Python\u8bed\u6cd5\u3001\u8c03\u8bd5\u548c\u6d4b\u8bd5\u4ee3\u7801\u3001\u7248\u672c\u63a7\u5236\u548c\u534f\u4f5c\u5f00\u53d1\uff0c\u4ee5\u53ca\u5b66\u4e60\u8d44\u6e90\u548c\u793e\u533a\u3002\u5e0c\u671b\u8fd9\u4e9b\u5185\u5bb9\u80fd\u591f\u5e2e\u52a9\u4f60\u987a\u5229\u8fdb\u5165Python\u7f16\u7a0b\u73af\u5883\uff0c\u5e76\u5728Python\u7f16\u7a0b\u7684\u9053\u8def\u4e0a\u4e0d\u65ad\u8fdb\u6b65\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u5728\u6211\u7684\u7535\u8111\u4e0a\u5b89\u88c5Python\uff1f<\/strong><br \/>\u8981\u5728\u7535\u8111\u4e0a\u4f7f\u7528Python\uff0c\u60a8\u9700\u8981\u9996\u5148\u4e0b\u8f7d\u5b89\u88c5\u5305\u3002\u8bbf\u95eePython\u7684\u5b98\u65b9\u7f51\u7ad9\uff08python.org\uff09\uff0c\u9009\u62e9\u9002\u5408\u60a8\u64cd\u4f5c\u7cfb\u7edf\u7684\u7248\u672c\uff08\u5982Windows\u3001macOS\u6216Linux\uff09\uff0c\u4e0b\u8f7d\u5e76\u8fd0\u884c\u5b89\u88c5\u7a0b\u5e8f\u3002\u5728\u5b89\u88c5\u8fc7\u7a0b\u4e2d\uff0c\u8bf7\u786e\u4fdd\u52fe\u9009\u201cAdd Python to PATH\u201d\u9009\u9879\uff0c\u4ee5\u4fbf\u5728\u547d\u4ee4\u63d0\u793a\u7b26\u4e2d\u76f4\u63a5\u4f7f\u7528Python\u3002<\/p>\n<p><strong>\u5982\u4f55\u786e\u8ba4Python\u662f\u5426\u6210\u529f\u5b89\u88c5\uff1f<\/strong><br \/>\u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u53ef\u4ee5\u901a\u8fc7\u547d\u4ee4\u63d0\u793a\u7b26\u6216\u7ec8\u7aef\u6765\u68c0\u67e5Python\u662f\u5426\u6210\u529f\u5b89\u88c5\u3002\u6253\u5f00\u547d\u4ee4\u63d0\u793a\u7b26\uff08Windows\uff09\u6216\u7ec8\u7aef\uff08macOS\/Linux\uff09\uff0c\u8f93\u5165<code>python --version<\/code>\u6216<code>python3 --version<\/code>\uff0c\u5982\u679c\u60a8\u770b\u5230Python\u7684\u7248\u672c\u53f7\uff0c\u8bf4\u660e\u5b89\u88c5\u6210\u529f\u3002<\/p>\n<p><strong>\u6211\u53ef\u4ee5\u4f7f\u7528\u54ea\u4e9b\u5de5\u5177\u6765\u7f16\u5199Python\u4ee3\u7801\uff1f<\/strong><br \/>\u6709\u5f88\u591a\u5de5\u5177\u53ef\u4ee5\u5e2e\u52a9\u60a8\u7f16\u5199Python\u4ee3\u7801\u3002\u5e38\u7528\u7684\u6587\u672c\u7f16\u8f91\u5668\u5305\u62ecVisual Studio Code\u3001Sublime Text\u548cNotepad++\u3002\u5982\u679c\u60a8\u60f3\u8981\u4e00\u4e2a\u96c6\u6210\u5f00\u53d1\u73af\u5883\uff08IDE\uff09\uff0c\u53ef\u4ee5\u8003\u8651PyCharm\u3001Spyder\u6216Jupyter Notebook\uff0c\u8fd9\u4e9b\u5de5\u5177\u4e0d\u4ec5\u63d0\u4f9b\u8bed\u6cd5\u9ad8\u4eae\u548c\u4ee3\u7801\u81ea\u52a8\u8865\u5168\u529f\u80fd\uff0c\u8fd8\u53ef\u4ee5\u8ba9\u60a8\u66f4\u65b9\u4fbf\u5730\u8fdb\u884c\u8c03\u8bd5\u548c\u6d4b\u8bd5\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u8981\u5728\u7535\u8111\u4e0a\u8fdb\u5165Python\u7f16\u7a0b\u73af\u5883\uff0c\u4f60\u9700\u8981\u5b89\u88c5Python\u89e3\u91ca\u5668\u5e76\u4e86\u89e3\u5982\u4f55\u5728\u547d\u4ee4\u884c\u6216\u96c6\u6210\u5f00\u53d1\u73af\u5883\uff08IDE\uff09\u4e2d\u8fd0 [&hellip;]","protected":false},"author":3,"featured_media":1158935,"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\/1158930"}],"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=1158930"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1158930\/revisions"}],"predecessor-version":[{"id":1158938,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1158930\/revisions\/1158938"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/1158935"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=1158930"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=1158930"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=1158930"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}