{"id":1080262,"date":"2025-01-08T12:28:25","date_gmt":"2025-01-08T04:28:25","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1080262.html"},"modified":"2025-01-08T12:28:27","modified_gmt":"2025-01-08T04:28:27","slug":"%e5%a6%82%e4%bd%95%e4%b8%8b%e8%bd%bdpython%e7%94%a8%e4%bb%80%e4%b9%88%e6%b5%8f%e8%a7%88%e5%99%a8-2","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/1080262.html","title":{"rendered":"\u5982\u4f55\u4e0b\u8f7dpython\u7528\u4ec0\u4e48\u6d4f\u89c8\u5668"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/24182903\/a93acf76-fe02-4038-afba-b438b6404fdf.webp\" alt=\"\u5982\u4f55\u4e0b\u8f7dpython\u7528\u4ec0\u4e48\u6d4f\u89c8\u5668\" \/><\/p>\n<p><p> <strong>\u5982\u4f55\u4e0b\u8f7dPython\u7528\u4ec0\u4e48\u6d4f\u89c8\u5668\uff1f<\/strong><\/p>\n<\/p>\n<p><p><strong>Python\u53ef\u4ee5\u901a\u8fc7\u4efb\u4f55\u73b0\u4ee3\u6d4f\u89c8\u5668\u4e0b\u8f7d\uff0c\u5982Google Chrome\u3001Mozilla Firefox\u3001Microsoft Edge\u3001Safari<\/strong>\uff0c\u5176\u4e2dGoogle Chrome\u548cMozilla Firefox\u662f\u63a8\u8350\u7684\u9009\u62e9\u3002<strong>\u4f7f\u7528Google Chrome\u4e0b\u8f7dPython<\/strong>\uff0c\u4e0d\u4ec5\u56e0\u4e3a\u5b83\u7684\u901f\u5ea6\u548c\u7a33\u5b9a\u6027\uff0c\u8fd8\u56e0\u4e3a\u5b83\u6709\u5e7f\u6cdb\u7684\u6269\u5c55\u652f\u6301\u548c\u517c\u5bb9\u6027\u3002\u5728\u8be6\u7ec6\u63cf\u8ff0\u4e2d\uff0c\u6211\u4eec\u5c06\u4ecb\u7ecd\u5982\u4f55\u4f7f\u7528Google Chrome\u4e0b\u8f7dPython\u3002<\/p>\n<\/p>\n<p><p><strong>\u4e00\u3001\u51c6\u5907\u5de5\u4f5c<\/strong><\/p>\n<\/p>\n<p><p>\u5728\u5f00\u59cb\u4e4b\u524d\uff0c\u786e\u4fdd\u4f60\u7684\u8ba1\u7b97\u673a\u5df2\u7ecf\u8fde\u63a5\u5230\u4e92\u8054\u7f51\uff0c\u5e76\u4e14\u5df2\u7ecf\u5b89\u88c5\u4e86Google Chrome\u6d4f\u89c8\u5668\u3002\u5982\u679c\u6ca1\u6709\u5b89\u88c5\uff0c\u53ef\u4ee5\u8bbf\u95eeGoogle Chrome\u5b98\u7f51\u8fdb\u884c\u4e0b\u8f7d\u548c\u5b89\u88c5\u3002\u4f7f\u7528\u6700\u65b0\u7248\u672c\u7684\u6d4f\u89c8\u5668\u53ef\u4ee5\u786e\u4fdd\u6700\u4f73\u7684\u6027\u80fd\u548c\u5b89\u5168\u6027\u3002<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u4e0b\u8f7dGoogle Chrome<\/strong>\uff1a\u8bbf\u95ee<a href=\"https:\/\/www.google.com\/chrome\/\">Google Chrome\u5b98\u7f51<\/a>\u5e76\u6309\u7167\u63d0\u793a\u4e0b\u8f7d\u5e76\u5b89\u88c5\u6700\u65b0\u7248\u672c\u7684Google Chrome\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u68c0\u67e5\u7cfb\u7edf\u8981\u6c42<\/strong>\uff1aPython\u652f\u6301Windows\u3001macOS\u548cLinux\u7cfb\u7edf\u3002\u786e\u4fdd\u4f60\u7684\u64cd\u4f5c\u7cfb\u7edf\u7248\u672c\u6ee1\u8db3Python\u7684\u7cfb\u7edf\u8981\u6c42\u3002\u53ef\u4ee5\u8bbf\u95ee<a href=\"https:\/\/www.python.org\/downloads\/\">Python\u5b98\u7f51<\/a>\u67e5\u770b\u8be6\u7ec6\u7684\u7cfb\u7edf\u8981\u6c42\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<p><p><strong>\u4e8c\u3001\u4e0b\u8f7dPython<\/strong><\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u8bbf\u95eePython\u5b98\u7f51<\/strong>\uff1a\u6253\u5f00Google Chrome\u6d4f\u89c8\u5668\uff0c\u8f93\u5165\u7f51\u5740\uff1a<a href=\"https:\/\/www.python.org%E3%80%82\">https:\/\/www.python.org\u3002<\/a><\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u9009\u62e9\u4e0b\u8f7d\u9875\u9762<\/strong>\uff1a\u70b9\u51fb\u9875\u9762\u9876\u90e8\u7684\u201cDownloads\u201d\u9009\u9879\u5361\u3002\u6839\u636e\u4f60\u7684\u64cd\u4f5c\u7cfb\u7edf\uff08Windows\u3001macOS\u6216Linux\uff09\uff0c\u9009\u62e9\u76f8\u5e94\u7684\u4e0b\u8f7d\u94fe\u63a5\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u4e0b\u8f7d\u6700\u65b0\u7248\u672c<\/strong>\uff1a\u901a\u5e38\uff0cPython\u5b98\u7f51\u4f1a\u81ea\u52a8\u63a8\u8350\u9002\u5408\u4f60\u64cd\u4f5c\u7cfb\u7edf\u7684\u6700\u65b0\u7248\u672c\u3002\u70b9\u51fb\u201cDownload Python X.X.X\u201d\u6309\u94ae\uff08X\u4ee3\u8868\u7248\u672c\u53f7\uff09\u5f00\u59cb\u4e0b\u8f7d\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u9009\u62e9\u5b89\u88c5\u76ee\u5f55<\/strong>\uff1a\u4e0b\u8f7d\u5b8c\u6210\u540e\uff0c\u53cc\u51fb\u4e0b\u8f7d\u7684\u5b89\u88c5\u6587\u4ef6\uff0c\u9009\u62e9\u5b89\u88c5\u76ee\u5f55\u548c\u5176\u4ed6\u5b89\u88c5\u9009\u9879\uff0c\u70b9\u51fb\u201cInstall Now\u201d\u8fdb\u884c\u5b89\u88c5\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<p><p><strong>\u4e09\u3001\u5b89\u88c5Python<\/strong><\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u8fd0\u884c\u5b89\u88c5\u7a0b\u5e8f<\/strong>\uff1a\u4e0b\u8f7d\u5b8c\u6210\u540e\uff0c\u627e\u5230\u4e0b\u8f7d\u7684\u5b89\u88c5\u6587\u4ef6\uff08\u901a\u5e38\u5728\u201c\u4e0b\u8f7d\u201d\u6587\u4ef6\u5939\u4e2d\uff09\uff0c\u53cc\u51fb\u8fd0\u884c\u5b83\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u9009\u62e9\u5b89\u88c5\u9009\u9879<\/strong>\uff1a\u5728\u5b89\u88c5\u754c\u9762\u4e2d\uff0c\u52fe\u9009\u201cAdd Python to PATH\u201d\u9009\u9879\uff0c\u4ee5\u4fbf\u5728\u547d\u4ee4\u884c\u4e2d\u8f7b\u677e\u8bbf\u95eePython\u3002\u9009\u62e9\u201cInstall Now\u201d\u5f00\u59cb\u5b89\u88c5\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u5b8c\u6210\u5b89\u88c5<\/strong>\uff1a\u5b89\u88c5\u8fc7\u7a0b\u5927\u7ea6\u9700\u8981\u51e0\u5206\u949f\u65f6\u95f4\u3002\u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u4f60\u4f1a\u770b\u5230\u4e00\u4e2a\u6210\u529f\u5b89\u88c5\u7684\u63d0\u793a\u3002\u70b9\u51fb\u201cClose\u201d\u5173\u95ed\u5b89\u88c5\u7a0b\u5e8f\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<p><p><strong>\u56db\u3001\u9a8c\u8bc1\u5b89\u88c5<\/strong><\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u6253\u5f00\u547d\u4ee4\u884c<\/strong>\uff1a\u5728Windows\u4e2d\uff0c\u6309\u4e0bWindows\u952e\uff0c\u8f93\u5165\u201ccmd\u201d\uff0c\u7136\u540e\u6309\u56de\u8f66\u952e\u3002\u5728macOS\u4e2d\uff0c\u6253\u5f00\u201c\u7ec8\u7aef\u201d\u5e94\u7528\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u68c0\u67e5Python\u7248\u672c<\/strong>\uff1a\u5728\u547d\u4ee4\u884c\u7a97\u53e3\u4e2d\u8f93\u5165\u4ee5\u4e0b\u547d\u4ee4\u5e76\u6309\u56de\u8f66\u952e\uff1a<\/p>\n<\/p>\n<p><pre><code>python --version<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p> \u4f60\u5e94\u8be5\u4f1a\u770b\u5230\u5df2\u5b89\u88c5\u7684Python\u7248\u672c\u53f7\uff0c\u4f8b\u5982\u201cPython 3.9.7\u201d\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u68c0\u67e5pip\u7248\u672c<\/strong>\uff1apip\u662fPython\u7684\u5305\u7ba1\u7406\u5de5\u5177\u3002\u8f93\u5165\u4ee5\u4e0b\u547d\u4ee4\u5e76\u6309\u56de\u8f66\u952e\uff1a<\/p>\n<\/p>\n<p><pre><code>pip --version<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p> \u4f60\u5e94\u8be5\u4f1a\u770b\u5230\u5df2\u5b89\u88c5\u7684pip\u7248\u672c\u53f7\uff0c\u4f8b\u5982\u201cpip 21.2.4\u201d\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<p><p><strong>\u4e94\u3001\u914d\u7f6e\u5f00\u53d1\u73af\u5883<\/strong><\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u5b89\u88c5\u4ee3\u7801\u7f16\u8f91\u5668<\/strong>\uff1a\u4e3a\u4e86\u7f16\u5199\u548c\u8fd0\u884cPython\u4ee3\u7801\uff0c\u5efa\u8bae\u5b89\u88c5\u4e00\u4e2a\u4ee3\u7801\u7f16\u8f91\u5668\uff0c\u5982Visual Studio Code\u3001PyCharm\u6216Sublime Text\u3002\u4f60\u53ef\u4ee5\u4ece\u76f8\u5e94\u7684\u5b98\u7f51\u4e0b\u8f7d\u5e76\u5b89\u88c5\u8fd9\u4e9b\u7f16\u8f91\u5668\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u5b89\u88c5\u5fc5\u8981\u7684Python\u5e93<\/strong>\uff1a\u4f7f\u7528pip\u5b89\u88c5\u4f60\u9700\u8981\u7684Python\u5e93\u3002\u4f8b\u5982\uff0c\u8981\u5b89\u88c5requests\u5e93\uff0c\u53ef\u4ee5\u5728\u547d\u4ee4\u884c\u4e2d\u8f93\u5165\uff1a<\/p>\n<\/p>\n<p><pre><code>pip install requests<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u914d\u7f6e\u865a\u62df\u73af\u5883<\/strong>\uff1a\u4e3a\u4e86\u907f\u514d\u5e93\u51b2\u7a81\uff0c\u5efa\u8bae\u4e3a\u6bcf\u4e2a\u9879\u76ee\u521b\u5efa\u4e00\u4e2a\u865a\u62df\u73af\u5883\u3002\u5728\u547d\u4ee4\u884c\u4e2d\u8fdb\u5165\u4f60\u7684\u9879\u76ee\u76ee\u5f55\uff0c\u8f93\u5165\u4ee5\u4e0b\u547d\u4ee4\u521b\u5efa\u5e76\u6fc0\u6d3b\u865a\u62df\u73af\u5883\uff1a<\/p>\n<\/p>\n<p><pre><code>python -m venv myenv<\/p>\n<p>myenv\\Scripts\\activate \uff08Windows\uff09<\/p>\n<p>source myenv\/bin\/activate \uff08macOS\u548cLinux\uff09<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<\/ol>\n<p><p><strong>\u516d\u3001\u5f00\u59cb\u7f16\u5199Python\u4ee3\u7801<\/strong><\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u521b\u5efaPython\u811a\u672c<\/strong>\uff1a\u5728\u4f60\u7684\u4ee3\u7801\u7f16\u8f91\u5668\u4e2d\uff0c\u521b\u5efa\u4e00\u4e2a\u65b0\u7684Python\u6587\u4ef6\uff0c\u547d\u540d\u4e3a\u201chello.py\u201d\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u7f16\u5199\u4ee3\u7801<\/strong>\uff1a\u5728hello.py\u6587\u4ef6\u4e2d\uff0c\u8f93\u5165\u4ee5\u4e0b\u4ee3\u7801\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">print(&quot;Hello, World!&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u8fd0\u884c\u4ee3\u7801<\/strong>\uff1a\u5728\u547d\u4ee4\u884c\u4e2d\uff0c\u5bfc\u822a\u5230hello.py\u6587\u4ef6\u6240\u5728\u7684\u76ee\u5f55\uff0c\u8f93\u5165\u4ee5\u4e0b\u547d\u4ee4\u8fd0\u884c\u4ee3\u7801\uff1a<\/p>\n<\/p>\n<p><pre><code>python hello.py<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u4f60\u5e94\u8be5\u4f1a\u5728\u547d\u4ee4\u884c\u7a97\u53e3\u4e2d\u770b\u5230\u201cHello, World!\u201d\u7684\u8f93\u51fa\u3002\u81f3\u6b64\uff0c\u4f60\u5df2\u7ecf\u6210\u529f\u4e0b\u8f7d\u5e76\u5b89\u88c5\u4e86Python\uff0c\u5e76\u914d\u7f6e\u597d\u4e86\u5f00\u53d1\u73af\u5883\u3002<\/p>\n<\/p>\n<p><p><strong>\u4e03\u3001\u5e38\u89c1\u95ee\u9898\u53ca\u89e3\u51b3\u65b9\u6848<\/strong><\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u4e0b\u8f7d\u901f\u5ea6\u6162<\/strong>\uff1a\u5982\u679c\u4e0b\u8f7d\u901f\u5ea6\u6162\uff0c\u53ef\u4ee5\u5c1d\u8bd5\u4f7f\u7528\u5176\u4ed6\u6d4f\u89c8\u5668\u6216\u5207\u6362\u5230\u9ad8\u901f\u7f51\u7edc\u73af\u5883\u3002\u6b64\u5916\uff0c\u4f60\u4e5f\u53ef\u4ee5\u4f7f\u7528\u4e0b\u8f7d\u5de5\u5177\uff08\u5982IDM\uff09\u52a0\u901f\u4e0b\u8f7d\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u5b89\u88c5\u5931\u8d25<\/strong>\uff1a\u5982\u679c\u5728\u5b89\u88c5\u8fc7\u7a0b\u4e2d\u9047\u5230\u9519\u8bef\uff0c\u786e\u4fdd\u4f60\u4e0b\u8f7d\u7684\u662f\u9002\u5408\u4f60\u64cd\u4f5c\u7cfb\u7edf\u7684\u5b89\u88c5\u6587\u4ef6\u3002\u68c0\u67e5\u662f\u5426\u6709\u8db3\u591f\u7684\u78c1\u76d8\u7a7a\u95f4\uff0c\u5e76\u786e\u4fdd\u4f60\u7684\u64cd\u4f5c\u7cfb\u7edf\u7248\u672c\u6ee1\u8db3Python\u7684\u7cfb\u7edf\u8981\u6c42\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u547d\u4ee4\u884c\u65e0\u6cd5\u8bc6\u522bPython<\/strong>\uff1a\u5982\u679c\u5728\u547d\u4ee4\u884c\u4e2d\u8f93\u5165<code>python<\/code>\u547d\u4ee4\u65f6\u63d0\u793a\u627e\u4e0d\u5230\u547d\u4ee4\uff0c\u53ef\u80fd\u662f\u56e0\u4e3a\u6ca1\u6709\u6b63\u786e\u8bbe\u7f6ePATH\u73af\u5883\u53d8\u91cf\u3002\u4f60\u53ef\u4ee5\u624b\u52a8\u5c06Python\u7684\u5b89\u88c5\u8def\u5f84\u6dfb\u52a0\u5230\u7cfb\u7edf\u7684PATH\u73af\u5883\u53d8\u91cf\u4e2d\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<p><p><strong>\u516b\u3001\u6df1\u5165\u5b66\u4e60Python<\/strong><\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u5728\u7ebf\u8d44\u6e90<\/strong>\uff1aPython\u6709\u4e30\u5bcc\u7684\u5728\u7ebf\u5b66\u4e60\u8d44\u6e90\uff0c\u5982\u5b98\u65b9\u6587\u6863\u3001\u6559\u7a0b\u548c\u793e\u533a\u652f\u6301\u3002\u4f60\u53ef\u4ee5\u8bbf\u95ee<a href=\"https:\/\/docs.python.org\/3\/\">Python\u5b98\u65b9\u6587\u6863<\/a>\u83b7\u53d6\u8be6\u7ec6\u7684\u8bed\u8a00\u53c2\u8003\u548c\u6307\u5357\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u4e66\u7c4d\u63a8\u8350<\/strong>\uff1a\u4e00\u4e9b\u7ecf\u5178\u7684Python\u4e66\u7c4d\u5982\u300aPython\u7f16\u7a0b\uff1a\u4ece\u5165\u95e8\u5230\u5b9e\u8df5\u300b\u3001\u300a\u6d41\u7545\u7684Python\u300b\u3001\u300aPython\u7f16\u7a0b\u5feb\u901f\u4e0a\u624b\u300b\u7b49\uff0c\u53ef\u4ee5\u5e2e\u52a9\u4f60\u6df1\u5165\u5b66\u4e60\u548c\u638c\u63e1Python\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u5728\u7ebf\u8bfe\u7a0b<\/strong>\uff1a\u8bb8\u591a\u6559\u80b2\u5e73\u53f0\u5982Coursera\u3001edX\u3001Udacity\u7b49\u63d0\u4f9b\u9ad8\u8d28\u91cf\u7684Python\u5728\u7ebf\u8bfe\u7a0b\uff0c\u53ef\u4ee5\u5e2e\u52a9\u4f60\u7cfb\u7edf\u5730\u5b66\u4e60Python\u7f16\u7a0b\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<p><p><strong>\u4e5d\u3001\u603b\u7ed3<\/strong><\/p>\n<\/p>\n<p><p>\u4e0b\u8f7d\u5e76\u5b89\u88c5Python\u662f\u5b66\u4e60\u7f16\u7a0b\u7684\u91cd\u8981\u7b2c\u4e00\u6b65\u3002\u901a\u8fc7Google Chrome\u6d4f\u89c8\u5668\uff0c\u4f60\u53ef\u4ee5\u8f7b\u677e\u8bbf\u95eePython\u5b98\u7f51\uff0c\u4e0b\u8f7d\u5e76\u5b89\u88c5\u6700\u65b0\u7248\u672c\u7684Python\u3002\u914d\u7f6e\u597d\u5f00\u53d1\u73af\u5883\u540e\uff0c\u4f60\u53ef\u4ee5\u5f00\u59cb\u7f16\u5199\u548c\u8fd0\u884cPython\u4ee3\u7801\u3002\u540c\u65f6\uff0c\u5229\u7528\u4e30\u5bcc\u7684\u5728\u7ebf\u8d44\u6e90\u548c\u5b66\u4e60\u6750\u6599\uff0c\u4f60\u53ef\u4ee5\u4e0d\u65ad\u63d0\u5347\u4f60\u7684\u7f16\u7a0b\u6280\u80fd\uff0c\u6210\u4e3a\u4e00\u540d\u4f18\u79c0\u7684Python\u5f00\u53d1\u8005\u3002\u5e0c\u671b\u8fd9\u7bc7\u6587\u7ae0\u80fd\u591f\u5e2e\u52a9\u4f60\u987a\u5229\u4e0b\u8f7d\u5e76\u5b89\u88c5Python\uff0c\u5f00\u542f\u4f60\u7684\u7f16\u7a0b\u4e4b\u65c5\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u4e0b\u8f7dPython\u65f6\u63a8\u8350\u4f7f\u7528\u54ea\u4e9b\u6d4f\u89c8\u5668\uff1f<\/strong><br \/>\u5728\u4e0b\u8f7dPython\u65f6\uff0c\u4efb\u4f55\u4e3b\u6d41\u6d4f\u89c8\u5668\u90fd\u53ef\u4ee5\u987a\u5229\u5b8c\u6210\u4efb\u52a1\u3002\u5e38\u89c1\u7684\u9009\u62e9\u5305\u62ecGoogle Chrome\u3001Mozilla Firefox\u548cMicrosoft Edge\u3002\u8fd9\u4e9b\u6d4f\u89c8\u5668\u90fd\u63d0\u4f9b\u4e86\u826f\u597d\u7684\u7528\u6237\u4f53\u9a8c\u548c\u7a33\u5b9a\u7684\u4e0b\u8f7d\u529f\u80fd\uff0c\u786e\u4fdd\u4f60\u80fd\u591f\u8f7b\u677e\u83b7\u53d6Python\u7684\u5b89\u88c5\u5305\u3002<\/p>\n<p><strong>\u4e0b\u8f7dPython\u65f6\u9700\u8981\u6ce8\u610f\u4ec0\u4e48\uff1f<\/strong><br \/>\u5728\u4e0b\u8f7dPython\u524d\uff0c\u786e\u4fdd\u8bbf\u95ee\u5b98\u65b9\u7f51\u7ad9\uff08\u5982python.org\uff09\u4ee5\u907f\u514d\u5b89\u5168\u98ce\u9669\u3002\u5728\u4e0b\u8f7d\u9875\u9762\u4e2d\uff0c\u6839\u636e\u4f60\u7684\u64cd\u4f5c\u7cfb\u7edf\u9009\u62e9\u9002\u5408\u7684\u7248\u672c\uff08\u5982Windows\u3001macOS\u6216Linux\uff09\u3002\u6b64\u5916\uff0c\u5efa\u8bae\u9009\u62e9\u6700\u65b0\u7684\u7a33\u5b9a\u7248\u672c\uff0c\u4ee5\u83b7\u53d6\u6700\u65b0\u529f\u80fd\u548c\u5b89\u5168\u6027\u66f4\u65b0\u3002<\/p>\n<p><strong>\u4e0b\u8f7dPython\u540e\u5982\u4f55\u8fdb\u884c\u5b89\u88c5\uff1f<\/strong><br \/>\u4e0b\u8f7d\u5b8cPython\u5b89\u88c5\u5305\u540e\uff0c\u53cc\u51fb\u8fd0\u884c\u8be5\u6587\u4ef6\u3002\u5b89\u88c5\u8fc7\u7a0b\u4e2d\uff0c\u5efa\u8bae\u52fe\u9009\u201cAdd Python to PATH\u201d\u9009\u9879\uff0c\u4ee5\u4fbf\u5728\u547d\u4ee4\u884c\u4e2d\u76f4\u63a5\u4f7f\u7528Python\u3002\u6839\u636e\u63d0\u793a\u5b8c\u6210\u5b89\u88c5\uff0c\u5b89\u88c5\u540e\u53ef\u4ee5\u901a\u8fc7\u547d\u4ee4\u884c\u8f93\u5165<code>python --version<\/code>\u6765\u786e\u8ba4\u662f\u5426\u5b89\u88c5\u6210\u529f\u53ca\u67e5\u770b\u7248\u672c\u53f7\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u5982\u4f55\u4e0b\u8f7dPython\u7528\u4ec0\u4e48\u6d4f\u89c8\u5668\uff1f Python\u53ef\u4ee5\u901a\u8fc7\u4efb\u4f55\u73b0\u4ee3\u6d4f\u89c8\u5668\u4e0b\u8f7d\uff0c\u5982Google Chrome\u3001Mo [&hellip;]","protected":false},"author":3,"featured_media":1080269,"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\/1080262"}],"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=1080262"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1080262\/revisions"}],"predecessor-version":[{"id":1080271,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1080262\/revisions\/1080271"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/1080269"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=1080262"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=1080262"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=1080262"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}