{"id":1103058,"date":"2025-01-08T16:06:30","date_gmt":"2025-01-08T08:06:30","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1103058.html"},"modified":"2025-01-08T16:06:33","modified_gmt":"2025-01-08T08:06:33","slug":"%e5%a6%82%e4%bd%95%e7%ac%ac%e4%b8%80%e6%ac%a1%e4%bd%bf%e7%94%a8python%e8%bd%af%e4%bb%b6","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/1103058.html","title":{"rendered":"\u5982\u4f55\u7b2c\u4e00\u6b21\u4f7f\u7528python\u8f6f\u4ef6"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/25065045\/31032419-1396-45f5-a34d-2d1469638715.webp\" alt=\"\u5982\u4f55\u7b2c\u4e00\u6b21\u4f7f\u7528python\u8f6f\u4ef6\" \/><\/p>\n<p><p> <strong>\u5982\u4f55\u7b2c\u4e00\u6b21\u4f7f\u7528Python\u8f6f\u4ef6<\/strong><\/p>\n<\/p>\n<p><p><strong>\u5b89\u88c5Python\u3001\u9009\u62e9\u5408\u9002\u7684\u96c6\u6210\u5f00\u53d1\u73af\u5883\uff08IDE\uff09\u3001\u7406\u89e3\u57fa\u672c\u8bed\u6cd5\u3001\u7f16\u5199\u548c\u8fd0\u884c\u7b2c\u4e00\u4e2aPython\u7a0b\u5e8f\u3001\u4f7f\u7528Python\u6587\u6863\u548c\u8d44\u6e90\u3001\u52a0\u5165Python\u793e\u533a<\/strong>\u3002\u9996\u6b21\u4f7f\u7528Python\u8f6f\u4ef6\u65f6\uff0c\u9996\u5148\u9700\u8981\u5b89\u88c5Python\u89e3\u91ca\u5668\uff0c\u5e76\u9009\u62e9\u4e00\u4e2a\u9002\u5408\u7684\u96c6\u6210\u5f00\u53d1\u73af\u5883\uff08IDE\uff09\u6765\u7f16\u5199\u548c\u8fd0\u884c\u4ee3\u7801\u3002\u63a5\u4e0b\u6765\uff0c\u9700\u8981\u5b66\u4e60Python\u7684\u57fa\u672c\u8bed\u6cd5\u548c\u6982\u5ff5\uff0c\u901a\u8fc7\u7f16\u5199\u548c\u8fd0\u884c\u7b80\u5355\u7684\u7a0b\u5e8f\u6765\u719f\u6089Python\u7684\u4f7f\u7528\u3002\u540c\u65f6\uff0c\u5229\u7528Python\u7684\u5b98\u65b9\u6587\u6863\u548c\u5728\u7ebf\u8d44\u6e90\u6765\u89e3\u51b3\u7591\u95ee\u548c\u83b7\u53d6\u5e2e\u52a9\uff0c\u6700\u540e\uff0c\u52a0\u5165Python\u793e\u533a\uff0c\u4e0e\u5176\u4ed6\u5f00\u53d1\u8005\u4ea4\u6d41\u548c\u5b66\u4e60\u3002<\/p>\n<\/p>\n<p><p><strong>\u5b89\u88c5Python<\/strong>\u662f\u4f7f\u7528Python\u8f6f\u4ef6\u7684\u7b2c\u4e00\u6b65\u3002Python\u662f\u4e00\u4e2a\u5f00\u6e90\u7684\u7f16\u7a0b\u8bed\u8a00\uff0c\u5b89\u88c5\u8fc7\u7a0b\u76f8\u5bf9\u7b80\u5355\u3002\u9996\u5148\uff0c\u8bbf\u95eePython\u7684\u5b98\u65b9\u7f51\u7ad9\uff08<a href=\"https:\/\/www.python.org\/%EF%BC%89%EF%BC%8C%E9%80%89%E6%8B%A9%E9%80%82%E5%90%88%E6%82%A8%E6%93%8D%E4%BD%9C%E7%B3%BB%E7%BB%9F%E7%9A%84%E5%AE%89%E8%A3%85%E5%8C%85%E8%BF%9B%E8%A1%8C%E4%B8%8B%E8%BD%BD%E3%80%82%E5%AE%89%E8%A3%85%E8%BF%87%E7%A8%8B%E4%B8%AD%EF%BC%8C%E5%8A%A1%E5%BF%85%E5%8B%BE%E9%80%89%E2%80%9CAdd\">https:\/\/www.python.org\/\uff09\uff0c\u9009\u62e9\u9002\u5408\u60a8\u64cd\u4f5c\u7cfb\u7edf\u7684\u5b89\u88c5\u5305\u8fdb\u884c\u4e0b\u8f7d\u3002\u5b89\u88c5\u8fc7\u7a0b\u4e2d\uff0c\u52a1\u5fc5\u52fe\u9009\u201cAdd<\/a> Python to PATH\u201d\u9009\u9879\uff0c\u8fd9\u6837\u53ef\u4ee5\u5728\u547d\u4ee4\u884c\u4e2d\u76f4\u63a5\u4f7f\u7528Python\u3002\u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u53ef\u4ee5\u5728\u547d\u4ee4\u884c\u4e2d\u8f93\u5165\u201cpython\u201d\u6216\u201cpython3\u201d\u6765\u9a8c\u8bc1\u662f\u5426\u5b89\u88c5\u6210\u529f\u3002<\/p>\n<\/p>\n<p><h3>\u4e00\u3001\u5b89\u88c5Python<\/h3>\n<\/p>\n<p><p>\u5b89\u88c5Python\u662f\u5f00\u59cb\u4f7f\u7528\u8be5\u8bed\u8a00\u7684\u7b2c\u4e00\u6b65\u3002Python\u662f\u4e00\u79cd\u5f00\u6e90\u7684\u3001\u9ad8\u7ea7\u7684\u7f16\u7a0b\u8bed\u8a00\uff0c\u5b89\u88c5\u8fc7\u7a0b\u975e\u5e38\u7b80\u5355\u3002\u4ee5\u4e0b\u662f\u5177\u4f53\u6b65\u9aa4\uff1a<\/p>\n<\/p>\n<p><h4>1\u3001\u4e0b\u8f7dPython<\/h4>\n<\/p>\n<p><p>\u9996\u5148\uff0c\u60a8\u9700\u8981\u4ecePython\u5b98\u65b9\u7f51\u7ad9\uff08<a href=\"https:\/\/www.python.org\/%EF%BC%89%E4%B8%8B%E8%BD%BDPython%E5%AE%89%E8%A3%85%E5%8C%85%E3%80%82%E7%BD%91%E7%AB%99%E4%BC%9A%E8%87%AA%E5%8A%A8%E6%A3%80%E6%B5%8B%E6%82%A8%E7%9A%84%E6%93%8D%E4%BD%9C%E7%B3%BB%E7%BB%9F%EF%BC%8C%E5%B9%B6%E6%8E%A8%E8%8D%90%E5%90%88%E9%80%82%E7%9A%84%E7%89%88%E6%9C%AC%E3%80%82%E4%B8%80%E8%88%AC%E6%83%85%E5%86%B5%E4%B8%8B%EF%BC%8C%E5%BB%BA%E8%AE%AE%E4%B8%8B%E8%BD%BD%E6%9C%80%E6%96%B0%E7%9A%84%E7%A8%B3%E5%AE%9A%E7%89%88%E6%9C%AC%E3%80%82\">https:\/\/www.python.org\/\uff09\u4e0b\u8f7dPython\u5b89\u88c5\u5305\u3002\u7f51\u7ad9\u4f1a\u81ea\u52a8\u68c0\u6d4b\u60a8\u7684\u64cd\u4f5c\u7cfb\u7edf\uff0c\u5e76\u63a8\u8350\u5408\u9002\u7684\u7248\u672c\u3002\u4e00\u822c\u60c5\u51b5\u4e0b\uff0c\u5efa\u8bae\u4e0b\u8f7d\u6700\u65b0\u7684\u7a33\u5b9a\u7248\u672c\u3002<\/a><\/p>\n<\/p>\n<p><h4>2\u3001\u8fd0\u884c\u5b89\u88c5\u7a0b\u5e8f<\/h4>\n<\/p>\n<p><p>\u4e0b\u8f7d\u5b8c\u6210\u540e\uff0c\u8fd0\u884c\u5b89\u88c5\u7a0b\u5e8f\u3002\u5728\u5b89\u88c5\u8fc7\u7a0b\u4e2d\uff0c\u6709\u51e0\u4e2a\u9009\u9879\u9700\u8981\u6ce8\u610f\uff1a<\/p>\n<\/p>\n<ul>\n<li><strong>Add Python to PATH<\/strong>\uff1a\u4e00\u5b9a\u8981\u52fe\u9009\u8fd9\u4e2a\u9009\u9879\uff0c\u8fd9\u6837\u53ef\u4ee5\u5728\u547d\u4ee4\u884c\u4e2d\u76f4\u63a5\u4f7f\u7528Python\u3002<\/li>\n<li><strong>Customize installation<\/strong>\uff1a\u5efa\u8bae\u9009\u62e9\u81ea\u5b9a\u4e49\u5b89\u88c5\uff0c\u53ef\u4ee5\u9009\u62e9\u5b89\u88c5\u4e00\u4e9b\u989d\u5916\u7684\u5de5\u5177\u548c\u5e93\u3002<\/li>\n<\/ul>\n<p><h4>3\u3001\u9a8c\u8bc1\u5b89\u88c5<\/h4>\n<\/p>\n<p><p>\u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u6253\u5f00\u547d\u4ee4\u884c\uff08Windows\u7528\u6237\u53ef\u4ee5\u4f7f\u7528cmd\u6216PowerShell\uff0cMac\u548cLinux\u7528\u6237\u53ef\u4ee5\u4f7f\u7528\u7ec8\u7aef\uff09\uff0c\u8f93\u5165\u4ee5\u4e0b\u547d\u4ee4\u6765\u9a8c\u8bc1Python\u662f\u5426\u5b89\u88c5\u6210\u529f\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-sh\">python --version<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5982\u679c\u663e\u793aPython\u7684\u7248\u672c\u53f7\uff0c\u8bf4\u660e\u5b89\u88c5\u6210\u529f\u3002<\/p>\n<\/p>\n<p><h3>\u4e8c\u3001\u9009\u62e9\u5408\u9002\u7684\u96c6\u6210\u5f00\u53d1\u73af\u5883\uff08IDE\uff09<\/h3>\n<\/p>\n<p><p>\u4e00\u4e2a\u597d\u7684IDE\u53ef\u4ee5\u6781\u5927\u5730\u63d0\u5347\u60a8\u7684\u7f16\u7a0b\u6548\u7387\u548c\u4f53\u9a8c\u3002\u4ee5\u4e0b\u662f\u51e0\u79cd\u5e38\u89c1\u7684Python IDE\uff1a<\/p>\n<\/p>\n<p><h4>1\u3001PyCharm<\/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\u5f3a\u5927\u7684Python IDE\u3002\u5b83\u63d0\u4f9b\u4e86\u667a\u80fd\u4ee3\u7801\u8865\u5168\u3001\u8c03\u8bd5\u5de5\u5177\u3001\u7248\u672c\u63a7\u5236\u96c6\u6210\u7b49\u591a\u79cd\u529f\u80fd\u3002PyCharm\u6709\u793e\u533a\u7248\uff08\u514d\u8d39\uff09\u548c\u4e13\u4e1a\u7248\uff08\u4ed8\u8d39\uff09\uff0c\u5bf9\u4e8e\u521d\u5b66\u8005\u6765\u8bf4\uff0c\u793e\u533a\u7248\u5df2\u7ecf\u8db3\u591f\u4f7f\u7528\u3002<\/p>\n<\/p>\n<p><h4>2\u3001Visual Studio Code<\/h4>\n<\/p>\n<p><p>Visual Studio Code\uff08VS Code\uff09\u662f\u4e00\u6b3e\u7531\u5fae\u8f6f\u5f00\u53d1\u7684\u5f00\u6e90\u4ee3\u7801\u7f16\u8f91\u5668\u3002\u5b83\u652f\u6301\u591a\u79cd\u7f16\u7a0b\u8bed\u8a00\uff0c\u901a\u8fc7\u5b89\u88c5\u6269\u5c55\u53ef\u4ee5\u83b7\u5f97\u5f3a\u5927\u7684Python\u5f00\u53d1\u529f\u80fd\u3002VS Code\u8f7b\u91cf\u3001\u9ad8\u6548\uff0c\u975e\u5e38\u9002\u5408\u521d\u5b66\u8005\u3002<\/p>\n<\/p>\n<p><h4>3\u3001Jupyter Notebook<\/h4>\n<\/p>\n<p><p>Jupyter Notebook\u662f\u4e00\u79cd\u4ea4\u4e92\u5f0f\u7684\u5f00\u53d1\u73af\u5883\uff0c\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\u3002\u5b83\u5141\u8bb8\u60a8\u5728\u4e00\u4e2a\u6587\u6863\u4e2d\u7f16\u5199\u4ee3\u7801\u3001\u8fd0\u884c\u4ee3\u7801\u3001\u53ef\u89c6\u5316\u6570\u636e\u548c\u6dfb\u52a0\u6ce8\u91ca\u3002\u5bf9\u4e8e\u5b66\u4e60\u548c\u5c55\u793aPython\u4ee3\u7801\u975e\u5e38\u6709\u5e2e\u52a9\u3002<\/p>\n<\/p>\n<p><h3>\u4e09\u3001\u7406\u89e3\u57fa\u672c\u8bed\u6cd5<\/h3>\n<\/p>\n<p><p>\u5728\u5b89\u88c5\u597dPython\u5e76\u9009\u62e9\u5408\u9002\u7684IDE\u540e\uff0c\u63a5\u4e0b\u6765\u9700\u8981\u5b66\u4e60Python\u7684\u57fa\u672c\u8bed\u6cd5\u3002\u4ee5\u4e0b\u662f\u4e00\u4e9bPython\u7684\u57fa\u7840\u6982\u5ff5\uff1a<\/p>\n<\/p>\n<p><h4>1\u3001\u53d8\u91cf\u548c\u6570\u636e\u7c7b\u578b<\/h4>\n<\/p>\n<p><p>Python\u662f\u4e00\u79cd\u52a8\u6001\u7c7b\u578b\u8bed\u8a00\uff0c\u53d8\u91cf\u4e0d\u9700\u8981\u58f0\u660e\u7c7b\u578b\u3002\u4ee5\u4e0b\u662f\u4e00\u4e9b\u5e38\u89c1\u7684\u6570\u636e\u7c7b\u578b\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, Python&quot;<\/p>\n<h2><strong>\u5e03\u5c14\u503c<\/strong><\/h2>\n<p>d = True<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>2\u3001\u6761\u4ef6\u8bed\u53e5<\/h4>\n<\/p>\n<p><p>Python\u4f7f\u7528<code>if<\/code>\u3001<code>elif<\/code>\u548c<code>else<\/code>\u6765\u8fdb\u884c\u6761\u4ef6\u5224\u65ad\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">if a &gt; 5:<\/p>\n<p>    print(&quot;a is greater than 5&quot;)<\/p>\n<p>elif a == 5:<\/p>\n<p>    print(&quot;a is equal to 5&quot;)<\/p>\n<p>else:<\/p>\n<p>    print(&quot;a is less than 5&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>3\u3001\u5faa\u73af\u8bed\u53e5<\/h4>\n<\/p>\n<p><p>Python\u652f\u6301<code>for<\/code>\u5faa\u73af\u548c<code>while<\/code>\u5faa\u73af\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\"># for\u5faa\u73af<\/p>\n<p>for i in range(5):<\/p>\n<p>    print(i)<\/p>\n<h2><strong>while\u5faa\u73af<\/strong><\/h2>\n<p>i = 0<\/p>\n<p>while i &lt; 5:<\/p>\n<p>    print(i)<\/p>\n<p>    i += 1<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u56db\u3001\u7f16\u5199\u548c\u8fd0\u884c\u7b2c\u4e00\u4e2aPython\u7a0b\u5e8f<\/h3>\n<\/p>\n<p><p>\u5728\u7406\u89e3\u4e86\u57fa\u672c\u8bed\u6cd5\u540e\uff0c\u53ef\u4ee5\u5c1d\u8bd5\u7f16\u5199\u548c\u8fd0\u884c\u7b2c\u4e00\u4e2aPython\u7a0b\u5e8f\u3002\u4ee5\u4e0b\u662f\u4e00\u4e2a\u7b80\u5355\u7684\u793a\u4f8b\uff1a<\/p>\n<\/p>\n<p><h4>1\u3001\u7f16\u5199\u4ee3\u7801<\/h4>\n<\/p>\n<p><p>\u6253\u5f00\u60a8\u9009\u62e9\u7684IDE\uff0c\u521b\u5efa\u4e00\u4e2a\u65b0\u7684Python\u6587\u4ef6\uff08\u6587\u4ef6\u6269\u5c55\u540d\u4e3a<code>.py<\/code>\uff09\uff0c\u8f93\u5165\u4ee5\u4e0b\u4ee3\u7801\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">print(&quot;Hello, Python!&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>2\u3001\u8fd0\u884c\u7a0b\u5e8f<\/h4>\n<\/p>\n<p><p>\u4fdd\u5b58\u6587\u4ef6\u540e\uff0c\u60a8\u53ef\u4ee5\u901a\u8fc7\u4ee5\u4e0b\u51e0\u79cd\u65b9\u5f0f\u8fd0\u884c\u7a0b\u5e8f\uff1a<\/p>\n<\/p>\n<ul>\n<li><strong>\u5728IDE\u4e2d\u8fd0\u884c<\/strong>\uff1a\u5927\u591a\u6570IDE\u90fd\u6709\u8fd0\u884c\u6309\u94ae\uff0c\u53ef\u4ee5\u76f4\u63a5\u70b9\u51fb\u8fd0\u884c\u4ee3\u7801\u3002<\/li>\n<li><strong>\u5728\u547d\u4ee4\u884c\u4e2d\u8fd0\u884c<\/strong>\uff1a\u6253\u5f00\u547d\u4ee4\u884c\uff0c\u5bfc\u822a\u5230\u4ee3\u7801\u6587\u4ef6\u6240\u5728\u7684\u76ee\u5f55\uff0c\u8f93\u5165\u4ee5\u4e0b\u547d\u4ee4\u8fd0\u884c\u7a0b\u5e8f\uff1a<\/li>\n<\/ul>\n<p><pre><code class=\"language-sh\">python yourfile.py<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p><code>yourfile.py<\/code>\u662f\u60a8\u4fdd\u5b58\u7684Python\u6587\u4ef6\u7684\u540d\u79f0\u3002<\/p>\n<\/p>\n<p><h3>\u4e94\u3001\u4f7f\u7528Python\u6587\u6863\u548c\u8d44\u6e90<\/h3>\n<\/p>\n<p><p>\u5728\u5b66\u4e60Python\u7684\u8fc7\u7a0b\u4e2d\uff0c\u60a8\u53ef\u80fd\u4f1a\u9047\u5230\u5404\u79cd\u95ee\u9898\uff0c\u8fd9\u65f6\u53ef\u4ee5\u501f\u52a9Python\u7684\u5b98\u65b9\u6587\u6863\u548c\u5728\u7ebf\u8d44\u6e90\u6765\u89e3\u51b3\u3002<\/p>\n<\/p>\n<p><h4>1\u3001Python\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%A0%E5%92%8C%E6%9F%A5%E6%89%BEPython%E4%BF%A1%E6%81%AF%E7%9A%84%E6%9C%80%E4%BD%B3%E8%B5%84%E6%BA%90%E3%80%82%E6%96%87%E6%A1%A3%E8%AF%A6%E7%BB%86%E4%BB%8B%E7%BB%8D%E4%BA%86Python%E7%9A%84%E6%89%80%E6%9C%89%E5%86%85%E7%BD%AE%E5%87%BD%E6%95%B0%E3%80%81%E5%BA%93%E5%92%8C%E6%A8%A1%E5%9D%97%EF%BC%8C%E5%B9%B6%E6%8F%90%E4%BE%9B%E4%BA%86%E4%B8%B0%E5%AF%8C%E7%9A%84%E7%A4%BA%E4%BE%8B%E4%BB%A3%E7%A0%81%E3%80%82\">https:\/\/docs.python.org\/\uff09\u662f\u5b66\u4e60\u548c\u67e5\u627ePython\u4fe1\u606f\u7684\u6700\u4f73\u8d44\u6e90\u3002\u6587\u6863\u8be6\u7ec6\u4ecb\u7ecd\u4e86Python\u7684\u6240\u6709\u5185\u7f6e\u51fd\u6570\u3001\u5e93\u548c\u6a21\u5757\uff0c\u5e76\u63d0\u4f9b\u4e86\u4e30\u5bcc\u7684\u793a\u4f8b\u4ee3\u7801\u3002<\/a><\/p>\n<\/p>\n<p><h4>2\u3001\u5728\u7ebf\u6559\u7a0b\u548c\u4e66\u7c4d<\/h4>\n<\/p>\n<p><p>\u9664\u4e86\u5b98\u65b9\u6587\u6863\uff0c\u8fd8\u6709\u8bb8\u591a\u4f18\u8d28\u7684\u5728\u7ebf\u6559\u7a0b\u548c\u4e66\u7c4d\u53ef\u4ee5\u5e2e\u52a9\u60a8\u5b66\u4e60Python\u3002\u4f8b\u5982\uff1a<\/p>\n<\/p>\n<ul>\n<li><strong>\u300aPython\u7f16\u7a0b\uff1a\u4ece\u5165\u95e8\u5230\u5b9e\u8df5\u300b<\/strong>\uff1a\u4e00\u672c\u975e\u5e38\u9002\u5408\u521d\u5b66\u8005\u7684\u4e66\u7c4d\uff0c\u6db5\u76d6\u4e86Python\u57fa\u7840\u77e5\u8bc6\u548c\u4e00\u4e9b\u5b9e\u7528\u7684\u9879\u76ee\u3002<\/li>\n<li><strong>Real Python<\/strong>\uff08<a href=\"https:\/\/realpython.com\/%EF%BC%89%EF%BC%9A%E4%B8%80%E4%B8%AA%E6%8F%90%E4%BE%9BPython%E6%95%99%E7%A8%8B%E5%92%8C%E8%AF%BE%E7%A8%8B%E7%9A%84%E7%BD%91%E7%AB%99%EF%BC%8C%E5%86%85%E5%AE%B9%E4%B8%B0%E5%AF%8C%E4%B8%94%E6%98%93%E4%BA%8E%E7%90%86%E8%A7%A3%E3%80%82\">https:\/\/realpython.com\/\uff09\uff1a\u4e00\u4e2a\u63d0\u4f9bPython\u6559\u7a0b\u548c\u8bfe\u7a0b\u7684\u7f51\u7ad9\uff0c\u5185\u5bb9\u4e30\u5bcc\u4e14\u6613\u4e8e\u7406\u89e3\u3002<\/a><\/li>\n<li><strong>Codecademy<\/strong>\uff08<a href=\"https:\/\/www.codecademy.com\/learn\/learn-python-3%EF%BC%89%EF%BC%9A%E4%B8%80%E4%B8%AA%E5%9C%A8%E7%BA%BF%E7%BC%96%E7%A8%8B%E5%AD%A6%E4%B9%A0%E5%B9%B3%E5%8F%B0%EF%BC%8C%E6%8F%90%E4%BE%9B%E4%BA%92%E5%8A%A8%E5%BC%8F%E7%9A%84Python%E8%AF%BE%E7%A8%8B%E3%80%82\">https:\/\/www.codecademy.com\/learn\/learn-python-3\uff09\uff1a\u4e00\u4e2a\u5728\u7ebf\u7f16\u7a0b\u5b66\u4e60\u5e73\u53f0\uff0c\u63d0\u4f9b\u4e92\u52a8\u5f0f\u7684Python\u8bfe\u7a0b\u3002<\/a><\/li>\n<\/ul>\n<p><h3>\u516d\u3001\u52a0\u5165Python\u793e\u533a<\/h3>\n<\/p>\n<p><p>\u52a0\u5165Python\u793e\u533a\u662f\u5b66\u4e60\u548c\u63d0\u5347Python\u6280\u80fd\u7684\u91cd\u8981\u9014\u5f84\u3002\u901a\u8fc7\u4e0e\u5176\u4ed6\u5f00\u53d1\u8005\u4ea4\u6d41\u548c\u5408\u4f5c\uff0c\u60a8\u53ef\u4ee5\u83b7\u53d6\u66f4\u591a\u7684\u77e5\u8bc6\u548c\u7ecf\u9a8c\u3002<\/p>\n<\/p>\n<p><h4>1\u3001\u5728\u7ebf\u793e\u533a\u548c\u8bba\u575b<\/h4>\n<\/p>\n<p><p>\u4ee5\u4e0b\u662f\u4e00\u4e9b\u6d3b\u8dc3\u7684Python\u5728\u7ebf\u793e\u533a\u548c\u8bba\u575b\uff1a<\/p>\n<\/p>\n<ul>\n<li><strong>Stack Overflow<\/strong>\uff08<a href=\"https:\/\/stackoverflow.com\/%EF%BC%89%EF%BC%9A%E4%B8%80%E4%B8%AA%E9%97%AE%E7%AD%94%E7%BD%91%E7%AB%99%EF%BC%8C%E6%82%A8%E5%8F%AF%E4%BB%A5%E5%9C%A8%E8%BF%99%E9%87%8C%E6%8F%90%E9%97%AE%E5%92%8C%E5%9B%9E%E7%AD%94%E5%85%B3%E4%BA%8EPython%E7%9A%84%E9%97%AE%E9%A2%98%E3%80%82\">https:\/\/stackoverflow.com\/\uff09\uff1a\u4e00\u4e2a\u95ee\u7b54\u7f51\u7ad9\uff0c\u60a8\u53ef\u4ee5\u5728\u8fd9\u91cc\u63d0\u95ee\u548c\u56de\u7b54\u5173\u4e8ePython\u7684\u95ee\u9898\u3002<\/a><\/li>\n<li><strong>Reddit<\/strong>\uff08<a href=\"https:\/\/www.reddit.com\/r\/learnpython\/%EF%BC%89%EF%BC%9A%E4%B8%80%E4%B8%AA%E4%B8%93%E6%B3%A8%E4%BA%8EPython%E5%AD%A6%E4%B9%A0%E7%9A%84%E5%AD%90%E7%89%88%E5%9D%97%EF%BC%8C%E7%94%A8%E6%88%B7%E5%8F%AF%E4%BB%A5%E5%9C%A8%E8%BF%99%E9%87%8C%E5%88%86%E4%BA%AB%E7%BB%8F%E9%AA%8C%E5%92%8C%E8%B5%84%E6%BA%90%E3%80%82\">https:\/\/www.reddit.com\/r\/learnpython\/\uff09\uff1a\u4e00\u4e2a\u4e13\u6ce8\u4e8ePython\u5b66\u4e60\u7684\u5b50\u7248\u5757\uff0c\u7528\u6237\u53ef\u4ee5\u5728\u8fd9\u91cc\u5206\u4eab\u7ecf\u9a8c\u548c\u8d44\u6e90\u3002<\/a><\/li>\n<li><strong>GitHub<\/strong>\uff08<a href=\"https:\/\/github.com\/%EF%BC%89%EF%BC%9A%E4%B8%80%E4%B8%AA%E4%BB%A3%E7%A0%81%E6%89%98%E7%AE%A1%E5%B9%B3%E5%8F%B0%EF%BC%8C%E6%82%A8%E5%8F%AF%E4%BB%A5%E5%9C%A8%E8%BF%99%E9%87%8C%E6%B5%8F%E8%A7%88%E5%92%8C%E8%B4%A1%E7%8C%AE%E5%BC%80%E6%BA%90Python%E9%A1%B9%E7%9B%AE%E3%80%82\">https:\/\/github.com\/\uff09\uff1a\u4e00\u4e2a\u4ee3\u7801\u6258\u7ba1\u5e73\u53f0\uff0c\u60a8\u53ef\u4ee5\u5728\u8fd9\u91cc\u6d4f\u89c8\u548c\u8d21\u732e\u5f00\u6e90Python\u9879\u76ee\u3002<\/a><\/li>\n<\/ul>\n<p><h4>2\u3001\u53c2\u52a0\u7ebf\u4e0b\u6d3b\u52a8<\/h4>\n<\/p>\n<p><p>\u9664\u4e86\u5728\u7ebf\u793e\u533a\uff0c\u60a8\u8fd8\u53ef\u4ee5\u53c2\u52a0\u4e00\u4e9b\u7ebf\u4e0b\u6d3b\u52a8\uff0c\u5982Python\u5f00\u53d1\u8005\u5927\u4f1a\uff08PyCon\uff09\u548c\u672c\u5730\u7684Python\u7528\u6237\u7ec4\uff08PUG\uff09\u6d3b\u52a8\u3002\u8fd9\u4e9b\u6d3b\u52a8\u63d0\u4f9b\u4e86\u9762\u5bf9\u9762\u4ea4\u6d41\u7684\u673a\u4f1a\uff0c\u60a8\u53ef\u4ee5\u7ed3\u8bc6\u5176\u4ed6Python\u5f00\u53d1\u8005\uff0c\u5e76\u5206\u4eab\u5f7c\u6b64\u7684\u7ecf\u9a8c\u548c\u5fc3\u5f97\u3002<\/p>\n<\/p>\n<p><h3>\u4e03\u3001\u7f16\u5199\u548c\u8c03\u8bd5\u4ee3\u7801<\/h3>\n<\/p>\n<p><p>\u7f16\u5199\u548c\u8c03\u8bd5\u4ee3\u7801\u662f\u638c\u63e1Python\u7684\u5173\u952e\u3002\u901a\u8fc7\u4e0d\u65ad\u7ec3\u4e60\u548c\u89e3\u51b3\u5b9e\u9645\u95ee\u9898\uff0c\u60a8\u53ef\u4ee5\u9010\u6e10\u63d0\u5347\u81ea\u5df1\u7684\u7f16\u7a0b\u6280\u80fd\u3002<\/p>\n<\/p>\n<p><h4>1\u3001\u7f16\u5199\u4ee3\u7801<\/h4>\n<\/p>\n<p><p>\u5c1d\u8bd5\u7f16\u5199\u4e00\u4e9b\u7b80\u5355\u7684\u7a0b\u5e8f\uff0c\u4f8b\u5982\u8ba1\u7b97\u5668\u3001\u5c0f\u6e38\u620f\u6216\u6570\u636e\u5904\u7406\u5de5\u5177\u3002\u8fd9\u4e9b\u9879\u76ee\u53ef\u4ee5\u5e2e\u52a9\u60a8\u5de9\u56fa\u57fa\u7840\u77e5\u8bc6\uff0c\u5e76\u7406\u89e3\u5982\u4f55\u5c06\u7406\u8bba\u5e94\u7528\u4e8e\u5b9e\u9645\u95ee\u9898\u3002<\/p>\n<\/p>\n<p><h4>2\u3001\u8c03\u8bd5\u4ee3\u7801<\/h4>\n<\/p>\n<p><p>\u5728\u7f16\u5199\u4ee3\u7801\u7684\u8fc7\u7a0b\u4e2d\uff0c\u60a8\u53ef\u80fd\u4f1a\u9047\u5230\u5404\u79cd\u9519\u8bef\u548c\u95ee\u9898\u3002\u5b66\u4f1a\u8c03\u8bd5\u4ee3\u7801\u662f\u89e3\u51b3\u8fd9\u4e9b\u95ee\u9898\u7684\u5173\u952e\u3002\u4ee5\u4e0b\u662f\u4e00\u4e9b\u5e38\u89c1\u7684\u8c03\u8bd5\u65b9\u6cd5\uff1a<\/p>\n<\/p>\n<ul>\n<li><strong>\u9605\u8bfb\u9519\u8bef\u4fe1\u606f<\/strong>\uff1a\u5f53\u7a0b\u5e8f\u51fa\u9519\u65f6\uff0cPython\u4f1a\u751f\u6210\u9519\u8bef\u4fe1\u606f\u3002\u4ed4\u7ec6\u9605\u8bfb\u9519\u8bef\u4fe1\u606f\uff0c\u901a\u5e38\u53ef\u4ee5\u5e2e\u52a9\u60a8\u627e\u5230\u95ee\u9898\u7684\u6839\u6e90\u3002<\/li>\n<li><strong>\u4f7f\u7528\u8c03\u8bd5\u5de5\u5177<\/strong>\uff1a\u5927\u591a\u6570IDE\u90fd\u63d0\u4f9b\u8c03\u8bd5\u5de5\u5177\uff0c\u53ef\u4ee5\u9010\u884c\u6267\u884c\u4ee3\u7801\uff0c\u67e5\u770b\u53d8\u91cf\u503c\uff0c\u5e2e\u52a9\u60a8\u627e\u51fa\u95ee\u9898\u6240\u5728\u3002<\/li>\n<li><strong>\u6dfb\u52a0\u6253\u5370\u8bed\u53e5<\/strong>\uff1a\u5728\u4ee3\u7801\u4e2d\u6dfb\u52a0\u6253\u5370\u8bed\u53e5\uff0c\u53ef\u4ee5\u5e2e\u52a9\u60a8\u4e86\u89e3\u7a0b\u5e8f\u7684\u6267\u884c\u8fc7\u7a0b\uff0c\u627e\u51fa\u9519\u8bef\u7684\u4f4d\u7f6e\u3002<\/li>\n<\/ul>\n<p><h3>\u516b\u3001\u5b66\u4e60\u9ad8\u7ea7\u6982\u5ff5\u548c\u5e93<\/h3>\n<\/p>\n<p><p>\u5728\u638c\u63e1\u4e86\u57fa\u7840\u77e5\u8bc6\u540e\uff0c\u53ef\u4ee5\u8fdb\u4e00\u6b65\u5b66\u4e60\u4e00\u4e9b\u9ad8\u7ea7\u6982\u5ff5\u548c\u5e93\uff0c\u4ee5\u63d0\u5347\u60a8\u7684\u7f16\u7a0b\u80fd\u529b\u3002<\/p>\n<\/p>\n<p><h4>1\u3001\u9762\u5411\u5bf9\u8c61\u7f16\u7a0b<\/h4>\n<\/p>\n<p><p>Python\u662f\u4e00\u79cd\u9762\u5411\u5bf9\u8c61\u7684\u7f16\u7a0b\u8bed\u8a00\uff0c\u5b66\u4e60\u9762\u5411\u5bf9\u8c61\u7f16\u7a0b\uff08OOP\uff09\u53ef\u4ee5\u5e2e\u52a9\u60a8\u7f16\u5199\u66f4\u9ad8\u6548\u3001\u53ef\u7ef4\u62a4\u7684\u4ee3\u7801\u3002\u4ee5\u4e0b\u662f\u4e00\u4e9bOOP\u7684\u57fa\u672c\u6982\u5ff5\uff1a<\/p>\n<\/p>\n<ul>\n<li><strong>\u7c7b\u548c\u5bf9\u8c61<\/strong>\uff1a\u7c7b\u662f\u5bf9\u8c61\u7684\u84dd\u56fe\uff0c\u5bf9\u8c61\u662f\u7c7b\u7684\u5b9e\u4f8b\u3002<\/li>\n<li><strong>\u7ee7\u627f<\/strong>\uff1a\u5b50\u7c7b\u53ef\u4ee5\u7ee7\u627f\u7236\u7c7b\u7684\u5c5e\u6027\u548c\u65b9\u6cd5\uff0c\u5b9e\u73b0\u4ee3\u7801\u91cd\u7528\u3002<\/li>\n<li><strong>\u591a\u6001<\/strong>\uff1a\u4e0d\u540c\u7c7b\u7684\u5bf9\u8c61\u53ef\u4ee5\u901a\u8fc7\u76f8\u540c\u7684\u63a5\u53e3\u8c03\u7528\u4e0d\u540c\u7684\u65b9\u6cd5\uff0c\u5b9e\u73b0\u7075\u6d3b\u7684\u4ee3\u7801\u7ed3\u6784\u3002<\/li>\n<\/ul>\n<p><h4>2\u3001\u5e38\u7528\u5e93<\/h4>\n<\/p>\n<p><p>Python\u6709\u4e30\u5bcc\u7684\u6807\u51c6\u5e93\u548c\u7b2c\u4e09\u65b9\u5e93\uff0c\u53ef\u4ee5\u5e2e\u52a9\u60a8\u89e3\u51b3\u5404\u79cd\u95ee\u9898\u3002\u4ee5\u4e0b\u662f\u4e00\u4e9b\u5e38\u7528\u7684\u5e93\uff1a<\/p>\n<\/p>\n<ul>\n<li><strong>NumPy<\/strong>\uff1a\u4e00\u4e2a\u7528\u4e8e\u6570\u503c\u8ba1\u7b97\u7684\u5e93\uff0c\u63d0\u4f9b\u591a\u7ef4\u6570\u7ec4\u548c\u77e9\u9635\u8fd0\u7b97\u529f\u80fd\u3002<\/li>\n<li><strong>Pandas<\/strong>\uff1a\u4e00\u4e2a\u7528\u4e8e\u6570\u636e\u5206\u6790\u7684\u5e93\uff0c\u63d0\u4f9b\u9ad8\u6548\u7684\u6570\u636e\u5904\u7406\u548c\u5206\u6790\u5de5\u5177\u3002<\/li>\n<li><strong>Matplotlib<\/strong>\uff1a\u4e00\u4e2a\u7528\u4e8e\u6570\u636e\u53ef\u89c6\u5316\u7684\u5e93\uff0c\u652f\u6301\u751f\u6210\u5404\u79cd\u56fe\u8868\u548c\u56fe\u5f62\u3002<\/li>\n<li><strong>Requests<\/strong>\uff1a\u4e00\u4e2a\u7528\u4e8e\u53d1\u9001HTTP\u8bf7\u6c42\u7684\u5e93\uff0c\u65b9\u4fbf\u4e0eWeb\u670d\u52a1\u8fdb\u884c\u4ea4\u4e92\u3002<\/li>\n<\/ul>\n<p><h3>\u4e5d\u3001\u5b9e\u8df5\u9879\u76ee<\/h3>\n<\/p>\n<p><p>\u901a\u8fc7\u5b9e\u8df5\u9879\u76ee\uff0c\u60a8\u53ef\u4ee5\u5c06\u6240\u5b66\u7684\u77e5\u8bc6\u5e94\u7528\u4e8e\u5b9e\u9645\u95ee\u9898\uff0c\u5e76\u63d0\u5347\u7f16\u7a0b\u6280\u80fd\u3002\u4ee5\u4e0b\u662f\u4e00\u4e9b\u9002\u5408\u521d\u5b66\u8005\u7684\u5b9e\u8df5\u9879\u76ee\uff1a<\/p>\n<\/p>\n<p><h4>1\u3001\u8ba1\u7b97\u5668<\/h4>\n<\/p>\n<p><p>\u7f16\u5199\u4e00\u4e2a\u7b80\u5355\u7684\u8ba1\u7b97\u5668\u7a0b\u5e8f\uff0c\u652f\u6301\u52a0\u3001\u51cf\u3001\u4e58\u3001\u9664\u7b49\u57fa\u672c\u8fd0\u7b97\u3002\u901a\u8fc7\u8fd9\u4e2a\u9879\u76ee\uff0c\u60a8\u53ef\u4ee5\u719f\u6089\u6761\u4ef6\u8bed\u53e5\u3001\u5faa\u73af\u8bed\u53e5\u548c\u51fd\u6570\u7684\u4f7f\u7528\u3002<\/p>\n<\/p>\n<p><h4>2\u3001\u731c\u6570\u5b57\u6e38\u620f<\/h4>\n<\/p>\n<p><p>\u7f16\u5199\u4e00\u4e2a\u731c\u6570\u5b57\u6e38\u620f\uff0c\u7a0b\u5e8f\u4f1a\u968f\u673a\u751f\u6210\u4e00\u4e2a\u6570\u5b57\uff0c\u7528\u6237\u9700\u8981\u5728\u4e00\u5b9a\u6b21\u6570\u5185\u731c\u51fa\u8fd9\u4e2a\u6570\u5b57\u3002\u901a\u8fc7\u8fd9\u4e2a\u9879\u76ee\uff0c\u60a8\u53ef\u4ee5\u7ec3\u4e60\u968f\u673a\u6570\u751f\u6210\u3001\u8f93\u5165\u8f93\u51fa\u548c\u5faa\u73af\u63a7\u5236\u3002<\/p>\n<\/p>\n<p><h4>3\u3001\u6570\u636e\u5206\u6790\u5de5\u5177<\/h4>\n<\/p>\n<p><p>\u4f7f\u7528Pandas\u5e93\u7f16\u5199\u4e00\u4e2a\u6570\u636e\u5206\u6790\u5de5\u5177\uff0c\u53ef\u4ee5\u8bfb\u53d6CSV\u6587\u4ef6\uff0c\u8fdb\u884c\u6570\u636e\u6e05\u6d17\u548c\u5206\u6790\uff0c\u5e76\u751f\u6210\u7edf\u8ba1\u62a5\u544a\u3002\u901a\u8fc7\u8fd9\u4e2a\u9879\u76ee\uff0c\u60a8\u53ef\u4ee5\u719f\u6089\u6570\u636e\u5904\u7406\u548c\u5206\u6790\u7684\u57fa\u672c\u65b9\u6cd5\u3002<\/p>\n<\/p>\n<p><h4>4\u3001Web\u722c\u866b<\/h4>\n<\/p>\n<p><p>\u4f7f\u7528Requests\u548cBeautifulSoup\u5e93\u7f16\u5199\u4e00\u4e2a\u7b80\u5355\u7684Web\u722c\u866b\uff0c\u6293\u53d6\u7f51\u9875\u4e0a\u7684\u6570\u636e\uff0c\u5e76\u4fdd\u5b58\u5230\u672c\u5730\u6587\u4ef6\u3002\u901a\u8fc7\u8fd9\u4e2a\u9879\u76ee\uff0c\u60a8\u53ef\u4ee5\u4e86\u89e3HTTP\u8bf7\u6c42\u3001HTML\u89e3\u6790\u548c\u6570\u636e\u5b58\u50a8\u7684\u57fa\u672c\u77e5\u8bc6\u3002<\/p>\n<\/p>\n<p><h3>\u5341\u3001\u6301\u7eed\u5b66\u4e60\u548c\u63d0\u5347<\/h3>\n<\/p>\n<p><p>\u5b66\u4e60\u7f16\u7a0b\u662f\u4e00\u4e2a\u6301\u7eed\u7684\u8fc7\u7a0b\uff0c\u60a8\u9700\u8981\u4e0d\u65ad\u5b66\u4e60\u548c\u63d0\u5347\u81ea\u5df1\u7684\u6280\u80fd\u3002\u4ee5\u4e0b\u662f\u4e00\u4e9b\u5efa\u8bae\uff1a<\/p>\n<\/p>\n<p><h4>1\u3001\u4fdd\u6301\u5b66\u4e60\u4e60\u60ef<\/h4>\n<\/p>\n<p><p>\u6bcf\u5929\u82b1\u4e00\u5b9a\u65f6\u95f4\u5b66\u4e60\u548c\u7ec3\u4e60Python\uff0c\u4fdd\u6301\u6301\u7eed\u7684\u5b66\u4e60\u4e60\u60ef\u3002\u53ef\u4ee5\u8ba2\u9605\u4e00\u4e9b\u7f16\u7a0b\u535a\u5ba2\u3001\u5fae\u4fe1\u516c\u4f17\u53f7\uff0c\u5173\u6ce8\u6700\u65b0\u7684\u6280\u672f\u52a8\u6001\u548c\u5b9e\u8df5\u7ecf\u9a8c\u3002<\/p>\n<\/p>\n<p><h4>2\u3001\u53c2\u4e0e\u5f00\u6e90\u9879\u76ee<\/h4>\n<\/p>\n<p><p>\u53c2\u4e0e\u5f00\u6e90\u9879\u76ee\u662f\u63d0\u5347\u7f16\u7a0b\u6280\u80fd\u7684\u597d\u65b9\u6cd5\u3002\u901a\u8fc7\u8d21\u732e\u4ee3\u7801\u3001\u89e3\u51b3\u95ee\u9898\u548c\u4e0e\u5176\u4ed6\u5f00\u53d1\u8005\u5408\u4f5c\uff0c\u60a8\u53ef\u4ee5\u83b7\u5f97\u5b9d\u8d35\u7684\u7ecf\u9a8c\u548c\u53cd\u9988\u3002GitHub\u662f\u4e00\u4e2a\u5f88\u597d\u7684\u5e73\u53f0\uff0c\u60a8\u53ef\u4ee5\u5728\u4e0a\u9762\u627e\u5230\u8bb8\u591a\u6709\u8da3\u7684\u5f00\u6e90\u9879\u76ee\u3002<\/p>\n<\/p>\n<p><h4>3\u3001\u53c2\u52a0\u7f16\u7a0b\u7ade\u8d5b<\/h4>\n<\/p>\n<p><p>\u53c2\u52a0\u7f16\u7a0b\u7ade\u8d5b\u53ef\u4ee5\u953b\u70bc\u60a8\u7684\u7f16\u7a0b\u80fd\u529b\u548c\u89e3\u51b3\u95ee\u9898\u7684\u6280\u5de7\u3002\u8bb8\u591a\u5728\u7ebf\u5e73\u53f0\uff0c\u5982LeetCode\u3001Codeforces\u548cHackerRank\uff0c\u63d0\u4f9b\u5404\u79cd\u7f16\u7a0b\u7ade\u8d5b\u548c\u7ec3\u4e60\u9898\u76ee\uff0c\u60a8\u53ef\u4ee5\u901a\u8fc7\u53c2\u52a0\u8fd9\u4e9b\u7ade\u8d5b\u63d0\u5347\u81ea\u5df1\u7684\u6c34\u5e73\u3002<\/p>\n<\/p>\n<p><h4>4\u3001\u9605\u8bfb\u6280\u672f\u4e66\u7c4d<\/h4>\n<\/p>\n<p><p>\u9605\u8bfb\u6280\u672f\u4e66\u7c4d\u662f\u6df1\u5165\u5b66\u4e60\u7f16\u7a0b\u77e5\u8bc6\u7684\u91cd\u8981\u9014\u5f84\u3002\u9664\u4e86\u300aPython\u7f16\u7a0b\uff1a\u4ece\u5165\u95e8\u5230\u5b9e\u8df5\u300b\uff0c\u8fd8\u6709\u8bb8\u591a\u4f18\u79c0\u7684Python\u4e66\u7c4d\uff0c\u5982\u300a\u6d41\u7545\u7684Python\u300b\u3001\u300aPython\u9ad8\u7ea7\u7f16\u7a0b\u300b\u548c\u300aPython\u6570\u636e\u79d1\u5b66\u624b\u518c\u300b\u7b49\u3002\u901a\u8fc7\u9605\u8bfb\u8fd9\u4e9b\u4e66\u7c4d\uff0c\u60a8\u53ef\u4ee5\u6df1\u5165\u7406\u89e3Python\u7684\u9ad8\u7ea7\u6982\u5ff5\u548c\u5e94\u7528\u3002<\/p>\n<\/p>\n<p><h3>\u5341\u4e00\u3001\u603b\u7ed3<\/h3>\n<\/p>\n<p><p>\u9996\u6b21\u4f7f\u7528Python\u8f6f\u4ef6\u65f6\uff0c\u5b89\u88c5Python\u89e3\u91ca\u5668\u548c\u9009\u62e9\u5408\u9002\u7684IDE\u662f\u5173\u952e\u6b65\u9aa4\u3002\u63a5\u4e0b\u6765\uff0c\u901a\u8fc7\u5b66\u4e60\u57fa\u672c\u8bed\u6cd5\u3001\u7f16\u5199\u548c\u8fd0\u884c\u7b80\u5355\u7a0b\u5e8f\u3001\u5229\u7528\u5b98\u65b9\u6587\u6863\u548c\u5728\u7ebf\u8d44\u6e90\u3001\u52a0\u5165Python\u793e\u533a\u3001\u7f16\u5199\u548c\u8c03\u8bd5\u4ee3\u7801\u3001\u5b66\u4e60\u9ad8\u7ea7\u6982\u5ff5\u548c\u5e93\u3001\u5b9e\u8df5\u9879\u76ee\u4ee5\u53ca\u6301\u7eed\u5b66\u4e60\u548c\u63d0\u5347\uff0c\u60a8\u53ef\u4ee5\u9010\u6b65\u638c\u63e1Python\u7f16\u7a0b\u8bed\u8a00\u3002\u5e0c\u671b\u8fd9\u4e9b\u5efa\u8bae\u80fd\u591f\u5e2e\u52a9\u60a8\u987a\u5229\u5165\u95e8Python\uff0c\u5e76\u5728\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>\u7b2c\u4e00\u6b21\u4f7f\u7528Python\u8f6f\u4ef6\u9700\u8981\u51c6\u5907\u4ec0\u4e48\uff1f<\/strong><br \/>\u5728\u5f00\u59cb\u4f7f\u7528Python\u4e4b\u524d\uff0c\u7528\u6237\u9700\u8981\u786e\u4fdd\u5df2\u7ecf\u5728\u8ba1\u7b97\u673a\u4e0a\u5b89\u88c5\u4e86Python\u8f6f\u4ef6\u3002\u53ef\u4ee5\u8bbf\u95eePython\u7684\u5b98\u65b9\u7f51\u7ad9\u4e0b\u8f7d\u6700\u65b0\u7248\u672c\uff0c\u5b89\u88c5\u65f6\u5efa\u8bae\u52fe\u9009\u201cAdd Python to PATH\u201d\u9009\u9879\uff0c\u4ee5\u4fbf\u5728\u547d\u4ee4\u884c\u4e2d\u76f4\u63a5\u4f7f\u7528Python\u3002\u6b64\u5916\uff0c\u5b89\u88c5\u4e00\u4e2a\u5408\u9002\u7684\u96c6\u6210\u5f00\u53d1\u73af\u5883\uff08IDE\uff09\u4e5f\u5f88\u6709\u5e2e\u52a9\uff0c\u4f8b\u5982PyCharm\u3001VS Code\u6216Jupyter Notebook\uff0c\u5b83\u4eec\u80fd\u591f\u63d0\u4f9b\u66f4\u53cb\u597d\u7684\u7f16\u7a0b\u73af\u5883\u3002<\/p>\n<p><strong>\u6211\u5e94\u8be5\u4ece\u54ea\u91cc\u5f00\u59cb\u5b66\u4e60Python\u7f16\u7a0b\uff1f<\/strong><br \/>\u5bf9\u4e8e\u521d\u5b66\u8005\u6765\u8bf4\uff0c\u5efa\u8bae\u4ece\u57fa\u7840\u77e5\u8bc6\u5165\u624b\uff0c\u4f8b\u5982\u53d8\u91cf\u3001\u6570\u636e\u7c7b\u578b\u3001\u63a7\u5236\u7ed3\u6784\uff08\u5982\u5faa\u73af\u548c\u6761\u4ef6\u8bed\u53e5\uff09\u4ee5\u53ca\u51fd\u6570\u7b49\u6982\u5ff5\u3002\u53ef\u4ee5\u901a\u8fc7\u5728\u7ebf\u6559\u7a0b\u3001\u89c6\u9891\u8bfe\u7a0b\u6216\u7f16\u7a0b\u4e66\u7c4d\u8fdb\u884c\u5b66\u4e60\u3002\u8bb8\u591a\u5e73\u53f0\u5982Codecademy\u3001Coursera\u548cedX\u90fd\u63d0\u4f9b\u7cfb\u7edf\u5316\u7684Python\u8bfe\u7a0b\uff0c\u5e2e\u52a9\u7528\u6237\u5faa\u5e8f\u6e10\u8fdb\u5730\u638c\u63e1\u7f16\u7a0b\u6280\u80fd\u3002<\/p>\n<p><strong>\u5982\u4f55\u8c03\u8bd5\u6211\u7684Python\u4ee3\u7801\uff1f<\/strong><br \/>\u8c03\u8bd5Python\u4ee3\u7801\u53ef\u4ee5\u901a\u8fc7\u591a\u79cd\u65b9\u5f0f\u8fdb\u884c\u3002\u9996\u5148\uff0cIDE\u901a\u5e38\u63d0\u4f9b\u4e86\u8c03\u8bd5\u5de5\u5177\uff0c\u53ef\u4ee5\u9010\u884c\u6267\u884c\u4ee3\u7801\u5e76\u68c0\u67e5\u53d8\u91cf\u7684\u503c\u3002\u6b64\u5916\uff0c\u4f7f\u7528<code>print()<\/code>\u51fd\u6570\u8fdb\u884c\u8c03\u8bd5\u4e5f\u662f\u4e00\u4e2a\u5e38\u89c1\u7684\u65b9\u6cd5\uff0c\u80fd\u591f\u5e2e\u52a9\u7528\u6237\u8ffd\u8e2a\u7a0b\u5e8f\u7684\u6267\u884c\u6d41\u7a0b\u548c\u53d8\u91cf\u7684\u53d8\u5316\u3002\u5bf9\u4e8e\u66f4\u590d\u6742\u7684\u8c03\u8bd5\u9700\u6c42\uff0cPython\u7684<code>pdb<\/code>\u6a21\u5757\u53ef\u4ee5\u7528\u4e8e\u8bbe\u7f6e\u65ad\u70b9\u548c\u6b65\u8fdb\u6267\u884c\uff0c\u6709\u52a9\u4e8e\u6df1\u5165\u7406\u89e3\u4ee3\u7801\u7684\u8fd0\u884c\u60c5\u51b5\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u5982\u4f55\u7b2c\u4e00\u6b21\u4f7f\u7528Python\u8f6f\u4ef6 \u5b89\u88c5Python\u3001\u9009\u62e9\u5408\u9002\u7684\u96c6\u6210\u5f00\u53d1\u73af\u5883\uff08IDE\uff09\u3001\u7406\u89e3\u57fa\u672c\u8bed\u6cd5\u3001\u7f16\u5199\u548c\u8fd0\u884c\u7b2c [&hellip;]","protected":false},"author":3,"featured_media":1103072,"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\/1103058"}],"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=1103058"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1103058\/revisions"}],"predecessor-version":[{"id":1103075,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1103058\/revisions\/1103075"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/1103072"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=1103058"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=1103058"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=1103058"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}