{"id":1109978,"date":"2025-01-08T17:15:22","date_gmt":"2025-01-08T09:15:22","guid":{"rendered":""},"modified":"2025-01-08T17:15:25","modified_gmt":"2025-01-08T09:15:25","slug":"%e5%a6%82%e4%bd%95%e5%ae%89%e8%a3%85python%e8%ae%a1%e7%ae%97%e6%9c%ba%e4%ba%8c%e7%ba%a7","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/1109978.html","title":{"rendered":"\u5982\u4f55\u5b89\u88c5python\u8ba1\u7b97\u673a\u4e8c\u7ea7"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/25073023\/1d7388c1-c24f-45fe-bdc2-7e541b18a10a.webp\" alt=\"\u5982\u4f55\u5b89\u88c5python\u8ba1\u7b97\u673a\u4e8c\u7ea7\" \/><\/p>\n<p><p> <strong>\u5982\u4f55\u5b89\u88c5Python\u8ba1\u7b97\u673a\u4e8c\u7ea7<\/strong><\/p>\n<\/p>\n<p><p><strong>\u5b89\u88c5Python\u8ba1\u7b97\u673a\u4e8c\u7ea7\u9700\u8981\u4e0b\u8f7dPython\u5b89\u88c5\u5305\u3001\u5b89\u88c5IDLE\u548c\u5b89\u88c5\u76f8\u5173\u7684IDE\u3002<\/strong> \u9996\u5148\uff0c\u8981\u786e\u4fdd\u4e0b\u8f7d\u7684\u662fPython\u5b98\u7f51\u7684\u6700\u65b0\u7248\u672c\uff0c\u5e76\u8fdb\u884c\u5b89\u88c5\u3002\u7136\u540e\uff0c\u53ef\u4ee5\u9009\u62e9\u5b89\u88c5Python\u81ea\u5e26\u7684IDLE\u7f16\u8f91\u5668\uff0c\u65b9\u4fbf\u8fdb\u884c\u7b80\u5355\u7684\u7f16\u7a0b\u7ec3\u4e60\u3002\u6700\u540e\uff0c\u5efa\u8bae\u5b89\u88c5\u4e00\u4e9b\u5e38\u7528\u7684IDE\uff0c\u5982PyCharm\u6216Visual Studio Code\uff0c\u4ee5\u4fbf\u8fdb\u884c\u66f4\u590d\u6742\u7684\u7f16\u7a0b\u9879\u76ee\u3002<\/p>\n<\/p>\n<p><h3>\u4e00\u3001\u4e0b\u8f7d\u5e76\u5b89\u88c5Python<\/h3>\n<\/p>\n<p><h4>1.1\u3001\u4e0b\u8f7dPython\u5b89\u88c5\u5305<\/h4>\n<\/p>\n<p><p>\u9996\u5148\uff0c\u6253\u5f00Python\u7684\u5b98\u65b9\u7f51\u7ad9\uff08<a href=\"https:\/\/www.python.org\/%EF%BC%89%E3%80%82%E5%9C%A8%E9%A6%96%E9%A1%B5%E4%B8%AD%E7%82%B9%E5%87%BB%E2%80%9CDownloads%E2%80%9D%E6%A0%87%E7%AD%BE%EF%BC%8C%E6%A0%B9%E6%8D%AE%E8%87%AA%E5%B7%B1%E7%9A%84%E6%93%8D%E4%BD%9C%E7%B3%BB%E7%BB%9F%EF%BC%88Windows%E3%80%81MacOS%E3%80%81Linux%E7%AD%89%EF%BC%89%EF%BC%8C%E9%80%89%E6%8B%A9%E7%9B%B8%E5%BA%94%E7%9A%84Python%E7%89%88%E6%9C%AC%E4%B8%8B%E8%BD%BD%E3%80%82%E5%BB%BA%E8%AE%AE%E9%80%89%E6%8B%A9%E6%9C%80%E6%96%B0%E7%9A%84%E7%A8%B3%E5%AE%9A%E7%89%88%E6%9C%AC%EF%BC%8C%E4%BB%A5%E8%8E%B7%E5%BE%97%E6%9C%80%E6%96%B0%E7%9A%84%E5%8A%9F%E8%83%BD%E5%92%8C%E4%BF%AE%E5%A4%8D%E7%9A%84bug%E3%80%82\">https:\/\/www.python.org\/\uff09\u3002\u5728\u9996\u9875\u4e2d\u70b9\u51fb\u201cDownloads\u201d\u6807\u7b7e\uff0c\u6839\u636e\u81ea\u5df1\u7684\u64cd\u4f5c\u7cfb\u7edf\uff08Windows\u3001MacOS\u3001Linux\u7b49\uff09\uff0c\u9009\u62e9\u76f8\u5e94\u7684Python\u7248\u672c\u4e0b\u8f7d\u3002\u5efa\u8bae\u9009\u62e9\u6700\u65b0\u7684\u7a33\u5b9a\u7248\u672c\uff0c\u4ee5\u83b7\u5f97\u6700\u65b0\u7684\u529f\u80fd\u548c\u4fee\u590d\u7684bug\u3002<\/a><\/p>\n<\/p>\n<p><h4>1.2\u3001\u5b89\u88c5Python<\/h4>\n<\/p>\n<p><p>\u4e0b\u8f7d\u5b8c\u6210\u540e\uff0c\u53cc\u51fb\u8fd0\u884c\u5b89\u88c5\u5305\u3002\u5728\u5b89\u88c5\u8fc7\u7a0b\u4e2d\uff0c\u52a1\u5fc5\u52fe\u9009\u201cAdd Python to PATH\u201d\u9009\u9879\uff0c\u8fd9\u6837\u53ef\u4ee5\u5728\u547d\u4ee4\u884c\u4e2d\u76f4\u63a5\u4f7f\u7528Python\u547d\u4ee4\u3002\u7136\u540e\u70b9\u51fb\u201cInstall Now\u201d\u8fdb\u884c\u9ed8\u8ba4\u5b89\u88c5\uff0c\u6216\u8005\u70b9\u51fb\u201cCustomize installation\u201d\u8fdb\u884c\u81ea\u5b9a\u4e49\u5b89\u88c5\u3002\u5728\u81ea\u5b9a\u4e49\u5b89\u88c5\u4e2d\uff0c\u53ef\u4ee5\u9009\u62e9\u5b89\u88c5\u4f4d\u7f6e\u548c\u9700\u8981\u7684\u7ec4\u4ef6\u3002\u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u53ef\u4ee5\u6253\u5f00\u547d\u4ee4\u884c\u6216\u7ec8\u7aef\uff0c\u8f93\u5165<code>python --version<\/code>\u6216<code>python3 --version<\/code>\uff0c\u786e\u8ba4Python\u662f\u5426\u5b89\u88c5\u6210\u529f\u3002<\/p>\n<\/p>\n<p><h3>\u4e8c\u3001\u5b89\u88c5IDLE<\/h3>\n<\/p>\n<p><p>IDLE\u662fPython\u81ea\u5e26\u7684\u96c6\u6210\u5f00\u53d1\u73af\u5883\uff0c\u9002\u5408\u521d\u5b66\u8005\u4f7f\u7528\u3002<\/p>\n<\/p>\n<p><h4>2.1\u3001\u542f\u52a8IDLE<\/h4>\n<\/p>\n<p><p>\u5b89\u88c5Python\u65f6\uff0cIDLE\u4f1a\u81ea\u52a8\u5b89\u88c5\u3002\u53ef\u4ee5\u5728\u5f00\u59cb\u83dc\u5355\u4e2d\u627e\u5230IDLE\uff0c\u6216\u8005\u5728\u547d\u4ee4\u884c\u4e2d\u8f93\u5165<code>idle<\/code>\u542f\u52a8\u3002IDLE\u754c\u9762\u7b80\u5355\u76f4\u89c2\uff0c\u9002\u5408\u8fdb\u884c\u57fa\u672c\u7684Python\u7f16\u7a0b\u7ec3\u4e60\u3002<\/p>\n<\/p>\n<p><h4>2.2\u3001\u4f7f\u7528IDLE<\/h4>\n<\/p>\n<p><p>\u5728IDLE\u4e2d\uff0c\u53ef\u4ee5\u76f4\u63a5\u7f16\u5199\u548c\u8fd0\u884cPython\u4ee3\u7801\u3002\u6253\u5f00IDLE\u540e\uff0c\u4f1a\u770b\u5230\u4e00\u4e2aPython Shell\u7a97\u53e3\uff0c\u53ef\u4ee5\u5728\u8fd9\u91cc\u8f93\u5165Python\u547d\u4ee4\u5e76\u7acb\u5373\u6267\u884c\u3002\u4e5f\u53ef\u4ee5\u901a\u8fc7\u201cFile\u201d\u83dc\u5355\u65b0\u5efa\u4e00\u4e2aPython\u6587\u4ef6\uff08.py\uff09\uff0c\u5728\u6587\u4ef6\u4e2d\u7f16\u5199\u4ee3\u7801\uff0c\u7136\u540e\u901a\u8fc7\u201cRun\u201d\u83dc\u5355\u8fd0\u884c\u4ee3\u7801\u3002<\/p>\n<\/p>\n<p><h3>\u4e09\u3001\u5b89\u88c5IDE\uff08\u96c6\u6210\u5f00\u53d1\u73af\u5883\uff09<\/h3>\n<\/p>\n<p><p>\u4e3a\u4e86\u8fdb\u884c\u66f4\u590d\u6742\u7684\u7f16\u7a0b\u9879\u76ee\uff0c\u5efa\u8bae\u5b89\u88c5\u4e00\u4e9b\u529f\u80fd\u5f3a\u5927\u7684IDE\uff0c\u5982PyCharm\u6216Visual Studio Code\u3002<\/p>\n<\/p>\n<p><h4>3.1\u3001\u5b89\u88c5PyCharm<\/h4>\n<\/p>\n<p><p>PyCharm\u662fJetBr<a href=\"https:\/\/docs.pingcode.com\/blog\/59162.html\" target=\"_blank\">AI<\/a>ns\u516c\u53f8\u5f00\u53d1\u7684\u4e00\u6b3e\u4e13\u4e1a\u7684Python IDE\uff0c\u529f\u80fd\u5f3a\u5927\uff0c\u652f\u6301\u4ee3\u7801\u8865\u5168\u3001\u8c03\u8bd5\u3001\u6d4b\u8bd5\u7b49\u529f\u80fd\u3002<\/p>\n<\/p>\n<ul>\n<li><strong>\u4e0b\u8f7dPyCharm<\/strong>\uff1a\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%E5%90%88%E8%87%AA%E5%B7%B1%E6%93%8D%E4%BD%9C%E7%B3%BB%E7%BB%9F%E7%9A%84%E7%89%88%E6%9C%AC%E3%80%82PyCharm%E6%9C%89%E4%B8%A4%E4%B8%AA%E7%89%88%E6%9C%AC%EF%BC%9AProfessional%EF%BC%88%E4%BB%98%E8%B4%B9%EF%BC%89%E5%92%8CCommunity%EF%BC%88%E5%85%8D%E8%B4%B9%EF%BC%89%EF%BC%8C%E5%88%9D%E5%AD%A6%E8%80%85%E5%8F%AF%E4%BB%A5%E9%80%89%E6%8B%A9Community%E7%89%88%E6%9C%AC%E3%80%82\">https:\/\/www.jetbrains.com\/pycharm\/\uff09\uff0c\u4e0b\u8f7d\u9002\u5408\u81ea\u5df1\u64cd\u4f5c\u7cfb\u7edf\u7684\u7248\u672c\u3002PyCharm\u6709\u4e24\u4e2a\u7248\u672c\uff1aProfessional\uff08\u4ed8\u8d39\uff09\u548cCommunity\uff08\u514d\u8d39\uff09\uff0c\u521d\u5b66\u8005\u53ef\u4ee5\u9009\u62e9Community\u7248\u672c\u3002<\/a><\/li>\n<li><strong>\u5b89\u88c5PyCharm<\/strong>\uff1a\u4e0b\u8f7d\u5b8c\u6210\u540e\uff0c\u53cc\u51fb\u8fd0\u884c\u5b89\u88c5\u5305\uff0c\u6839\u636e\u63d0\u793a\u8fdb\u884c\u5b89\u88c5\u3002\u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u542f\u52a8PyCharm\uff0c\u5e76\u6309\u7167\u5411\u5bfc\u914d\u7f6ePython\u89e3\u91ca\u5668\u3002<\/li>\n<\/ul>\n<p><h4>3.2\u3001\u5b89\u88c5Visual Studio Code<\/h4>\n<\/p>\n<p><p>Visual Studio Code\u662f\u7531\u5fae\u8f6f\u5f00\u53d1\u7684\u4e00\u6b3e\u8f7b\u91cf\u7ea7\u4f46\u529f\u80fd\u5f3a\u5927\u7684\u4ee3\u7801\u7f16\u8f91\u5668\uff0c\u652f\u6301\u591a\u79cd\u7f16\u7a0b\u8bed\u8a00\uff0c\u5305\u62ecPython\u3002<\/p>\n<\/p>\n<ul>\n<li><strong>\u4e0b\u8f7dVisual Studio Code<\/strong>\uff1a\u8bbf\u95eeVisual Studio 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%E5%90%88%E8%87%AA%E5%B7%B1%E6%93%8D%E4%BD%9C%E7%B3%BB%E7%BB%9F%E7%9A%84%E7%89%88%E6%9C%AC%E3%80%82\">https:\/\/code.visualstudio.com\/\uff09\uff0c\u4e0b\u8f7d\u9002\u5408\u81ea\u5df1\u64cd\u4f5c\u7cfb\u7edf\u7684\u7248\u672c\u3002<\/a><\/li>\n<li><strong>\u5b89\u88c5Visual Studio Code<\/strong>\uff1a\u4e0b\u8f7d\u5b8c\u6210\u540e\uff0c\u53cc\u51fb\u8fd0\u884c\u5b89\u88c5\u5305\uff0c\u6839\u636e\u63d0\u793a\u8fdb\u884c\u5b89\u88c5\u3002\u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u542f\u52a8Visual Studio Code\u3002<\/li>\n<li><strong>\u5b89\u88c5Python\u6269\u5c55<\/strong>\uff1a\u5728Visual Studio Code\u4e2d\uff0c\u70b9\u51fb\u5de6\u4fa7\u7684\u6269\u5c55\u56fe\u6807\uff0c\u641c\u7d22\u201cPython\u201d\uff0c\u627e\u5230\u5e76\u5b89\u88c5\u7531Microsoft\u53d1\u5e03\u7684Python\u6269\u5c55\u3002\u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u53ef\u4ee5\u914d\u7f6ePython\u89e3\u91ca\u5668\uff0c\u5e76\u5f00\u59cb\u7f16\u5199\u548c\u8c03\u8bd5Python\u4ee3\u7801\u3002<\/li>\n<\/ul>\n<p><h3>\u56db\u3001\u914d\u7f6e\u73af\u5883\u53d8\u91cf<\/h3>\n<\/p>\n<p><p>\u6709\u65f6\u5019\u5b89\u88c5Python\u540e\uff0c\u53ef\u80fd\u9700\u8981\u624b\u52a8\u914d\u7f6e\u73af\u5883\u53d8\u91cf\uff0c\u4ee5\u4fbf\u5728\u547d\u4ee4\u884c\u4e2d\u76f4\u63a5\u4f7f\u7528Python\u547d\u4ee4\u3002<\/p>\n<\/p>\n<p><h4>4.1\u3001\u914d\u7f6eWindows\u73af\u5883\u53d8\u91cf<\/h4>\n<\/p>\n<ul>\n<li>\u6253\u5f00\u201c\u63a7\u5236\u9762\u677f\u201d\uff0c\u627e\u5230\u201c\u7cfb\u7edf\u548c\u5b89\u5168\u201d\uff0c\u70b9\u51fb\u201c\u7cfb\u7edf\u201d\uff0c\u7136\u540e\u70b9\u51fb\u5de6\u4fa7\u7684\u201c\u9ad8\u7ea7\u7cfb\u7edf\u8bbe\u7f6e\u201d\u3002<\/li>\n<li>\u5728\u201c\u7cfb\u7edf\u5c5e\u6027\u201d\u7a97\u53e3\u4e2d\uff0c\u70b9\u51fb\u201c\u73af\u5883\u53d8\u91cf\u201d\u6309\u94ae\u3002<\/li>\n<li>\u5728\u201c\u73af\u5883\u53d8\u91cf\u201d\u7a97\u53e3\u4e2d\uff0c\u627e\u5230\u201c\u7cfb\u7edf\u53d8\u91cf\u201d\u4e2d\u7684\u201cPath\u201d\u53d8\u91cf\uff0c\u9009\u4e2d\u5e76\u70b9\u51fb\u201c\u7f16\u8f91\u201d\u3002<\/li>\n<li>\u5728\u201c\u7f16\u8f91\u73af\u5883\u53d8\u91cf\u201d\u7a97\u53e3\u4e2d\uff0c\u70b9\u51fb\u201c\u65b0\u5efa\u201d\uff0c\u6dfb\u52a0Python\u7684\u5b89\u88c5\u8def\u5f84\uff08\u5982C:\\Python39\uff09\u548cScripts\u76ee\u5f55\uff08\u5982C:\\Python39\\Scripts\uff09\u3002<\/li>\n<li>\u70b9\u51fb\u201c\u786e\u5b9a\u201d\u4fdd\u5b58\u66f4\u6539\uff0c\u91cd\u65b0\u542f\u52a8\u547d\u4ee4\u884c\uff0c\u8f93\u5165<code>python --version<\/code>\u6216<code>python3 --version<\/code>\uff0c\u786e\u8ba4Python\u662f\u5426\u5b89\u88c5\u6210\u529f\u3002<\/li>\n<\/ul>\n<p><h4>4.2\u3001\u914d\u7f6eMacOS\u548cLinux\u73af\u5883\u53d8\u91cf<\/h4>\n<\/p>\n<ul>\n<li>\u6253\u5f00\u7ec8\u7aef\uff0c\u7f16\u8f91\u7528\u6237\u7684bash\u914d\u7f6e\u6587\u4ef6\uff08\u5982<code>.bashrc<\/code>\u6216<code>.bash_profile<\/code>\uff09\uff0c\u6dfb\u52a0\u5982\u4e0b\u5185\u5bb9\uff1a\n<pre><code class=\"language-bash\">export PATH=&quot;\/usr\/local\/bin\/python3:$PATH&quot;<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<li>\u4fdd\u5b58\u5e76\u5173\u95ed\u6587\u4ef6\uff0c\u8fd0\u884c<code>source ~\/.bashrc<\/code>\u6216<code>source ~\/.bash_profile<\/code>\u4ee5\u4f7f\u66f4\u6539\u751f\u6548\u3002<\/li>\n<li>\u8f93\u5165<code>python3 --version<\/code>\uff0c\u786e\u8ba4Python\u662f\u5426\u5b89\u88c5\u6210\u529f\u3002<\/li>\n<\/ul>\n<p><h3>\u4e94\u3001\u5b89\u88c5\u5e38\u7528\u7684Python\u5e93<\/h3>\n<\/p>\n<p><p>\u5b89\u88c5Python\u540e\uff0c\u5efa\u8bae\u5b89\u88c5\u4e00\u4e9b\u5e38\u7528\u7684Python\u5e93\uff0c\u4ee5\u4fbf\u8fdb\u884c\u6570\u636e\u5206\u6790\u3001<a href=\"https:\/\/docs.pingcode.com\/ask\/59192.html\" target=\"_blank\">\u673a\u5668\u5b66\u4e60<\/a>\u3001\u7f51\u7edc\u7f16\u7a0b\u7b49\u5de5\u4f5c\u3002<\/p>\n<\/p>\n<p><h4>5.1\u3001\u4f7f\u7528pip\u5b89\u88c5\u5e93<\/h4>\n<\/p>\n<p><p>pip\u662fPython\u7684\u5305\u7ba1\u7406\u5de5\u5177\uff0c\u53ef\u4ee5\u65b9\u4fbf\u5730\u5b89\u88c5\u548c\u7ba1\u7406Python\u5e93\u3002\u53ef\u4ee5\u5728\u547d\u4ee4\u884c\u4e2d\u4f7f\u7528pip\u547d\u4ee4\u5b89\u88c5\u5e93\uff0c\u5982\u4e0b\u6240\u793a\uff1a<\/p>\n<\/p>\n<ul>\n<li><strong>\u5b89\u88c5numpy<\/strong>\uff1a<code>pip install numpy<\/code><\/li>\n<li><strong>\u5b89\u88c5pandas<\/strong>\uff1a<code>pip install pandas<\/code><\/li>\n<li><strong>\u5b89\u88c5matplotlib<\/strong>\uff1a<code>pip install matplotlib<\/code><\/li>\n<li><strong>\u5b89\u88c5scikit-learn<\/strong>\uff1a<code>pip install scikit-learn<\/code><\/li>\n<\/ul>\n<p><h4>5.2\u3001\u521b\u5efa\u865a\u62df\u73af\u5883<\/h4>\n<\/p>\n<p><p>\u4e3a\u4e86\u907f\u514d\u4e0d\u540c\u9879\u76ee\u4e4b\u95f4\u7684\u5e93\u7248\u672c\u51b2\u7a81\uff0c\u5efa\u8bae\u4e3a\u6bcf\u4e2a\u9879\u76ee\u521b\u5efa\u4e00\u4e2a\u865a\u62df\u73af\u5883\u3002\u53ef\u4ee5\u4f7f\u7528<code>venv<\/code>\u6a21\u5757\u521b\u5efa\u865a\u62df\u73af\u5883\uff0c\u5982\u4e0b\u6240\u793a\uff1a<\/p>\n<\/p>\n<ul>\n<li><strong>\u521b\u5efa\u865a\u62df\u73af\u5883<\/strong>\uff1a<code>python -m venv myenv<\/code><\/li>\n<li><strong>\u6fc0\u6d3b\u865a\u62df\u73af\u5883<\/strong>\uff1aWindows\u7cfb\u7edf\u8fd0\u884c<code>myenv\\Scripts\\activate<\/code>\uff0cMacOS\u548cLinux\u7cfb\u7edf\u8fd0\u884c<code>source myenv\/bin\/activate<\/code><\/li>\n<li><strong>\u5b89\u88c5\u5e93<\/strong>\uff1a\u5728\u865a\u62df\u73af\u5883\u4e2d\u4f7f\u7528pip\u5b89\u88c5\u6240\u9700\u7684\u5e93\u3002<\/li>\n<\/ul>\n<p><h3>\u516d\u3001\u5b66\u4e60Python\u7f16\u7a0b<\/h3>\n<\/p>\n<p><p>\u5b89\u88c5\u5b8c\u6210Python\u548c\u76f8\u5173\u5de5\u5177\u540e\uff0c\u53ef\u4ee5\u5f00\u59cb\u5b66\u4e60Python\u7f16\u7a0b\u3002\u53ef\u4ee5\u901a\u8fc7\u5728\u7ebf\u8bfe\u7a0b\u3001\u4e66\u7c4d\u3001\u6559\u7a0b\u7b49\u591a\u79cd\u65b9\u5f0f\u5b66\u4e60Python\u3002\u4ee5\u4e0b\u662f\u4e00\u4e9b\u5b66\u4e60\u8d44\u6e90\u7684\u63a8\u8350\uff1a<\/p>\n<\/p>\n<p><h4>6.1\u3001\u5728\u7ebf\u8bfe\u7a0b<\/h4>\n<\/p>\n<ul>\n<li><strong>Coursera<\/strong>\uff1aCoursera\u4e0a\u6709\u5f88\u591a\u9ad8\u8d28\u91cf\u7684Python\u8bfe\u7a0b\uff0c\u5982\u201cPython for Everybody\u201d\u7cfb\u5217\u8bfe\u7a0b\u3002<\/li>\n<li><strong>edX<\/strong>\uff1aedX\u4e0a\u4e5f\u6709\u5f88\u591aPython\u8bfe\u7a0b\uff0c\u5982\u201cIntroduction to Computer Science using Python\u201d\u3002<\/li>\n<li><strong>Udacity<\/strong>\uff1aUdacity\u4e0a\u7684\u201cIntroduction to Python Programming\u201d\u662f\u4e00\u4e2a\u514d\u8d39\u7684Python\u5165\u95e8\u8bfe\u7a0b\u3002<\/li>\n<\/ul>\n<p><h4>6.2\u3001\u4e66\u7c4d<\/h4>\n<\/p>\n<ul>\n<li><strong>\u300aPython\u7f16\u7a0b\uff1a\u4ece\u5165\u95e8\u5230\u5b9e\u8df5\u300b<\/strong>\uff1a\u8fd9\u672c\u4e66\u9002\u5408\u521d\u5b66\u8005\uff0c\u5185\u5bb9\u6db5\u76d6\u4e86Python\u57fa\u7840\u77e5\u8bc6\u548c\u9879\u76ee\u5b9e\u6218\u3002<\/li>\n<li><strong>\u300aPython\u5b66\u4e60\u624b\u518c\u300b<\/strong>\uff1a\u8fd9\u672c\u4e66\u5168\u9762\u4ecb\u7ecd\u4e86Python\u7f16\u7a0b\u7684\u5404\u4e2a\u65b9\u9762\uff0c\u9002\u5408\u6df1\u5165\u5b66\u4e60\u3002<\/li>\n<li><strong>\u300a\u6d41\u7545\u7684Python\u300b<\/strong>\uff1a\u8fd9\u672c\u4e66\u9002\u5408\u6709\u4e00\u5b9aPython\u57fa\u7840\u7684\u8bfb\u8005\uff0c\u5185\u5bb9\u6df1\u5165\u6d45\u51fa\uff0c\u6db5\u76d6\u4e86Python\u7684\u9ad8\u7ea7\u7279\u6027\u3002<\/li>\n<\/ul>\n<p><h4>6.3\u3001\u5728\u7ebf\u6559\u7a0b<\/h4>\n<\/p>\n<ul>\n<li><strong>Python\u5b98\u65b9\u6587\u6863<\/strong>\uff1aPython\u7684\u5b98\u65b9\u7f51\u7ad9\u63d0\u4f9b\u4e86\u8be6\u7ec6\u7684\u6587\u6863\u548c\u6559\u7a0b\uff0c\u9002\u5408\u53c2\u8003\u548c\u67e5\u9605\u3002<\/li>\n<li><strong>w3schools<\/strong>\uff1aw3schools\u4e0a\u7684Python\u6559\u7a0b\u7b80\u6d01\u660e\u4e86\uff0c\u9002\u5408\u5feb\u901f\u5165\u95e8\u3002<\/li>\n<li><strong>Real Python<\/strong>\uff1aReal Python\u7f51\u7ad9\u4e0a\u6709\u5f88\u591a\u9ad8\u8d28\u91cf\u7684Python\u6559\u7a0b\u548c\u6587\u7ae0\uff0c\u9002\u5408\u6df1\u5165\u5b66\u4e60\u3002<\/li>\n<\/ul>\n<p><p>\u901a\u8fc7\u4ee5\u4e0a\u6b65\u9aa4\uff0c\u53ef\u4ee5\u987a\u5229\u5b89\u88c5Python\u8ba1\u7b97\u673a\u4e8c\u7ea7\u6240\u9700\u7684\u73af\u5883\uff0c\u5e76\u5f00\u59cb\u5b66\u4e60Python\u7f16\u7a0b\u3002\u5e0c\u671b\u672c\u6587\u5bf9\u60a8\u6709\u6240\u5e2e\u52a9\uff0c\u795d\u60a8\u5b66\u4e60\u6109\u5feb\uff01<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u5728\u6211\u7684\u7535\u8111\u4e0a\u4e0b\u8f7d\u5e76\u5b89\u88c5Python\uff1f<\/strong><br \/>\u8981\u4e0b\u8f7dPython\uff0c\u53ef\u4ee5\u8bbf\u95eePython\u7684\u5b98\u65b9\u7f51\u7ad9\uff08<a href=\"https:\/\/www.python.org\/%EF%BC%89%EF%BC%8C%E5%9C%A8%E9%A6%96%E9%A1%B5%E6%89%BE%E5%88%B0%E2%80%9CDownloads%E2%80%9D%E9%83%A8%E5%88%86%EF%BC%8C%E9%80%89%E6%8B%A9%E9%80%82%E5%90%88%E4%BD%A0%E6%93%8D%E4%BD%9C%E7%B3%BB%E7%BB%9F%E7%9A%84%E7%89%88%E6%9C%AC%EF%BC%88Windows%E3%80%81macOS%E6%88%96Linux%EF%BC%89%E3%80%82%E4%B8%8B%E8%BD%BD%E5%AE%8C%E6%88%90%E5%90%8E%EF%BC%8C%E5%8F%8C%E5%87%BB%E5%AE%89%E8%A3%85%E6%96%87%E4%BB%B6%EF%BC%8C%E5%B9%B6%E7%A1%AE%E4%BF%9D%E5%9C%A8%E5%AE%89%E8%A3%85%E8%BF%87%E7%A8%8B%E4%B8%AD%E5%8B%BE%E9%80%89%E2%80%9CAdd\">https:\/\/www.python.org\/\uff09\uff0c\u5728\u9996\u9875\u627e\u5230\u201cDownloads\u201d\u90e8\u5206\uff0c\u9009\u62e9\u9002\u5408\u4f60\u64cd\u4f5c\u7cfb\u7edf\u7684\u7248\u672c\uff08Windows\u3001macOS\u6216Linux\uff09\u3002\u4e0b\u8f7d\u5b8c\u6210\u540e\uff0c\u53cc\u51fb\u5b89\u88c5\u6587\u4ef6\uff0c\u5e76\u786e\u4fdd\u5728\u5b89\u88c5\u8fc7\u7a0b\u4e2d\u52fe\u9009\u201cAdd<\/a> Python to PATH\u201d\u9009\u9879\uff0c\u4fbf\u4e8e\u5728\u547d\u4ee4\u884c\u4e2d\u76f4\u63a5\u8c03\u7528Python\u3002<\/p>\n<p><strong>Python\u8ba1\u7b97\u673a\u4e8c\u7ea7\u7684\u5b66\u4e60\u8d44\u6e90\u6709\u54ea\u4e9b\uff1f<\/strong><br \/>\u4e3a\u4e86\u6709\u6548\u51c6\u5907Python\u8ba1\u7b97\u673a\u4e8c\u7ea7\u8003\u8bd5\uff0c\u5efa\u8bae\u4f7f\u7528\u591a\u79cd\u5b66\u4e60\u8d44\u6e90\uff0c\u5305\u62ec\u5728\u7ebf\u8bfe\u7a0b\u3001\u4e66\u7c4d\u548c\u7ec3\u4e60\u9898\u96c6\u3002\u5e73\u53f0\u5982Coursera\u3001edX\u548c\u6155\u8bfe\u7f51\u63d0\u4f9b\u4e86\u8bb8\u591a\u4f18\u8d28\u8bfe\u7a0b\u3002\u6b64\u5916\uff0c\u8d2d\u4e70\u4e00\u4e9b\u4e13\u4e1a\u4e66\u7c4d\uff0c\u4f8b\u5982\u300aPython\u7f16\u7a0b\uff1a\u4ece\u5165\u95e8\u5230\u5b9e\u8df5\u300b\uff0c\u4e5f\u80fd\u5e2e\u52a9\u5de9\u56fa\u57fa\u7840\u77e5\u8bc6\u3002<\/p>\n<p><strong>\u6211\u8be5\u5982\u4f55\u5728Python\u4e2d\u7f16\u5199\u548c\u8fd0\u884c\u4ee3\u7801\uff1f<\/strong><br \/>\u5728\u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u4f60\u53ef\u4ee5\u4f7f\u7528IDLE\uff08Python\u81ea\u5e26\u7684\u96c6\u6210\u5f00\u53d1\u73af\u5883\uff09\u6216\u5176\u4ed6\u7f16\u8f91\u5668\uff0c\u5982PyCharm\u3001VS Code\u7b49\uff0c\u7f16\u5199Python\u4ee3\u7801\u3002\u6253\u5f00\u6240\u9009\u5de5\u5177\uff0c\u521b\u5efa\u4e00\u4e2a\u65b0\u7684Python\u6587\u4ef6\uff08.py\uff09\uff0c\u8f93\u5165\u4ee3\u7801\u540e\uff0c\u4fdd\u5b58\u6587\u4ef6\u3002\u901a\u8fc7\u547d\u4ee4\u884c\u6216IDE\u7684\u8fd0\u884c\u529f\u80fd\uff0c\u53ef\u4ee5\u8f7b\u677e\u8fd0\u884c\u4f60\u7684\u4ee3\u7801\uff0c\u67e5\u770b\u8f93\u51fa\u7ed3\u679c\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u5982\u4f55\u5b89\u88c5Python\u8ba1\u7b97\u673a\u4e8c\u7ea7 \u5b89\u88c5Python\u8ba1\u7b97\u673a\u4e8c\u7ea7\u9700\u8981\u4e0b\u8f7dPython\u5b89\u88c5\u5305\u3001\u5b89\u88c5IDLE\u548c\u5b89\u88c5\u76f8\u5173\u7684 [&hellip;]","protected":false},"author":3,"featured_media":1109986,"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\/1109978"}],"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=1109978"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1109978\/revisions"}],"predecessor-version":[{"id":1109989,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1109978\/revisions\/1109989"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/1109986"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=1109978"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=1109978"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=1109978"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}