{"id":969795,"date":"2024-12-27T05:20:12","date_gmt":"2024-12-26T21:20:12","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/969795.html"},"modified":"2024-12-27T05:20:14","modified_gmt":"2024-12-26T21:20:14","slug":"%e7%94%b5%e8%84%91%e4%b8%8a%e5%a6%82%e4%bd%95%e4%b8%8b%e8%bd%bdpython","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/969795.html","title":{"rendered":"\u7535\u8111\u4e0a\u5982\u4f55\u4e0b\u8f7dpython"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/24183910\/aaf89ba3-a6c5-46bf-a1ec-7a9305f5805b.webp\" alt=\"\u7535\u8111\u4e0a\u5982\u4f55\u4e0b\u8f7dpython\" \/><\/p>\n<p><p> <strong>\u5728\u7535\u8111\u4e0a\u4e0b\u8f7dPython\u7684\u6b65\u9aa4\u5305\u62ec\uff1a\u8bbf\u95eePython\u7684\u5b98\u65b9\u7f51\u7ad9\u3001\u9009\u62e9\u5408\u9002\u7684\u7248\u672c\u3001\u5b89\u88c5Python\u89e3\u91ca\u5668\u3001\u914d\u7f6e\u73af\u5883\u53d8\u91cf\u3002<\/strong> \u5176\u4e2d\uff0c\u8bbf\u95eePython\u5b98\u65b9\u7f51\u7ad9\u662f\u4e0b\u8f7d\u7684\u7b2c\u4e00\u6b65\uff0c\u7528\u6237\u53ef\u4ee5\u9009\u62e9\u6700\u65b0\u7684\u7a33\u5b9a\u7248\u672c\u4ee5\u786e\u4fdd\u83b7\u5f97\u6700\u4f73\u7684\u6027\u80fd\u548c\u5b89\u5168\u6027\u3002\u63a5\u4e0b\u6765\uff0c\u6211\u4eec\u5c06\u8be6\u7ec6\u4ecb\u7ecd\u6bcf\u4e2a\u6b65\u9aa4\u3002<\/p>\n<\/p>\n<p><p>\u4e00\u3001\u8bbf\u95eePython\u7684\u5b98\u65b9\u7f51\u7ad9<\/p>\n<\/p>\n<p><p>Python\u7684\u5b98\u65b9\u7f51\u7ad9\u662f\u4e0b\u8f7dPython\u8f6f\u4ef6\u7684\u9996\u9009\u5e73\u53f0\u3002\u7528\u6237\u53ef\u4ee5\u901a\u8fc7\u8bbf\u95ee<a href=\"https:\/\/www.python.org\">Python.org<\/a>\u6765\u83b7\u53d6\u6700\u65b0\u7684Python\u7248\u672c\u3002\u5b98\u65b9\u7f51\u7ad9\u4e0d\u4ec5\u63d0\u4f9b\u8f6f\u4ef6\u4e0b\u8f7d\u94fe\u63a5\uff0c\u8fd8\u63d0\u4f9b\u4e86\u4e30\u5bcc\u7684\u6587\u6863\u8d44\u6e90\u548c\u793e\u533a\u652f\u6301\u3002<\/p>\n<\/p>\n<p><p>\u9996\u5148\uff0c\u6253\u5f00\u6d4f\u89c8\u5668\u5e76\u8f93\u5165\u7f51\u5740 <a href=\"https:\/\/www.python.org%E3%80%82%E8%BF%9B%E5%85%A5%E7%BD%91%E7%AB%99%E5%90%8E%EF%BC%8C%E5%AF%BC%E8%88%AA%E8%87%B3%E2%80%9CDownloads%E2%80%9D%E9%A1%B5%E9%9D%A2%E3%80%82%E5%9C%A8%E8%BF%99%E4%B8%AA%E9%A1%B5%E9%9D%A2%E4%B8%AD%EF%BC%8C%E7%B3%BB%E7%BB%9F%E4%BC%9A%E8%87%AA%E5%8A%A8%E8%AF%86%E5%88%AB%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%84Python%E7%89%88%E6%9C%AC%E4%BE%9B%E4%B8%8B%E8%BD%BD%E3%80%82%E9%80%9A%E5%B8%B8%EF%BC%8C%E6%8E%A8%E8%8D%90%E7%9A%84%E7%89%88%E6%9C%AC%E6%98%AF%E5%BD%93%E5%89%8D%E7%9A%84%E7%A8%B3%E5%AE%9A%E7%89%88%E6%9C%AC%E3%80%82\">https:\/\/www.python.org\u3002\u8fdb\u5165\u7f51\u7ad9\u540e\uff0c\u5bfc\u822a\u81f3\u201cDownloads\u201d\u9875\u9762\u3002\u5728\u8fd9\u4e2a\u9875\u9762\u4e2d\uff0c\u7cfb\u7edf\u4f1a\u81ea\u52a8\u8bc6\u522b\u60a8\u7684\u64cd\u4f5c\u7cfb\u7edf\uff0c\u5e76\u63a8\u8350\u5408\u9002\u7684Python\u7248\u672c\u4f9b\u4e0b\u8f7d\u3002\u901a\u5e38\uff0c\u63a8\u8350\u7684\u7248\u672c\u662f\u5f53\u524d\u7684\u7a33\u5b9a\u7248\u672c\u3002<\/a><\/p>\n<\/p>\n<p><p>\u4e8c\u3001\u9009\u62e9\u5408\u9002\u7684Python\u7248\u672c<\/p>\n<\/p>\n<p><p>\u9009\u62e9\u5408\u9002\u7684Python\u7248\u672c\u662f\u975e\u5e38\u91cd\u8981\u7684\uff0c\u56e0\u4e3a\u4e0d\u540c\u7248\u672c\u4e4b\u95f4\u53ef\u80fd\u5b58\u5728\u517c\u5bb9\u6027\u95ee\u9898\u3002\u4e00\u822c\u6765\u8bf4\uff0cPython\u6709\u4e24\u4e2a\u4e3b\u8981\u7684\u7248\u672c\u7cfb\u5217\uff1aPython 2.x\u548cPython 3.x\u3002Python 2.x\u7cfb\u5217\u5df2\u7ecf\u505c\u6b62\u66f4\u65b0\uff0c\u5b98\u65b9\u5efa\u8bae\u4f7f\u7528Python 3.x\u7cfb\u5217\u3002<\/p>\n<\/p>\n<p><p>\u5728\u201cDownloads\u201d\u9875\u9762\u4e0b\uff0c\u60a8\u4f1a\u770b\u5230\u63a8\u8350\u7684\u7248\u672c\u548c\u5176\u4ed6\u53ef\u9009\u7684\u7248\u672c\u3002\u901a\u5e38\uff0c\u6211\u4eec\u5efa\u8bae\u4e0b\u8f7d\u6700\u65b0\u7684\u7a33\u5b9a\u7248\u672c\u4ee5\u83b7\u5f97\u6700\u4f73\u7684\u529f\u80fd\u548c\u5b89\u5168\u6027\u3002\u70b9\u51fb\u201cDownload\u201d\u6309\u94ae\u4ee5\u5f00\u59cb\u4e0b\u8f7d\u5b89\u88c5\u7a0b\u5e8f\u3002<\/p>\n<\/p>\n<p><p>\u4e09\u3001\u5b89\u88c5Python\u89e3\u91ca\u5668<\/p>\n<\/p>\n<p><p>\u4e0b\u8f7d\u5b8c\u6210\u540e\uff0c\u627e\u5230\u4e0b\u8f7d\u7684\u5b89\u88c5\u6587\u4ef6\u5e76\u53cc\u51fb\u6253\u5f00\u3002\u63a5\u4e0b\u6765\uff0c\u60a8\u5c06\u770b\u5230\u4e00\u4e2a\u5b89\u88c5\u5411\u5bfc\u754c\u9762\u3002\u5728\u5b89\u88c5\u8fc7\u7a0b\u4e2d\uff0c\u5efa\u8bae\u52fe\u9009\u201cAdd Python to PATH\u201d\u9009\u9879\uff0c\u8fd9\u5c06\u81ea\u52a8\u914d\u7f6e\u73af\u5883\u53d8\u91cf\uff0c\u4fbf\u4e8e\u5728\u547d\u4ee4\u884c\u4e2d\u76f4\u63a5\u4f7f\u7528Python\u3002<\/p>\n<\/p>\n<p><p>\u9009\u62e9\u201cCustomize installation\u201d\u53ef\u4ee5\u8ba9\u60a8\u6839\u636e\u9700\u8981\u9009\u62e9\u5b89\u88c5\u7ec4\u4ef6\uff0c\u4f8b\u5982pip\uff08Python\u5305\u7ba1\u7406\u5de5\u5177\uff09\u3001IDLE\uff08Python\u5f00\u53d1\u73af\u5883\uff09\u7b49\u3002\u5b8c\u6210\u9009\u62e9\u540e\uff0c\u70b9\u51fb\u201cInstall Now\u201d\u5f00\u59cb\u5b89\u88c5\u3002<\/p>\n<\/p>\n<p><p>\u5b89\u88c5\u8fc7\u7a0b\u53ef\u80fd\u9700\u8981\u51e0\u5206\u949f\uff0c\u5177\u4f53\u65f6\u95f4\u53d6\u51b3\u4e8e\u7cfb\u7edf\u6027\u80fd\u548c\u5b89\u88c5\u9009\u9879\u3002\u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u60a8\u5c06\u6536\u5230\u63d0\u793a\u4fe1\u606f\uff0c\u8868\u793aPython\u5df2\u7ecf\u6210\u529f\u5b89\u88c5\u3002<\/p>\n<\/p>\n<p><p>\u56db\u3001\u914d\u7f6e\u73af\u5883\u53d8\u91cf<\/p>\n<\/p>\n<p><p>\u867d\u7136\u5728\u5b89\u88c5\u8fc7\u7a0b\u4e2d\u53ef\u80fd\u5df2\u7ecf\u52fe\u9009\u4e86\u201cAdd Python to PATH\u201d\u9009\u9879\uff0c\u4f46\u6709\u65f6\u4ecd\u9700\u624b\u52a8\u914d\u7f6e\u73af\u5883\u53d8\u91cf\u4ee5\u786e\u4fddPython\u53ef\u4ee5\u5728\u547d\u4ee4\u884c\u4e2d\u6b63\u5e38\u8fd0\u884c\u3002<\/p>\n<\/p>\n<p><p>\u5728Windows\u7cfb\u7edf\u4e2d\uff0c\u53ef\u4ee5\u901a\u8fc7\u4ee5\u4e0b\u6b65\u9aa4\u914d\u7f6e\u73af\u5883\u53d8\u91cf\uff1a<\/p>\n<\/p>\n<ol>\n<li>\u53f3\u952e\u70b9\u51fb\u201c\u6b64\u7535\u8111\u201d\u6216\u201c\u6211\u7684\u7535\u8111\u201d\uff0c\u9009\u62e9\u201c\u5c5e\u6027\u201d\u3002<\/li>\n<li>\u5728\u5de6\u4fa7\u9009\u62e9\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\u7cfb\u7edf\u53d8\u91cf\u201d\u4e2d\u627e\u5230\u201cPath\u201d\u53d8\u91cf\uff0c\u9009\u4e2d\u540e\u70b9\u51fb\u201c\u7f16\u8f91\u201d\u3002<\/li>\n<li>\u70b9\u51fb\u201c\u65b0\u5efa\u201d\u6309\u94ae\uff0c\u5c06Python\u7684\u5b89\u88c5\u8def\u5f84\uff08\u4f8b\u5982<code>C:\\Python39<\/code>\uff09\u548cScripts\u76ee\u5f55\uff08\u4f8b\u5982<code>C:\\Python39\\Scripts<\/code>\uff09\u5206\u522b\u6dfb\u52a0\u5230\u5217\u8868\u4e2d\u3002<\/li>\n<li>\u70b9\u51fb\u201c\u786e\u5b9a\u201d\u4fdd\u5b58\u8bbe\u7f6e\u3002<\/li>\n<\/ol>\n<p><p>\u5b8c\u6210\u8fd9\u4e9b\u6b65\u9aa4\u540e\uff0c\u6253\u5f00\u547d\u4ee4\u884c\u7a97\u53e3\uff0c\u8f93\u5165<code>python --version<\/code>\u4ee5\u9a8c\u8bc1Python\u662f\u5426\u5b89\u88c5\u6210\u529f\u3002\u5982\u679c\u663e\u793aPython\u7684\u7248\u672c\u53f7\uff0c\u5219\u8868\u660e\u5b89\u88c5\u548c\u914d\u7f6e\u5df2\u6210\u529f\u3002<\/p>\n<\/p>\n<p><p>\u4e94\u3001\u9a8c\u8bc1\u5b89\u88c5\u5e76\u5b89\u88c5\u5e38\u7528\u5e93<\/p>\n<\/p>\n<p><p>\u5728\u5b8c\u6210Python\u7684\u5b89\u88c5\u548c\u73af\u5883\u53d8\u91cf\u914d\u7f6e\u540e\uff0c\u5efa\u8bae\u9a8c\u8bc1\u5b89\u88c5\u662f\u5426\u6210\u529f\uff0c\u5e76\u5b89\u88c5\u4e00\u4e9b\u5e38\u7528\u7684Python\u5e93\u4ee5\u65b9\u4fbf\u540e\u7eed\u5f00\u53d1\u3002<\/p>\n<\/p>\n<ol>\n<li>\u6253\u5f00\u547d\u4ee4\u63d0\u793a\u7b26\uff08Windows\uff09\u6216\u7ec8\u7aef\uff08macOS\/Linux\uff09\u3002<\/li>\n<li>\u8f93\u5165<code>python<\/code>\u6216<code>python3<\/code>\uff0c\u8fdb\u5165Python\u4ea4\u4e92\u73af\u5883\u3002\u60a8\u5c06\u770b\u5230Python\u7684\u7248\u672c\u4fe1\u606f\u548c\u4e00\u4e2a\u4ea4\u4e92\u5f0f\u63d0\u793a\u7b26\uff08&gt;&gt;&gt;\uff09\uff0c\u8fd9\u8868\u793aPython\u5df2\u6210\u529f\u5b89\u88c5\u3002<\/li>\n<li>\u4f7f\u7528<code>exit()<\/code>\u547d\u4ee4\u6216\u6309<code>Ctrl+Z<\/code>\uff08Windows\uff09\/<code>Ctrl+D<\/code>\uff08macOS\/Linux\uff09\u9000\u51fa\u4ea4\u4e92\u73af\u5883\u3002<\/li>\n<li>\u4f7f\u7528<code>pip<\/code>\u5b89\u88c5\u5e38\u7528\u5e93\u3002\u4f8b\u5982\uff0c\u8f93\u5165<code>pip install numpy<\/code>\u5b89\u88c5NumPy\u5e93\uff0c<code>pip install pandas<\/code>\u5b89\u88c5Pandas\u5e93\u3002\u901a\u8fc7\u8fd9\u4e9b\u5e93\uff0c\u60a8\u53ef\u4ee5\u5f00\u59cb\u8fdb\u884c\u79d1\u5b66\u8ba1\u7b97\u3001\u6570\u636e\u5206\u6790\u7b49\u5de5\u4f5c\u3002<\/li>\n<\/ol>\n<p><p>\u516d\u3001\u5b66\u4e60Python\u7f16\u7a0b<\/p>\n<\/p>\n<p><p>\u5b89\u88c5\u5b8cPython\u540e\uff0c\u60a8\u53ef\u4ee5\u901a\u8fc7\u591a\u79cd\u65b9\u5f0f\u5b66\u4e60Python\u7f16\u7a0b\u3002Python\u7684\u793e\u533a\u975e\u5e38\u6d3b\u8dc3\uff0c\u63d0\u4f9b\u4e86\u4e30\u5bcc\u7684\u5b66\u4e60\u8d44\u6e90\uff0c\u5305\u62ec\u6559\u7a0b\u3001\u4e66\u7c4d\u548c\u5728\u7ebf\u8bfe\u7a0b\u3002<\/p>\n<\/p>\n<ol>\n<li>\u5b98\u65b9\u6587\u6863\uff1a<a href=\"https:\/\/docs.python.org\/3\/\">Python\u6587\u6863<\/a>\u63d0\u4f9b\u4e86\u5168\u9762\u7684\u8bed\u8a00\u53c2\u8003\u548c\u5e93\u6587\u6863\uff0c\u662f\u5b66\u4e60Python\u7684\u6743\u5a01\u8d44\u6e90\u3002<\/li>\n<li>\u5728\u7ebf\u6559\u7a0b\uff1a\u8bb8\u591a\u7f51\u7ad9\u63d0\u4f9b\u514d\u8d39\u7684Python\u6559\u7a0b\uff0c\u4f8b\u5982Codecademy\u3001Coursera\u548cedX\u3002\u60a8\u53ef\u4ee5\u9009\u62e9\u9002\u5408\u81ea\u5df1\u7684\u8bfe\u7a0b\u8fdb\u884c\u5b66\u4e60\u3002<\/li>\n<li>\u4e66\u7c4d\uff1a\u5e02\u573a\u4e0a\u6709\u8bb8\u591a\u4f18\u79c0\u7684Python\u4e66\u7c4d\uff0c\u9002\u5408\u4e0d\u540c\u6c34\u5e73\u7684\u8bfb\u8005\u3002\u4f8b\u5982\uff0c\u300aPython\u7f16\u7a0b\uff1a\u4ece\u5165\u95e8\u5230\u5b9e\u8df5\u300b\u548c\u300a\u6d41\u7545\u7684Python\u300b\u90fd\u662f\u5f88\u53d7\u6b22\u8fce\u7684\u4e66\u7c4d\u3002<\/li>\n<li>\u793e\u533a\u652f\u6301\uff1a\u52a0\u5165Python\u793e\u533a\uff08\u5982Python\u8bba\u575b\u3001Reddit\u7684Python\u677f\u5757\uff09\u53ef\u4ee5\u4e0e\u5176\u4ed6\u5f00\u53d1\u8005\u4ea4\u6d41\uff0c\u83b7\u53d6\u5e2e\u52a9\u548c\u5efa\u8bae\u3002<\/li>\n<\/ol>\n<p><p>\u4e03\u3001\u5f00\u53d1\u73af\u5883\u7684\u9009\u62e9<\/p>\n<\/p>\n<p><p>Python\u7684\u5f00\u53d1\u73af\u5883\u591a\u79cd\u591a\u6837\uff0c\u60a8\u53ef\u4ee5\u6839\u636e\u81ea\u5df1\u7684\u9700\u6c42\u9009\u62e9\u5408\u9002\u7684\u5f00\u53d1\u5de5\u5177\u3002\u4ee5\u4e0b\u662f\u51e0\u79cd\u5e38\u89c1\u7684\u5f00\u53d1\u73af\u5883\uff1a<\/p>\n<\/p>\n<ol>\n<li>IDLE\uff1aPython\u81ea\u5e26\u7684\u7b80\u5355\u96c6\u6210\u5f00\u53d1\u73af\u5883\uff0c\u9002\u5408\u521d\u5b66\u8005\u3002<\/li>\n<li>PyCharm\uff1a\u529f\u80fd\u5f3a\u5927\u7684Python IDE\uff0c\u652f\u6301\u591a\u79cd\u63d2\u4ef6\u548c\u8c03\u8bd5\u529f\u80fd\u3002<\/li>\n<li>Visual Studio Code\uff1a\u8f7b\u91cf\u7ea7\u7684\u4ee3\u7801\u7f16\u8f91\u5668\uff0c\u652f\u6301Python\u6269\u5c55\uff0c\u5e7f\u53d7\u5f00\u53d1\u8005\u6b22\u8fce\u3002<\/li>\n<li>Jupyter Notebook\uff1a\u9002\u5408\u6570\u636e\u5206\u6790\u548c<a href=\"https:\/\/docs.pingcode.com\/ask\/59192.html\" target=\"_blank\">\u673a\u5668\u5b66\u4e60<\/a>\uff0c\u652f\u6301\u4ea4\u4e92\u5f0f\u7f16\u7a0b\u548c\u53ef\u89c6\u5316\u3002<\/li>\n<\/ol>\n<p><p>\u9009\u62e9\u9002\u5408\u81ea\u5df1\u7684\u5f00\u53d1\u73af\u5883\u53ef\u4ee5\u63d0\u9ad8\u7f16\u7a0b\u6548\u7387\uff0c\u589e\u5f3a\u5f00\u53d1\u4f53\u9a8c\u3002<\/p>\n<\/p>\n<p><p>\u901a\u8fc7\u4ee5\u4e0a\u6b65\u9aa4\uff0c\u60a8\u53ef\u4ee5\u5728\u7535\u8111\u4e0a\u6210\u529f\u4e0b\u8f7d\u5e76\u5b89\u88c5Python\uff0c\u5f00\u59cb\u60a8\u7684\u7f16\u7a0b\u4e4b\u65c5\u3002Python\u7684\u7b80\u5355\u8bed\u6cd5\u548c\u5f3a\u5927\u529f\u80fd\u4f7f\u5176\u6210\u4e3a\u521d\u5b66\u8005\u548c\u4e13\u4e1a\u5f00\u53d1\u8005\u7684\u7406\u60f3\u9009\u62e9\u3002\u65e0\u8bba\u60a8\u662f\u8fdb\u884c\u6570\u636e\u5206\u6790\u3001\u7f51\u7edc\u5f00\u53d1\u8fd8\u662f<a href=\"https:\/\/docs.pingcode.com\/tag\/AI\" target=\"_blank\">\u4eba\u5de5\u667a\u80fd<\/a>\u7814\u7a76\uff0cPython\u90fd\u80fd\u4e3a\u60a8\u63d0\u4f9b\u5f3a\u6709\u529b\u7684\u652f\u6301\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u9009\u62e9\u5408\u9002\u7684Python\u7248\u672c\u8fdb\u884c\u4e0b\u8f7d\uff1f<\/strong><br \/>\u5728\u9009\u62e9Python\u7248\u672c\u65f6\uff0c\u5efa\u8bae\u6839\u636e\u4f60\u7684\u64cd\u4f5c\u7cfb\u7edf\u548c\u9879\u76ee\u9700\u6c42\u8fdb\u884c\u9009\u62e9\u3002\u5982\u679c\u4f60\u662f\u521d\u5b66\u8005\uff0c\u901a\u5e38\u4e0b\u8f7d\u6700\u65b0\u7684\u7a33\u5b9a\u7248\u672c\uff08\u5982Python 3.x\uff09\u662f\u4e2a\u4e0d\u9519\u7684\u9009\u62e9\u3002\u68c0\u67e5\u4f60\u7684\u7cfb\u7edf\u662f32\u4f4d\u8fd8\u662f64\u4f4d\uff0c\u5e76\u4e0b\u8f7d\u5bf9\u5e94\u7684\u5b89\u88c5\u5305\u3002\u6b64\u5916\uff0c\u67d0\u4e9b\u7279\u5b9a\u7684\u5e93\u6216\u6846\u67b6\u53ef\u80fd\u9700\u8981\u7279\u5b9a\u7248\u672c\u7684Python\uff0c\u56e0\u6b64\u5728\u4e0b\u8f7d\u524d\u6700\u597d\u67e5\u770b\u76f8\u5173\u6587\u6863\u3002<\/p>\n<p><strong>\u5728\u5b89\u88c5Python\u65f6\u9700\u8981\u6ce8\u610f\u54ea\u4e9b\u4e8b\u9879\uff1f<\/strong><br \/>\u5728\u5b89\u88c5Python\u65f6\uff0c\u786e\u4fdd\u5728\u5b89\u88c5\u8fc7\u7a0b\u4e2d\u52fe\u9009\u201cAdd Python to PATH\u201d\u7684\u9009\u9879\uff0c\u8fd9\u6837\u53ef\u4ee5\u5728\u547d\u4ee4\u884c\u4e2d\u76f4\u63a5\u4f7f\u7528Python\u547d\u4ee4\u3002\u6b64\u5916\uff0c\u5efa\u8bae\u9009\u62e9\u201cCustomize installation\u201d\u9009\u9879\uff0c\u4ee5\u4fbf\u9009\u62e9\u662f\u5426\u5b89\u88c5pip\uff08Python\u5305\u7ba1\u7406\u5de5\u5177\uff09\u548c\u5176\u4ed6\u9644\u52a0\u529f\u80fd\u3002\u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u53ef\u4ee5\u5728\u547d\u4ee4\u884c\u4e2d\u8f93\u5165<code>python --version<\/code>\u6765\u9a8c\u8bc1\u5b89\u88c5\u662f\u5426\u6210\u529f\u3002<\/p>\n<p><strong>\u5982\u4f55\u5728\u5b89\u88c5\u540e\u9a8c\u8bc1Python\u662f\u5426\u6b63\u5e38\u5de5\u4f5c\uff1f<\/strong><br \/>\u5b89\u88c5\u5b8cPython\u540e\uff0c\u53ef\u4ee5\u901a\u8fc7\u6253\u5f00\u547d\u4ee4\u884c\u7ec8\u7aef\u5e76\u8f93\u5165<code>python<\/code>\u6765\u542f\u52a8Python\u89e3\u91ca\u5668\u3002\u5982\u679c\u770b\u5230Python\u7684\u7248\u672c\u4fe1\u606f\u548c\u63d0\u793a\u7b26\uff08\u901a\u5e38\u662f<code>&gt;&gt;&gt;<\/code>\uff09\uff0c\u8bf4\u660e\u5b89\u88c5\u6210\u529f\u3002\u4f60\u8fd8\u53ef\u4ee5\u5c1d\u8bd5\u8fd0\u884c\u4e00\u4e2a\u7b80\u5355\u7684Python\u4ee3\u7801\uff0c\u6bd4\u5982<code>print(&quot;Hello, World!&quot;)<\/code>\uff0c\u4ee5\u786e\u8ba4Python\u73af\u5883\u662f\u5426\u6b63\u5e38\u5de5\u4f5c\u3002\u82e5\u8fd0\u884c\u987a\u5229\uff0c\u5219\u8868\u793aPython\u5b89\u88c5\u548c\u914d\u7f6e\u5df2\u6210\u529f\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u5728\u7535\u8111\u4e0a\u4e0b\u8f7dPython\u7684\u6b65\u9aa4\u5305\u62ec\uff1a\u8bbf\u95eePython\u7684\u5b98\u65b9\u7f51\u7ad9\u3001\u9009\u62e9\u5408\u9002\u7684\u7248\u672c\u3001\u5b89\u88c5Python\u89e3\u91ca\u5668\u3001\u914d\u7f6e\u73af [&hellip;]","protected":false},"author":3,"featured_media":969800,"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\/969795"}],"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=969795"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/969795\/revisions"}],"predecessor-version":[{"id":969801,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/969795\/revisions\/969801"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/969800"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=969795"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=969795"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=969795"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}