{"id":922867,"date":"2024-12-26T14:39:48","date_gmt":"2024-12-26T06:39:48","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/922867.html"},"modified":"2024-12-26T14:39:50","modified_gmt":"2024-12-26T06:39:50","slug":"%e5%a6%82%e4%bd%95%e5%9c%a8windows%e4%b8%8b%e5%bc%80%e5%8f%91python","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/922867.html","title":{"rendered":"\u5982\u4f55\u5728windows\u4e0b\u5f00\u53d1python"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/24211154\/2fcfb569-7f6f-4833-88f0-b1cb5962aea1.webp\" alt=\"\u5982\u4f55\u5728windows\u4e0b\u5f00\u53d1python\" \/><\/p>\n<p><p> <strong>\u5728Windows\u4e0b\u5f00\u53d1Python\u7684\u4e3b\u8981\u6b65\u9aa4\u5305\u62ec\uff1a\u5b89\u88c5Python\u73af\u5883\u3001\u4f7f\u7528\u5408\u9002\u7684\u96c6\u6210\u5f00\u53d1\u73af\u5883\uff08IDE\uff09\u3001\u914d\u7f6e\u73af\u5883\u53d8\u91cf\u3001\u5b89\u88c5\u5305\u7ba1\u7406\u5de5\u5177\u3001\u638c\u63e1\u57fa\u672c\u547d\u4ee4\u884c\u64cd\u4f5c\u3001\u7f16\u5199\u5e76\u8fd0\u884cPython\u4ee3\u7801\u3002<\/strong>\u5176\u4e2d\uff0c\u9009\u62e9\u4e00\u4e2a\u5408\u9002\u7684IDE\u53ef\u4ee5\u663e\u8457\u63d0\u9ad8\u5f00\u53d1\u6548\u7387\uff0c\u56e0\u4e3a\u5b83\u63d0\u4f9b\u4e86\u4ee3\u7801\u81ea\u52a8\u8865\u5168\u3001\u8c03\u8bd5\u548c\u7248\u672c\u63a7\u5236\u7b49\u529f\u80fd\u3002\u63a8\u8350\u4f7f\u7528\u7684IDE\u6709Visual Studio Code\u3001PyCharm\u7b49\u3002\u63a5\u4e0b\u6765\uff0c\u5c06\u8be6\u7ec6\u4ecb\u7ecd\u5982\u4f55\u5728Windows\u4e0b\u8fdb\u884cPython\u5f00\u53d1\u3002<\/p>\n<\/p>\n<p><p>\u4e00\u3001\u5b89\u88c5Python\u73af\u5883<\/p>\n<\/p>\n<p><p>\u8981\u5728Windows\u4e0a\u5f00\u53d1Python\uff0c\u9996\u5148\u9700\u8981\u5b89\u88c5Python\u89e3\u91ca\u5668\u3002Python\u5b98\u7f51\u63d0\u4f9b\u4e86Windows\u7248\u672c\u7684\u5b89\u88c5\u5305\u3002<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u4e0b\u8f7d\u548c\u5b89\u88c5Python<\/strong>  <\/p>\n<\/p>\n<ul>\n<li>\u8bbf\u95eePython\u5b98\u7f51\uff08<a href=\"https:\/\/www.python.org\/%EF%BC%89%EF%BC%8C%E4%B8%8B%E8%BD%BD%E6%9C%80%E6%96%B0%E7%89%88%E6%9C%AC%E7%9A%84Python%E5%AE%89%E8%A3%85%E5%8C%85%E3%80%82\">https:\/\/www.python.org\/\uff09\uff0c\u4e0b\u8f7d\u6700\u65b0\u7248\u672c\u7684Python\u5b89\u88c5\u5305\u3002<\/a><\/li>\n<li>\u5728\u5b89\u88c5\u8fc7\u7a0b\u4e2d\uff0c\u786e\u4fdd\u9009\u4e2d\u201cAdd Python to PATH\u201d\u9009\u9879\uff0c\u8fd9\u5c06\u81ea\u52a8\u914d\u7f6e\u73af\u5883\u53d8\u91cf\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\n<p><strong>\u9a8c\u8bc1\u5b89\u88c5<\/strong>  <\/p>\n<\/p>\n<ul>\n<li>\u6253\u5f00\u547d\u4ee4\u63d0\u793a\u7b26\uff08Cmd\uff09\uff0c\u8f93\u5165<code>python --version<\/code>\u6216<code>python<\/code>\uff0c\u5982\u679c\u663e\u793aPython\u7248\u672c\u4fe1\u606f\uff0c\u5219\u5b89\u88c5\u6210\u529f\u3002<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<p><p>\u4e8c\u3001\u914d\u7f6e\u73af\u5883\u53d8\u91cf<\/p>\n<\/p>\n<p><p>\u867d\u7136\u5728\u5b89\u88c5Python\u65f6\u53ef\u4ee5\u9009\u62e9\u81ea\u52a8\u914d\u7f6e\u73af\u5883\u53d8\u91cf\uff0c\u4f46\u6709\u65f6\u9700\u8981\u624b\u52a8\u914d\u7f6e\u4ee5\u786e\u4fdd\u5f00\u53d1\u73af\u5883\u7684\u6b63\u786e\u6027\u3002<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u68c0\u67e5\u73af\u5883\u53d8\u91cf<\/strong>  <\/p>\n<\/p>\n<ul>\n<li>\u5728\u201c\u7cfb\u7edf\u5c5e\u6027\u201d\u4e2d\uff0c\u627e\u5230\u201c\u9ad8\u7ea7\u7cfb\u7edf\u8bbe\u7f6e\u201d\uff0c\u70b9\u51fb\u201c\u73af\u5883\u53d8\u91cf\u201d\u3002<\/li>\n<li>\u786e\u8ba4\u201c\u7cfb\u7edf\u53d8\u91cf\u201d\u6216\u201c\u7528\u6237\u53d8\u91cf\u201d\u4e2d\u5305\u542bPython\u7684\u5b89\u88c5\u8def\u5f84\u548cScripts\u8def\u5f84\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\n<p><strong>\u624b\u52a8\u914d\u7f6e\u73af\u5883\u53d8\u91cf<\/strong>  <\/p>\n<\/p>\n<ul>\n<li>\u5982\u679c\u6ca1\u6709\u81ea\u52a8\u914d\u7f6e\uff0c\u53ef\u4ee5\u624b\u52a8\u6dfb\u52a0Python\u7684\u5b89\u88c5\u8def\u5f84\uff08\u5982C:\\Python39\\\u548cC:\\Python39\\Scripts\\\uff09\u5230\u7cfb\u7edf\u53d8\u91cf\u4e2d\u7684PATH\u4e2d\u3002<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<p><p>\u4e09\u3001\u9009\u62e9\u5408\u9002\u7684IDE<\/p>\n<\/p>\n<p><p>\u4f7f\u7528\u5408\u9002\u7684IDE\u80fd\u591f\u663e\u8457\u63d0\u5347\u5f00\u53d1\u6548\u7387\uff0c\u4ee5\u4e0b\u662f\u51e0\u79cd\u5e38\u7528\u7684Python\u5f00\u53d1\u73af\u5883\uff1a<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>Visual Studio Code (VS Code)<\/strong>  <\/p>\n<\/p>\n<ul>\n<li>\u4e00\u6b3e\u8f7b\u91cf\u7ea7\u4f46\u529f\u80fd\u5f3a\u5927\u7684\u7f16\u8f91\u5668\uff0c\u652f\u6301Python\u63d2\u4ef6\u3002\u63d0\u4f9b\u8bed\u6cd5\u9ad8\u4eae\u3001\u81ea\u52a8\u8865\u5168\u548c\u8c03\u8bd5\u529f\u80fd\u3002<\/li>\n<li>\u5b89\u88c5Python\u63d2\u4ef6\u540e\uff0c\u53ef\u4ee5\u901a\u8fc7<code>Ctrl+Shift+P<\/code>\u6253\u5f00\u547d\u4ee4\u9762\u677f\uff0c\u9009\u62e9\u201cPython: Select Interpreter\u201d\u6765\u9009\u62e9Python\u73af\u5883\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\n<p><strong>PyCharm<\/strong>  <\/p>\n<\/p>\n<ul>\n<li>\u4e00\u6b3e\u4e13\u4e1a\u7684Python IDE\uff0c\u63d0\u4f9b\u5f3a\u5927\u7684\u4ee3\u7801\u5206\u6790\u5de5\u5177\u3001\u8c03\u8bd5\u5668\u548c\u6d4b\u8bd5\u5de5\u5177\u3002\u9002\u5408\u5927\u578b\u9879\u76ee\u5f00\u53d1\u3002<\/li>\n<li>PyCharm\u5206\u4e3a\u793e\u533a\u7248\uff08\u514d\u8d39\uff09\u548c\u4e13\u4e1a\u7248\uff08\u4ed8\u8d39\uff09\uff0c\u793e\u533a\u7248\u5df2\u7ecf\u80fd\u591f\u6ee1\u8db3\u5927\u591a\u6570\u9700\u6c42\u3002<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<p><p>\u56db\u3001\u5b89\u88c5\u5305\u7ba1\u7406\u5de5\u5177<\/p>\n<\/p>\n<p><p>Python\u7684\u5305\u7ba1\u7406\u5de5\u5177pip\u53ef\u4ee5\u5e2e\u52a9\u5b89\u88c5\u548c\u7ba1\u7406Python\u5e93\u548c\u4f9d\u8d56\u3002<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u9a8c\u8bc1pip\u5b89\u88c5<\/strong>  <\/p>\n<\/p>\n<ul>\n<li>\u5728\u547d\u4ee4\u63d0\u793a\u7b26\u4e2d\uff0c\u8f93\u5165<code>pip --version<\/code>\uff0c\u68c0\u67e5pip\u662f\u5426\u5df2\u5b89\u88c5\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\n<p><strong>\u4f7f\u7528pip\u5b89\u88c5\u5e93<\/strong>  <\/p>\n<\/p>\n<ul>\n<li>\u901a\u8fc7<code>pip install package_name<\/code>\u547d\u4ee4\u5b89\u88c5\u6240\u9700\u7684Python\u5e93\u3002<\/li>\n<li>\u4f7f\u7528<code>pip list<\/code>\u67e5\u770b\u5df2\u5b89\u88c5\u7684\u5e93\uff0c<code>pip uninstall package_name<\/code>\u5378\u8f7d\u4e0d\u9700\u8981\u7684\u5e93\u3002<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<p><p>\u4e94\u3001\u638c\u63e1\u57fa\u672c\u547d\u4ee4\u884c\u64cd\u4f5c<\/p>\n<\/p>\n<p><p>\u5728Windows\u4e0b\u5f00\u53d1Python\u65f6\uff0c\u719f\u7ec3\u4f7f\u7528\u547d\u4ee4\u884c\u80fd\u591f\u63d0\u9ad8\u5f00\u53d1\u6548\u7387\u3002<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u57fa\u672c\u547d\u4ee4\u884c\u64cd\u4f5c<\/strong>  <\/p>\n<\/p>\n<ul>\n<li>\u4f7f\u7528<code>cd<\/code>\u547d\u4ee4\u5207\u6362\u76ee\u5f55\uff0c\u4f8b\u5982<code>cd C:\\path\\to\\project<\/code>\u3002<\/li>\n<li>\u4f7f\u7528<code>dir<\/code>\u547d\u4ee4\u5217\u51fa\u5f53\u524d\u76ee\u5f55\u4e0b\u7684\u6587\u4ef6\u548c\u6587\u4ef6\u5939\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\n<p><strong>\u8fd0\u884cPython\u811a\u672c<\/strong>  <\/p>\n<\/p>\n<ul>\n<li>\u5728\u547d\u4ee4\u63d0\u793a\u7b26\u4e2d\uff0c\u8f93\u5165<code>python script_name.py<\/code>\u8fd0\u884cPython\u811a\u672c\u3002<\/li>\n<li>\u901a\u8fc7<code>python -m module_name<\/code>\u8fd0\u884c\u6a21\u5757\u3002<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<p><p>\u516d\u3001\u7f16\u5199\u5e76\u8fd0\u884cPython\u4ee3\u7801<\/p>\n<\/p>\n<p><p>\u4e86\u89e3\u57fa\u7840\u5f00\u53d1\u6b65\u9aa4\u540e\uff0c\u53ef\u4ee5\u5f00\u59cb\u7f16\u5199\u5e76\u8fd0\u884cPython\u4ee3\u7801\u3002<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u7f16\u5199\u4ee3\u7801<\/strong>  <\/p>\n<\/p>\n<ul>\n<li>\u6253\u5f00IDE\uff0c\u65b0\u5efaPython\u6587\u4ef6\uff08.py\uff09\uff0c\u7f16\u5199\u4ee3\u7801\u3002<\/li>\n<li>\u4f7f\u7528IDE\u63d0\u4f9b\u7684\u529f\u80fd\uff0c\u5982\u4ee3\u7801\u8865\u5168\u3001\u8bed\u6cd5\u68c0\u67e5\uff0c\u63d0\u5347\u7f16\u5199\u6548\u7387\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\n<p><strong>\u8c03\u8bd5\u4ee3\u7801<\/strong>  <\/p>\n<\/p>\n<ul>\n<li>\u5728IDE\u4e2d\u8bbe\u7f6e\u65ad\u70b9\uff0c\u901a\u8fc7\u8c03\u8bd5\u5de5\u5177\u9010\u6b65\u6267\u884c\u4ee3\u7801\uff0c\u68c0\u67e5\u53d8\u91cf\u503c\u548c\u7a0b\u5e8f\u6d41\u7a0b\u3002<\/li>\n<li>\u4f7f\u7528Python\u5185\u7f6e\u7684\u8c03\u8bd5\u5668<code>pdb<\/code>\u8fdb\u884c\u547d\u4ee4\u884c\u8c03\u8bd5\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\n<p><strong>\u6d4b\u8bd5\u548c\u4f18\u5316<\/strong>  <\/p>\n<\/p>\n<ul>\n<li>\u7f16\u5199\u6d4b\u8bd5\u7528\u4f8b\uff0c\u4f7f\u7528<code>unittest<\/code>\u6216<code>pytest<\/code>\u6846\u67b6\u8fdb\u884c\u5355\u5143\u6d4b\u8bd5\u3002<\/li>\n<li>\u4f18\u5316\u4ee3\u7801\u6027\u80fd\uff0c\u4f7f\u7528<code>cProfile<\/code>\u6a21\u5757\u8fdb\u884c\u6027\u80fd\u5206\u6790\u3002<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<p><p>\u4e03\u3001\u7248\u672c\u63a7\u5236\u548c\u534f\u4f5c<\/p>\n<\/p>\n<p><p>\u5728\u56e2\u961f\u5f00\u53d1\u4e2d\uff0c\u7248\u672c\u63a7\u5236\u5de5\u5177\u5982Git\u662f\u5fc5\u4e0d\u53ef\u5c11\u7684\u3002<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u5b89\u88c5\u548c\u914d\u7f6eGit<\/strong>  <\/p>\n<\/p>\n<ul>\n<li>\u4e0b\u8f7d\u5e76\u5b89\u88c5Git for Windows\uff0c\u4eceGit\u5b98\u7f51\uff08<a href=\"https:\/\/git-scm.com\/%EF%BC%89%E8%8E%B7%E5%8F%96%E3%80%82\">https:\/\/git-scm.com\/\uff09\u83b7\u53d6\u3002<\/a><\/li>\n<li>\u914d\u7f6eGit\u7528\u6237\u540d\u548c\u90ae\u7bb1\uff1a<code>git config --global user.name &quot;Your Name&quot;<\/code>\uff0c<code>git config --global user.em<a href=\"https:\/\/docs.pingcode.com\/blog\/59162.html\" target=\"_blank\">AI<\/a>l &quot;youremail@example.com&quot;<\/code>\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\n<p><strong>\u4f7f\u7528Git\u8fdb\u884c\u7248\u672c\u63a7\u5236<\/strong>  <\/p>\n<\/p>\n<ul>\n<li>\u521d\u59cb\u5316Git\u4ed3\u5e93\uff1a<code>git init<\/code>\u3002<\/li>\n<li>\u6dfb\u52a0\u6587\u4ef6\u5230\u7248\u672c\u63a7\u5236\uff1a<code>git add .<\/code>\u3002<\/li>\n<li>\u63d0\u4ea4\u66f4\u6539\uff1a<code>git commit -m &quot;commit message&quot;<\/code>\u3002<\/li>\n<li>\u4f7f\u7528\u8fdc\u7a0b\u4ed3\u5e93\uff08\u5982GitHub\u3001GitLab\uff09\u8fdb\u884c\u534f\u4f5c\u5f00\u53d1\u3002<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<p><p>\u516b\u3001\u5b66\u4e60\u548c\u63d0\u9ad8<\/p>\n<\/p>\n<p><p>Python\u7684\u751f\u6001\u7cfb\u7edf\u5e9e\u5927\u4e14\u4e0d\u65ad\u53d1\u5c55\uff0c\u6301\u7eed\u5b66\u4e60\u662f\u63d0\u9ad8\u5f00\u53d1\u6280\u80fd\u7684\u5173\u952e\u3002<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u5b66\u4e60\u8d44\u6e90<\/strong>  <\/p>\n<\/p>\n<ul>\n<li>\u5728\u7ebf\u6559\u7a0b\u548c\u6587\u6863\uff0c\u5982Python\u5b98\u65b9\u6587\u6863\u3001Real Python\u3001Codecademy\u3002<\/li>\n<li>\u4e66\u7c4d\u63a8\u8350\uff1a\u300aPython\u7f16\u7a0b\uff1a\u4ece\u5165\u95e8\u5230\u5b9e\u8df5\u300b\u3001\u300a\u6d41\u7545\u7684Python\u300b\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\n<p><strong>\u53c2\u4e0e\u793e\u533a\u548c\u9879\u76ee<\/strong>  <\/p>\n<\/p>\n<ul>\n<li>\u53c2\u4e0e\u5f00\u6e90\u9879\u76ee\uff0c\u901a\u8fc7\u8d21\u732e\u4ee3\u7801\u548c\u6587\u6863\u63d0\u9ad8\u6280\u80fd\u3002<\/li>\n<li>\u52a0\u5165Python\u5f00\u53d1\u8005\u793e\u533a\uff0c\u4e0e\u5176\u4ed6\u5f00\u53d1\u8005\u4ea4\u6d41\u7ecf\u9a8c\u3002<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<p><p>\u901a\u8fc7\u4ee5\u4e0a\u6b65\u9aa4\u548c\u65b9\u6cd5\uff0c\u5f00\u53d1\u8005\u53ef\u4ee5\u5728Windows\u4e0b\u987a\u5229\u8fdb\u884cPython\u5f00\u53d1\u3002\u968f\u7740\u7ecf\u9a8c\u7684\u79ef\u7d2f\u548c\u6280\u80fd\u7684\u63d0\u9ad8\uff0c\u5f00\u53d1\u8005\u53ef\u4ee5\u63a2\u7d22\u66f4\u9ad8\u7ea7\u7684Python\u529f\u80fd\u548c\u5e94\u7528\u9886\u57df\uff0c\u5982\u6570\u636e\u79d1\u5b66\u3001<a href=\"https:\/\/docs.pingcode.com\/ask\/59192.html\" target=\"_blank\">\u673a\u5668\u5b66\u4e60<\/a>\u3001Web\u5f00\u53d1\u7b49\uff0c\u4e0d\u65ad\u62d3\u5c55\u81ea\u5df1\u7684\u6280\u672f\u80fd\u529b\u548c\u804c\u4e1a\u53d1\u5c55\u8def\u5f84\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u5728Windows\u4e0a\u5b89\u88c5Python\u5e76\u914d\u7f6e\u5f00\u53d1\u73af\u5883\uff1f<\/strong><br \/>\u5728Windows\u4e0a\u5b89\u88c5Python\u975e\u5e38\u7b80\u5355\u3002\u9996\u5148\uff0c\u8bbf\u95eePython\u5b98\u65b9\u7f51\u7ad9\u4e0b\u8f7d\u9002\u5408\u60a8\u64cd\u4f5c\u7cfb\u7edf\u7684\u5b89\u88c5\u7a0b\u5e8f\u3002\u5728\u5b89\u88c5\u8fc7\u7a0b\u4e2d\uff0c\u786e\u4fdd\u52fe\u9009\u201cAdd Python to PATH\u201d\u9009\u9879\uff0c\u4ee5\u4fbf\u5728\u547d\u4ee4\u884c\u4e2d\u65b9\u4fbf\u5730\u4f7f\u7528Python\u3002\u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u53ef\u4ee5\u901a\u8fc7\u6253\u5f00\u547d\u4ee4\u63d0\u793a\u7b26\u5e76\u8f93\u5165\u201cpython\u201d\u6765\u9a8c\u8bc1\u5b89\u88c5\u3002\u5982\u679c\u6210\u529f\uff0c\u60a8\u5c06\u770b\u5230Python\u7684\u7248\u672c\u4fe1\u606f\u3002\u63a5\u4e0b\u6765\uff0c\u60a8\u53ef\u4ee5\u9009\u62e9\u4f7f\u7528\u6587\u672c\u7f16\u8f91\u5668\u6216\u96c6\u6210\u5f00\u53d1\u73af\u5883\uff08IDE\uff09\uff0c\u5982PyCharm\u6216Visual Studio Code\uff0c\u6765\u7f16\u5199\u548c\u8c03\u8bd5\u4ee3\u7801\u3002<\/p>\n<p><strong>\u5728Windows\u4e0b\u4f7f\u7528Python\u5f00\u53d1\u65f6\uff0c\u63a8\u8350\u54ea\u4e9b\u5e38\u7528\u5e93\u6216\u6846\u67b6\uff1f<\/strong><br \/>\u5728Python\u5f00\u53d1\u4e2d\uff0c\u6709\u8bb8\u591a\u4f18\u79c0\u7684\u5e93\u548c\u6846\u67b6\u53ef\u4ee5\u63d0\u9ad8\u60a8\u7684\u5de5\u4f5c\u6548\u7387\u3002\u5bf9\u4e8e\u7f51\u9875\u5f00\u53d1\uff0cFlask\u548cDjango\u662f\u4e24\u4e2a\u975e\u5e38\u53d7\u6b22\u8fce\u7684\u6846\u67b6\uff1b\u5728\u6570\u636e\u5206\u6790\u65b9\u9762\uff0cPandas\u548cNumPy\u662f\u5fc5\u4e0d\u53ef\u5c11\u7684\u5de5\u5177\uff1b\u5982\u679c\u60a8\u5bf9\u673a\u5668\u5b66\u4e60\u611f\u5174\u8da3\uff0cScikit-learn\u548cTensorFlow\u90fd\u662f\u5f3a\u5927\u7684\u9009\u62e9\u3002\u6b64\u5916\uff0c\u4f7f\u7528Matplotlib\u548cSeaborn\u7b49\u5e93\u8fdb\u884c\u6570\u636e\u53ef\u89c6\u5316\u4e5f\u975e\u5e38\u6709\u5e2e\u52a9\u3002<\/p>\n<p><strong>\u5982\u4f55\u5728Windows\u4e0a\u8c03\u8bd5Python\u4ee3\u7801\uff1f<\/strong><br \/>\u8c03\u8bd5Python\u4ee3\u7801\u53ef\u4ee5\u901a\u8fc7\u591a\u79cd\u65b9\u5f0f\u8fdb\u884c\u3002\u5728\u4f7f\u7528IDE\u65f6\uff0c\u901a\u5e38\u4f1a\u63d0\u4f9b\u5185\u7f6e\u7684\u8c03\u8bd5\u5de5\u5177\uff0c\u60a8\u53ef\u4ee5\u8bbe\u7f6e\u65ad\u70b9\uff0c\u9010\u884c\u6267\u884c\u4ee3\u7801\uff0c\u5e76\u67e5\u770b\u53d8\u91cf\u7684\u503c\u3002\u6b64\u5916\uff0cPython\u81ea\u8eab\u4e5f\u63d0\u4f9b\u4e86\u8c03\u8bd5\u6a21\u5757pdb\uff0c\u60a8\u53ef\u4ee5\u5728\u4ee3\u7801\u4e2d\u63d2\u5165<code>import pdb; pdb.set_trace()<\/code>\u6765\u542f\u52a8\u8c03\u8bd5\u6a21\u5f0f\u3002\u4f7f\u7528\u8fd9\u4e9b\u5de5\u5177\u53ef\u4ee5\u5e2e\u52a9\u60a8\u66f4\u5feb\u5730\u5b9a\u4f4d\u548c\u89e3\u51b3\u95ee\u9898\uff0c\u63d0\u9ad8\u5f00\u53d1\u6548\u7387\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u5728Windows\u4e0b\u5f00\u53d1Python\u7684\u4e3b\u8981\u6b65\u9aa4\u5305\u62ec\uff1a\u5b89\u88c5Python\u73af\u5883\u3001\u4f7f\u7528\u5408\u9002\u7684\u96c6\u6210\u5f00\u53d1\u73af\u5883\uff08IDE\uff09\u3001\u914d\u7f6e [&hellip;]","protected":false},"author":3,"featured_media":922869,"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\/922867"}],"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=922867"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/922867\/revisions"}],"predecessor-version":[{"id":922870,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/922867\/revisions\/922870"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/922869"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=922867"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=922867"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=922867"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}