{"id":971234,"date":"2024-12-27T05:33:09","date_gmt":"2024-12-26T21:33:09","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/971234.html"},"modified":"2024-12-27T05:33:11","modified_gmt":"2024-12-26T21:33:11","slug":"python%e5%a6%82%e4%bd%95%e5%ae%89%e8%a3%85%e5%b9%b6%e8%bf%90%e8%a1%8c","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/971234.html","title":{"rendered":"python\u5982\u4f55\u5b89\u88c5\u5e76\u8fd0\u884c"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/24194147\/f7a48048-2526-4f03-88a4-02cb08c71bf0.webp\" alt=\"python\u5982\u4f55\u5b89\u88c5\u5e76\u8fd0\u884c\" \/><\/p>\n<p><p> <strong>\u5b89\u88c5\u548c\u8fd0\u884cPython\u7684\u65b9\u6cd5\u5305\u62ec\uff1a\u4e0b\u8f7d\u5b98\u65b9\u5b89\u88c5\u5305\u3001\u4f7f\u7528\u5305\u7ba1\u7406\u5de5\u5177\u3001\u914d\u7f6e\u73af\u5883\u53d8\u91cf\u3002\u5728Windows\u4e0a\uff0c\u5efa\u8bae\u901a\u8fc7Python\u5b98\u7f51\u4e0b\u8f7d\u5b89\u88c5\u5305\uff0c\u5b89\u88c5\u540e\u81ea\u52a8\u914d\u7f6e\u73af\u5883\u53d8\u91cf\uff1b\u5728macOS\u548cLinux\u4e0a\uff0c\u901a\u5e38\u53ef\u4ee5\u4f7f\u7528\u5305\u7ba1\u7406\u5de5\u5177\uff0c\u5982Homebrew\u6216apt-get\uff0c\u8fdb\u884c\u5b89\u88c5\u3002\u5b89\u88c5\u540e\uff0c\u901a\u8fc7\u547d\u4ee4\u884c\u8f93\u5165<code>python<\/code>\u5373\u53ef\u8fd0\u884cPython\u89e3\u91ca\u5668\u3002<\/strong>  <\/p>\n<\/p>\n<p><p>Python\u662f\u4e00\u79cd\u975e\u5e38\u6d41\u884c\u7684\u7f16\u7a0b\u8bed\u8a00\uff0c\u56e0\u5176\u7b80\u5355\u6613\u5b66\u3001\u529f\u80fd\u5f3a\u5927\u800c\u53d7\u5230\u5e7f\u6cdb\u6b22\u8fce\u3002\u65e0\u8bba\u662f\u5728Windows\u3001macOS\u8fd8\u662fLinux\u7cfb\u7edf\u4e0a\uff0c\u5b89\u88c5\u548c\u8fd0\u884cPython\u90fd\u662f\u4e00\u4e2a\u76f8\u5bf9\u7b80\u5355\u7684\u8fc7\u7a0b\u3002\u4ee5\u4e0b\u5c06\u8be6\u7ec6\u4ecb\u7ecd\u5982\u4f55\u5728\u4e0d\u540c\u64cd\u4f5c\u7cfb\u7edf\u4e0a\u5b89\u88c5Python\uff0c\u5e76\u63d0\u4f9b\u4e00\u4e9b\u6280\u5de7\u4ee5\u786e\u4fdd\u5b89\u88c5\u8fc7\u7a0b\u987a\u5229\u8fdb\u884c\u3002<\/p>\n<\/p>\n<p><p>\u4e00\u3001\u5728WINDOWS\u4e0a\u5b89\u88c5\u548c\u8fd0\u884cPYTHON<\/p>\n<\/p>\n<ol>\n<li>\u4e0b\u8f7dPython\u5b89\u88c5\u5305<\/li>\n<\/ol>\n<p><p>\u8981\u5728Windows\u4e0a\u5b89\u88c5Python\uff0c\u9996\u5148\u9700\u8981\u4ecePython\u7684\u5b98\u65b9\u7f51\u7ad9\uff08<a href=\"https:\/\/www.python.org\/%EF%BC%89%E4%B8%8B%E8%BD%BD%E6%9C%80%E6%96%B0%E7%89%88%E6%9C%AC%E7%9A%84%E5%AE%89%E8%A3%85%E5%8C%85%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%E5%88%B0%E4%B8%8B%E8%BD%BD%E9%A1%B5%E9%9D%A2%EF%BC%8C%E9%80%89%E6%8B%A9%E9%80%82%E5%90%88%E6%82%A8%E7%9A%84Windows%E7%B3%BB%E7%BB%9F%E6%9E%B6%E6%9E%84%E7%9A%84%E5%AE%89%E8%A3%85%E5%8C%85%EF%BC%8832%E4%BD%8D%E6%88%9664%E4%BD%8D%EF%BC%89%E3%80%82\">https:\/\/www.python.org\/\uff09\u4e0b\u8f7d\u6700\u65b0\u7248\u672c\u7684\u5b89\u88c5\u5305\u3002\u8fdb\u5165\u7f51\u7ad9\u540e\uff0c\u5bfc\u822a\u5230\u4e0b\u8f7d\u9875\u9762\uff0c\u9009\u62e9\u9002\u5408\u60a8\u7684Windows\u7cfb\u7edf\u67b6\u6784\u7684\u5b89\u88c5\u5305\uff0832\u4f4d\u621664\u4f4d\uff09\u3002<\/a><\/p>\n<\/p>\n<ol start=\"2\">\n<li>\u5b89\u88c5Python<\/li>\n<\/ol>\n<p><p>\u4e0b\u8f7d\u5b8c\u6210\u540e\uff0c\u53cc\u51fb\u8fd0\u884c\u5b89\u88c5\u5305\u3002\u5728\u5b89\u88c5\u5411\u5bfc\u4e2d\uff0c\u6709\u4e00\u4e2a\u975e\u5e38\u91cd\u8981\u7684\u9009\u9879\u662f\u201cAdd Python to PATH\u201d\uff0c\u52a1\u5fc5\u52fe\u9009\u8be5\u9009\u9879\uff0c\u8fd9\u5c06\u81ea\u52a8\u914d\u7f6e\u73af\u5883\u53d8\u91cf\uff0c\u4f7f\u5f97\u5728\u547d\u4ee4\u884c\u4e2d\u53ef\u4ee5\u76f4\u63a5\u8fd0\u884cPython\u3002<\/p>\n<\/p>\n<ol start=\"3\">\n<li>\u9a8c\u8bc1\u5b89\u88c5<\/li>\n<\/ol>\n<p><p>\u5b8c\u6210\u5b89\u88c5\u540e\uff0c\u6253\u5f00\u547d\u4ee4\u63d0\u793a\u7b26\uff08Cmd\uff09\uff0c\u8f93\u5165<code>python --version<\/code>\u3002\u5982\u679c\u663e\u793a\u51faPython\u7684\u7248\u672c\u4fe1\u606f\uff0c\u5219\u8bf4\u660ePython\u5b89\u88c5\u6210\u529f\u5e76\u4e14\u73af\u5883\u53d8\u91cf\u914d\u7f6e\u6b63\u786e\u3002<\/p>\n<\/p>\n<ol start=\"4\">\n<li>\u8fd0\u884cPython<\/li>\n<\/ol>\n<p><p>\u5728\u547d\u4ee4\u63d0\u793a\u7b26\u4e2d\u8f93\u5165<code>python<\/code>\uff0c\u8fdb\u5165Python\u4ea4\u4e92\u5f0f\u89e3\u91ca\u5668\u6a21\u5f0f\u3002\u5728\u8fd9\u91cc\uff0c\u60a8\u53ef\u4ee5\u8f93\u5165Python\u4ee3\u7801\u5e76\u7acb\u5373\u67e5\u770b\u7ed3\u679c\u3002\u8981\u9000\u51fa\u89e3\u91ca\u5668\uff0c\u53ef\u4ee5\u8f93\u5165<code>exit()<\/code>\u6216\u6309<code>Ctrl + Z<\/code>\u5e76\u56de\u8f66\u3002<\/p>\n<\/p>\n<p><p>\u4e8c\u3001\u5728MACOS\u4e0a\u5b89\u88c5\u548c\u8fd0\u884cPYTHON<\/p>\n<\/p>\n<ol>\n<li>\u4f7f\u7528Homebrew\u5b89\u88c5Python<\/li>\n<\/ol>\n<p><p>macOS\u7cfb\u7edf\u81ea\u5e26Python 2.x\u7248\u672c\uff0c\u4f46\u901a\u5e38\u5efa\u8bae\u5b89\u88c5\u6700\u65b0\u7684Python 3.x\u7248\u672c\u3002\u4f7f\u7528Homebrew\u662f\u4e00\u79cd\u975e\u5e38\u65b9\u4fbf\u7684\u65b9\u6cd5\u3002\u9996\u5148\uff0c\u786e\u4fddHomebrew\u5df2\u5b89\u88c5\uff0c\u7136\u540e\u5728\u7ec8\u7aef\u4e2d\u8fd0\u884c\u4ee5\u4e0b\u547d\u4ee4\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">brew install python<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u5c06\u81ea\u52a8\u4e0b\u8f7d\u5e76\u5b89\u88c5Python 3\uff0c\u540c\u65f6\u5b89\u88c5<code>pip<\/code>\uff0cPython\u7684\u5305\u7ba1\u7406\u5de5\u5177\u3002<\/p>\n<\/p>\n<ol start=\"2\">\n<li>\u9a8c\u8bc1\u5b89\u88c5<\/li>\n<\/ol>\n<p><p>\u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u53ef\u4ee5\u5728\u7ec8\u7aef\u4e2d\u8f93\u5165<code>python3 --version<\/code>\u6765\u9a8c\u8bc1\u5b89\u88c5\u3002\u5982\u679c\u663e\u793a\u51faPython 3\u7684\u7248\u672c\u4fe1\u606f\uff0c\u5219\u8bf4\u660e\u5b89\u88c5\u6210\u529f\u3002<\/p>\n<\/p>\n<ol start=\"3\">\n<li>\u8fd0\u884cPython<\/li>\n<\/ol>\n<p><p>\u5728\u7ec8\u7aef\u4e2d\u8f93\u5165<code>python3<\/code>\uff0c\u5373\u53ef\u8fdb\u5165Python\u4ea4\u4e92\u5f0f\u89e3\u91ca\u5668\u6a21\u5f0f\u3002\u8981\u9000\u51fa\u89e3\u91ca\u5668\uff0c\u53ef\u4ee5\u8f93\u5165<code>exit()<\/code>\u6216\u6309<code>Ctrl + D<\/code>\u3002<\/p>\n<\/p>\n<p><p>\u4e09\u3001\u5728LINUX\u4e0a\u5b89\u88c5\u548c\u8fd0\u884cPYTHON<\/p>\n<\/p>\n<ol>\n<li>\u4f7f\u7528\u5305\u7ba1\u7406\u5de5\u5177\u5b89\u88c5Python<\/li>\n<\/ol>\n<p><p>\u5927\u591a\u6570Linux\u53d1\u884c\u7248\u90fd\u9884\u88c5\u4e86Python\uff0c\u4f46\u7248\u672c\u53ef\u80fd\u4e0d\u662f\u6700\u65b0\u7684\u3002\u53ef\u4ee5\u4f7f\u7528Linux\u7684\u5305\u7ba1\u7406\u5de5\u5177\uff0c\u5982<code>apt-get<\/code>\u6216<code>yum<\/code>\uff0c\u6765\u5b89\u88c5\u6216\u5347\u7ea7Python\u3002<\/p>\n<\/p>\n<p><p>\u5bf9\u4e8eDebian\u6216Ubuntu\u7cfb\u7edf\uff0c\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">sudo apt-get update<\/p>\n<p>sudo apt-get install python3<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5bf9\u4e8eRed Hat\u6216CentOS\u7cfb\u7edf\uff0c\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">sudo yum install python3<\/p>\n<p><\/code><\/pre>\n<\/p>\n<ol start=\"2\">\n<li>\u9a8c\u8bc1\u5b89\u88c5<\/li>\n<\/ol>\n<p><p>\u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u5728\u7ec8\u7aef\u4e2d\u8f93\u5165<code>python3 --version<\/code>\uff0c\u4ee5\u786e\u8ba4Python\u5df2\u6b63\u786e\u5b89\u88c5\u3002<\/p>\n<\/p>\n<ol start=\"3\">\n<li>\u8fd0\u884cPython<\/li>\n<\/ol>\n<p><p>\u5728\u7ec8\u7aef\u4e2d\u8f93\u5165<code>python3<\/code>\uff0c\u5373\u53ef\u8fdb\u5165Python\u4ea4\u4e92\u5f0f\u89e3\u91ca\u5668\u6a21\u5f0f\u3002\u8981\u9000\u51fa\u89e3\u91ca\u5668\uff0c\u53ef\u4ee5\u8f93\u5165<code>exit()<\/code>\u6216\u6309<code>Ctrl + D<\/code>\u3002<\/p>\n<\/p>\n<p><p>\u56db\u3001\u914d\u7f6e\u73af\u5883\u548c\u5b89\u88c5\u5305<\/p>\n<\/p>\n<ol>\n<li>\u914d\u7f6e\u73af\u5883\u53d8\u91cf<\/li>\n<\/ol>\n<p><p>\u5728Windows\u4e0a\uff0c\u5982\u679c\u5728\u5b89\u88c5\u8fc7\u7a0b\u4e2d\u672a\u52fe\u9009\u201cAdd Python to PATH\u201d\uff0c\u9700\u8981\u624b\u52a8\u914d\u7f6e\u73af\u5883\u53d8\u91cf\u3002\u8fdb\u5165\u201c\u7cfb\u7edf\u5c5e\u6027\u201d&gt;\u201c\u9ad8\u7ea7\u201d&gt;\u201c\u73af\u5883\u53d8\u91cf\u201d\uff0c\u5728\u201c\u7cfb\u7edf\u53d8\u91cf\u201d\u4e2d\u627e\u5230\u201cPath\u201d\uff0c\u7f16\u8f91\u5e76\u6dfb\u52a0Python\u7684\u5b89\u88c5\u8def\u5f84\u3002<\/p>\n<\/p>\n<ol start=\"2\">\n<li>\u4f7f\u7528pip\u5b89\u88c5Python\u5305<\/li>\n<\/ol>\n<p><p>Python\u62e5\u6709\u5f3a\u5927\u7684\u5305\u7ba1\u7406\u5de5\u5177pip\uff0c\u7528\u4e8e\u5b89\u88c5\u548c\u7ba1\u7406Python\u5305\u3002\u5728\u547d\u4ee4\u884c\u4e2d\uff0c\u8f93\u5165\u4ee5\u4e0b\u547d\u4ee4\u53ef\u4ee5\u5b89\u88c5\u4e00\u4e2a\u5305\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">pip install \u5305\u540d<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u4f8b\u5982\uff0c\u5b89\u88c5requests\u5305\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">pip install requests<\/p>\n<p><\/code><\/pre>\n<\/p>\n<ol start=\"3\">\n<li>\u521b\u5efa\u548c\u7ba1\u7406\u865a\u62df\u73af\u5883<\/li>\n<\/ol>\n<p><p>\u4e3a\u4e0d\u540c\u7684\u9879\u76ee\u521b\u5efa\u865a\u62df\u73af\u5883\u53ef\u4ee5\u907f\u514d\u5305\u7248\u672c\u51b2\u7a81\u3002\u5728\u547d\u4ee4\u884c\u4e2d\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u521b\u5efa\u865a\u62df\u73af\u5883\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">python -m venv myenv<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u6fc0\u6d3b\u865a\u62df\u73af\u5883\uff1a<\/p>\n<\/p>\n<ul>\n<li>Windows: <code>myenv\\Scripts\\activate<\/code><\/li>\n<li>macOS\u548cLinux: <code>source myenv\/bin\/activate<\/code><\/li>\n<\/ul>\n<p><p>\u5728\u6fc0\u6d3b\u7684\u865a\u62df\u73af\u5883\u4e2d\uff0c\u5b89\u88c5\u7684\u5305\u4e0d\u4f1a\u5f71\u54cd\u5168\u5c40\u73af\u5883\u3002\u8981\u9000\u51fa\u865a\u62df\u73af\u5883\uff0c\u8f93\u5165<code>deactivate<\/code>\u3002<\/p>\n<\/p>\n<p><p>\u4e94\u3001\u5e38\u89c1\u95ee\u9898\u89e3\u51b3<\/p>\n<\/p>\n<ol>\n<li>\u591a\u7248\u672cPython\u7684\u7ba1\u7406<\/li>\n<\/ol>\n<p><p>\u5728\u67d0\u4e9b\u7cfb\u7edf\u4e0a\uff0c\u53ef\u80fd\u540c\u65f6\u5b58\u5728\u591a\u4e2a\u7248\u672c\u7684Python\u3002\u4f7f\u7528<code>python3<\/code>\u547d\u4ee4\u53ef\u4ee5\u786e\u4fdd\u8fd0\u884c\u7684\u662fPython 3\u3002\u5982\u679c\u9700\u8981\u5207\u6362\u7248\u672c\uff0c\u53ef\u4ee5\u4f7f\u7528\u7248\u672c\u7ba1\u7406\u5de5\u5177\u5982<code>pyenv<\/code>\u3002<\/p>\n<\/p>\n<ol start=\"2\">\n<li>\u7f51\u7edc\u95ee\u9898\u5bfc\u81f4pip\u5b89\u88c5\u5931\u8d25<\/li>\n<\/ol>\n<p><p>\u5982\u679c\u5728\u4f7f\u7528pip\u5b89\u88c5\u5305\u65f6\u9047\u5230\u7f51\u7edc\u95ee\u9898\uff0c\u53ef\u4ee5\u5c1d\u8bd5\u4f7f\u7528\u56fd\u5185\u7684\u955c\u50cf\u6e90\uff0c\u5982\u963f\u91cc\u4e91\u6216\u6e05\u534e\u5927\u5b66\u63d0\u4f9b\u7684\u955c\u50cf\u3002\u5728\u547d\u4ee4\u884c\u4e2d\u6dfb\u52a0<code>-i<\/code>\u9009\u9879\u6307\u5b9a\u955c\u50cf\u6e90\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">pip install \u5305\u540d -i https:\/\/pypi.tuna.tsinghua.edu.cn\/simple<\/p>\n<p><\/code><\/pre>\n<\/p>\n<ol start=\"3\">\n<li>\u6743\u9650\u95ee\u9898<\/li>\n<\/ol>\n<p><p>\u5728Linux\u6216macOS\u4e0a\uff0c\u5982\u679c\u9047\u5230\u6743\u9650\u95ee\u9898\uff0c\u53ef\u4ee5\u5728\u547d\u4ee4\u524d\u52a0\u4e0a<code>sudo<\/code>\uff0c\u4ee5\u7ba1\u7406\u5458\u6743\u9650\u6267\u884c\u547d\u4ee4\u3002\u4f46\u8981\u8c28\u614e\u4f7f\u7528\uff0c\u4ee5\u514d\u9020\u6210\u7cfb\u7edf\u5b89\u5168\u9690\u60a3\u3002<\/p>\n<\/p>\n<p><p>\u901a\u8fc7\u4ee5\u4e0a\u6b65\u9aa4\u548c\u5efa\u8bae\uff0c\u60a8\u5e94\u8be5\u80fd\u591f\u987a\u5229\u5730\u5728\u5404\u79cd\u64cd\u4f5c\u7cfb\u7edf\u4e0a\u5b89\u88c5\u5e76\u8fd0\u884cPython\u3002Python\u7684\u5b89\u88c5\u53ea\u662f\u5f00\u59cb\uff0c\u968f\u7740\u5bf9\u8bed\u8a00\u7684\u6df1\u5165\u5b66\u4e60\u548c\u7406\u89e3\uff0c\u60a8\u5c06\u80fd\u591f\u5229\u7528\u5176\u5f3a\u5927\u7684\u529f\u80fd\u8fdb\u884c\u5404\u79cd\u5e94\u7528\u5f00\u53d1\u3002Python\u7684\u793e\u533a\u8d44\u6e90\u4e30\u5bcc\uff0c\u9047\u5230\u95ee\u9898\u65f6\uff0c\u53ca\u65f6\u67e5\u9605\u5b98\u65b9\u6587\u6863\u6216\u793e\u533a\u8bba\u575b\uff0c\u4f1a\u5e2e\u52a9\u60a8\u5feb\u901f\u627e\u5230\u89e3\u51b3\u65b9\u6848\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\u5b89\u88c5Python\uff0c\u60a8\u53ef\u4ee5\u8bbf\u95eePython\u7684\u5b98\u65b9\u7f51\u7ad9\uff08python.org\uff09\u3002\u5728\u4e0b\u8f7d\u9875\u9762\uff0c\u9009\u62e9\u9002\u5408\u60a8\u64cd\u4f5c\u7cfb\u7edf\u7684\u7248\u672c\uff08Windows\u3001macOS\u6216Linux\uff09\u3002\u4e0b\u8f7d\u5b8c\u6210\u540e\uff0c\u8fd0\u884c\u5b89\u88c5\u7a0b\u5e8f\uff0c\u5e76\u786e\u4fdd\u5728\u5b89\u88c5\u8fc7\u7a0b\u4e2d\u52fe\u9009\u201cAdd Python to PATH\u201d\u9009\u9879\uff0c\u4ee5\u4fbf\u5728\u547d\u4ee4\u884c\u4e2d\u65b9\u4fbf\u5730\u8c03\u7528Python\u3002\u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u60a8\u53ef\u4ee5\u901a\u8fc7\u5728\u547d\u4ee4\u884c\u4e2d\u8f93\u5165<code>python --version<\/code>\u6765\u68c0\u67e5\u5b89\u88c5\u662f\u5426\u6210\u529f\u3002<\/p>\n<p><strong>\u6211\u53ef\u4ee5\u5728Python\u4e2d\u8fd0\u884c\u54ea\u4e9b\u7c7b\u578b\u7684\u7a0b\u5e8f\uff1f<\/strong><br \/>Python\u662f\u4e00\u79cd\u591a\u7528\u9014\u7f16\u7a0b\u8bed\u8a00\uff0c\u9002\u7528\u4e8e\u591a\u79cd\u7c7b\u578b\u7684\u9879\u76ee\u3002\u60a8\u53ef\u4ee5\u4f7f\u7528Python\u8fdb\u884c\u6570\u636e\u5206\u6790\u3001<a href=\"https:\/\/docs.pingcode.com\/tag\/AI\" target=\"_blank\">\u4eba\u5de5\u667a\u80fd<\/a>\u3001\u7f51\u7ad9\u5f00\u53d1\u3001\u81ea\u52a8\u5316\u811a\u672c\u7f16\u5199\u7b49\u3002Python\u7684\u4e30\u5bcc\u5e93\u548c\u6846\u67b6\uff0c\u5982NumPy\u3001Pandas\u3001Flask\u548cDjango\uff0c\u4f7f\u5f97\u5b83\u5728\u8fd9\u4e9b\u9886\u57df\u4e2d\u8868\u73b0\u51fa\u8272\u3002\u65e0\u8bba\u60a8\u662f\u521d\u5b66\u8005\u8fd8\u662f\u7ecf\u9a8c\u4e30\u5bcc\u7684\u5f00\u53d1\u4eba\u5458\uff0cPython\u90fd\u80fd\u6ee1\u8db3\u60a8\u7684\u9700\u6c42\u3002<\/p>\n<p><strong>\u5982\u4f55\u5728Python\u4e2d\u8fd0\u884c\u4e00\u4e2a\u7b80\u5355\u7684\u7a0b\u5e8f\uff1f<\/strong><br \/>\u5728\u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u60a8\u53ef\u4ee5\u4f7f\u7528IDLE\uff08Python\u81ea\u5e26\u7684\u96c6\u6210\u5f00\u53d1\u73af\u5883\uff09\u6216\u4efb\u4f55\u6587\u672c\u7f16\u8f91\u5668\u6765\u7f16\u5199Python\u7a0b\u5e8f\u3002\u521b\u5efa\u4e00\u4e2a\u65b0\u7684Python\u6587\u4ef6\uff0c\u8f93\u5165\u60a8\u7684\u4ee3\u7801\uff0c\u6bd4\u5982<code>print(&quot;Hello, World!&quot;)<\/code>\u3002\u4fdd\u5b58\u6587\u4ef6\u540e\uff0c\u60a8\u53ef\u4ee5\u901a\u8fc7\u547d\u4ee4\u884c\u8fdb\u5165\u6587\u4ef6\u6240\u5728\u7684\u76ee\u5f55\uff0c\u5e76\u4f7f\u7528\u547d\u4ee4<code>python \u6587\u4ef6\u540d.py<\/code>\u6765\u8fd0\u884c\u7a0b\u5e8f\u3002\u5728IDLE\u4e2d\uff0c\u60a8\u53ea\u9700\u70b9\u51fb\u201cRun\u201d\u83dc\u5355\u4e2d\u7684\u201cRun Module\u201d\uff0c\u5373\u53ef\u6267\u884c\u60a8\u7684\u4ee3\u7801\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u5b89\u88c5\u548c\u8fd0\u884cPython\u7684\u65b9\u6cd5\u5305\u62ec\uff1a\u4e0b\u8f7d\u5b98\u65b9\u5b89\u88c5\u5305\u3001\u4f7f\u7528\u5305\u7ba1\u7406\u5de5\u5177\u3001\u914d\u7f6e\u73af\u5883\u53d8\u91cf\u3002\u5728Windows\u4e0a\uff0c\u5efa\u8bae\u901a\u8fc7P [&hellip;]","protected":false},"author":3,"featured_media":971243,"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\/971234"}],"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=971234"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/971234\/revisions"}],"predecessor-version":[{"id":971244,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/971234\/revisions\/971244"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/971243"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=971234"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=971234"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=971234"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}