{"id":1116272,"date":"2025-01-08T18:14:55","date_gmt":"2025-01-08T10:14:55","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1116272.html"},"modified":"2025-01-08T18:14:57","modified_gmt":"2025-01-08T10:14:57","slug":"%e5%a6%82%e4%bd%95%e8%bf%90%e8%a1%8cd%e7%9b%98%e4%b8%adpython%e6%96%87%e4%bb%b6%e5%a4%b9","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/1116272.html","title":{"rendered":"\u5982\u4f55\u8fd0\u884cd\u76d8\u4e2dpython\u6587\u4ef6\u5939"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/25080655\/bfdeb2da-7a32-42c8-a911-0cabc5f4a65e.webp\" alt=\"\u5982\u4f55\u8fd0\u884cd\u76d8\u4e2dpython\u6587\u4ef6\u5939\" \/><\/p>\n<p><p> <strong>\u5982\u4f55\u8fd0\u884cd\u76d8\u4e2dPython\u6587\u4ef6\u5939<\/strong><\/p>\n<\/p>\n<p><p><strong>\u8fd0\u884cD\u76d8\u4e2d\u7684Python\u6587\u4ef6\u5939\u9700\u8981\u4f7f\u7528\u547d\u4ee4\u884c\u3001\u8bbe\u7f6e\u73af\u5883\u53d8\u91cf\u3001\u4f7f\u7528\u96c6\u6210\u5f00\u53d1\u73af\u5883\uff08IDE\uff09\u3001\u521b\u5efa\u5feb\u6377\u65b9\u5f0f\u7b49\u65b9\u5f0f<\/strong>\u3002\u5176\u4e2d\uff0c\u4f7f\u7528\u547d\u4ee4\u884c\u662f\u6700\u5e38\u89c1\u4e5f\u662f\u6700\u57fa\u7840\u7684\u65b9\u5f0f\u3002\u901a\u8fc7\u5728\u547d\u4ee4\u884c\u4e2d\u5207\u6362\u5230D\u76d8\u5e76\u8fd0\u884cPython\u6587\u4ef6\uff0c\u53ef\u4ee5\u8f7b\u677e\u5b9e\u73b0\u5bf9Python\u811a\u672c\u7684\u6267\u884c\u3002\u63a5\u4e0b\u6765\u5c06\u8be6\u7ec6\u4ecb\u7ecd\u8fd9\u4e9b\u65b9\u6cd5\u7684\u5177\u4f53\u64cd\u4f5c\u6b65\u9aa4\u3002<\/p>\n<\/p>\n<p><p>\u4e00\u3001\u4f7f\u7528\u547d\u4ee4\u884c\u8fd0\u884cPython\u6587\u4ef6<\/p>\n<\/p>\n<p><p>\u4f7f\u7528\u547d\u4ee4\u884c\u8fd0\u884cPython\u6587\u4ef6\u662f\u6700\u57fa\u7840\u4e5f\u662f\u6700\u5e38\u89c1\u7684\u65b9\u6cd5\u3002\u4ee5\u4e0b\u662f\u5177\u4f53\u6b65\u9aa4\uff1a<\/p>\n<\/p>\n<ol>\n<li>\n<p>\u6253\u5f00\u547d\u4ee4\u884c\u754c\u9762\uff1a<\/p>\n<\/p>\n<ul>\n<li>\u5728Windows\u7cfb\u7edf\u4e0a\uff0c\u53ef\u4ee5\u901a\u8fc7\u6309\u4e0b<code>Win + R<\/code>\u952e\uff0c\u7136\u540e\u8f93\u5165<code>cmd<\/code>\u5e76\u56de\u8f66\uff0c\u6253\u5f00\u547d\u4ee4\u63d0\u793a\u7b26\u3002<\/li>\n<li>\u5728Mac\u6216Linux\u7cfb\u7edf\u4e0a\uff0c\u53ef\u4ee5\u6253\u5f00Terminal\u7ec8\u7aef\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\n<p>\u5207\u6362\u5230D\u76d8\uff1a<\/p>\n<\/p>\n<ul>\n<li>\u5728\u547d\u4ee4\u63d0\u793a\u7b26\u6216\u7ec8\u7aef\u4e2d\u8f93\u5165<code>D:<\/code>\u5e76\u6309\u56de\u8f66\u952e\uff0c\u8fd9\u5c06\u5207\u6362\u5f53\u524d\u76ee\u5f55\u5230D\u76d8\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\n<p>\u8fdb\u5165Python\u6587\u4ef6\u5939\uff1a<\/p>\n<\/p>\n<ul>\n<li>\u4f7f\u7528<code>cd<\/code>\u547d\u4ee4\u8fdb\u5165\u5b58\u653ePython\u811a\u672c\u7684\u6587\u4ef6\u5939\u3002\u4f8b\u5982\uff0c\u5982\u679cPython\u6587\u4ef6\u5939\u4f4d\u4e8eD\u76d8\u7684\u6839\u76ee\u5f55\u4e0b\uff0c\u53ef\u4ee5\u8f93\u5165<code>cd PythonFolder<\/code>\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\n<p>\u8fd0\u884cPython\u811a\u672c\uff1a<\/p>\n<\/p>\n<ul>\n<li>\u4f7f\u7528<code>python<\/code>\u547d\u4ee4\u8fd0\u884c\u811a\u672c\u3002\u4f8b\u5982\uff0c\u82e5\u811a\u672c\u540d\u79f0\u4e3a<code>script.py<\/code>\uff0c\u53ef\u4ee5\u8f93\u5165<code>python script.py<\/code>\u5e76\u6309\u56de\u8f66\u952e\u3002<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<p><p><strong>\u8be6\u7ec6\u63cf\u8ff0\u547d\u4ee4\u884c\u5207\u6362\u76ee\u5f55\u548c\u8fd0\u884c\u811a\u672c\u7684\u8fc7\u7a0b<\/strong><\/p>\n<\/p>\n<p><p>\u5728\u547d\u4ee4\u884c\u4e2d\u5207\u6362\u76ee\u5f55\u548c\u8fd0\u884c\u811a\u672c\u662f\u4e00\u4e2a\u975e\u5e38\u91cd\u8981\u7684\u6280\u80fd\uff0c\u7279\u522b\u662f\u5bf9\u4e8e\u5f00\u53d1\u8005\u548c\u6570\u636e\u79d1\u5b66\u5bb6\u6765\u8bf4\u3002\u4ee5\u4e0b\u662f\u4e00\u4e2a\u8be6\u7ec6\u7684\u793a\u4f8b\u8fc7\u7a0b\uff1a<\/p>\n<\/p>\n<p><p>\u5047\u8bbe\u4f60\u7684Python\u6587\u4ef6\u5939\u4f4d\u4e8eD\u76d8\u7684\u6839\u76ee\u5f55\u4e0b\uff0c\u6587\u4ef6\u5939\u540d\u79f0\u4e3a<code>PythonProjects<\/code>\uff0c\u5176\u4e2d\u5305\u542b\u4e00\u4e2a\u540d\u4e3a<code>example.py<\/code>\u7684Python\u811a\u672c\u3002<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u6253\u5f00\u547d\u4ee4\u884c\u754c\u9762<\/strong>\uff1a<\/p>\n<\/p>\n<ul>\n<li>\u6309\u4e0b<code>Win + R<\/code>\u952e\uff0c\u8f93\u5165<code>cmd<\/code>\u5e76\u6309\u56de\u8f66\uff0c\u6253\u5f00\u547d\u4ee4\u63d0\u793a\u7b26\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\n<p><strong>\u5207\u6362\u5230D\u76d8<\/strong>\uff1a<\/p>\n<\/p>\n<ul>\n<li>\u5728\u547d\u4ee4\u63d0\u793a\u7b26\u4e2d\u8f93\u5165<code>D:<\/code>\u5e76\u6309\u56de\u8f66\u952e\u3002\u6b64\u65f6\u547d\u4ee4\u63d0\u793a\u7b26\u4f1a\u663e\u793a<code>D:\\&gt;<\/code>\uff0c\u8868\u793a\u5df2\u7ecf\u5207\u6362\u5230D\u76d8\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\n<p><strong>\u8fdb\u5165Python\u6587\u4ef6\u5939<\/strong>\uff1a<\/p>\n<\/p>\n<ul>\n<li>\u8f93\u5165<code>cd PythonProjects<\/code>\u5e76\u6309\u56de\u8f66\u952e\u3002\u547d\u4ee4\u63d0\u793a\u7b26\u4f1a\u663e\u793a<code>D:\\PythonProjects&gt;<\/code>\uff0c\u8868\u793a\u5df2\u7ecf\u8fdb\u5165\u5230PythonProjects\u6587\u4ef6\u5939\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\n<p><strong>\u8fd0\u884cPython\u811a\u672c<\/strong>\uff1a<\/p>\n<\/p>\n<ul>\n<li>\u8f93\u5165<code>python example.py<\/code>\u5e76\u6309\u56de\u8f66\u952e\u3002\u6b64\u65f6Python\u89e3\u91ca\u5668\u4f1a\u8fd0\u884c<code>example.py<\/code>\u811a\u672c\uff0c\u82e5\u811a\u672c\u4e2d\u6709\u8f93\u51fa\u5185\u5bb9\uff0c\u5c06\u4f1a\u5728\u547d\u4ee4\u63d0\u793a\u7b26\u7a97\u53e3\u4e2d\u663e\u793a\u3002<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<p><p>\u901a\u8fc7\u4ee5\u4e0a\u6b65\u9aa4\uff0c\u4f60\u53ef\u4ee5\u6210\u529f\u5730\u5728\u547d\u4ee4\u884c\u4e2d\u8fd0\u884c\u4f4d\u4e8eD\u76d8\u4e2d\u7684Python\u6587\u4ef6\u5939\u5185\u7684\u811a\u672c\u3002<\/p>\n<\/p>\n<p><p>\u4e8c\u3001\u8bbe\u7f6e\u73af\u5883\u53d8\u91cf<\/p>\n<\/p>\n<p><p>\u8bbe\u7f6e\u73af\u5883\u53d8\u91cf\u53ef\u4ee5\u8ba9\u4f60\u5728\u547d\u4ee4\u884c\u7684\u4efb\u4f55\u4f4d\u7f6e\u8fd0\u884cPython\u811a\u672c\uff0c\u800c\u4e0d\u5fc5\u6bcf\u6b21\u90fd\u5207\u6362\u5230\u7279\u5b9a\u76ee\u5f55\u3002\u4ee5\u4e0b\u662f\u5177\u4f53\u6b65\u9aa4\uff1a<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u627e\u5230Python\u5b89\u88c5\u76ee\u5f55<\/strong>\uff1a<\/p>\n<\/p>\n<ul>\n<li>\u6253\u5f00Python\u7684\u5b89\u88c5\u76ee\u5f55\u3002\u4f8b\u5982\uff0c\u5047\u8bbePython\u5b89\u88c5\u5728<code>C:\\Python39<\/code>\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\n<p><strong>\u8bbe\u7f6e\u73af\u5883\u53d8\u91cf<\/strong>\uff1a<\/p>\n<\/p>\n<ul>\n<li>\u5728Windows\u7cfb\u7edf\u4e2d\uff0c\u53f3\u952e\u70b9\u51fb\u201c\u6b64\u7535\u8111\u201d\u6216\u201c\u8ba1\u7b97\u673a\u201d\uff0c\u9009\u62e9\u201c\u5c5e\u6027\u201d\uff0c\u7136\u540e\u70b9\u51fb\u201c\u9ad8\u7ea7\u7cfb\u7edf\u8bbe\u7f6e\u201d\uff0c\u5728\u201c\u7cfb\u7edf\u5c5e\u6027\u201d\u7a97\u53e3\u4e2d\u70b9\u51fb\u201c\u73af\u5883\u53d8\u91cf\u201d\u6309\u94ae\u3002<\/li>\n<li>\u5728\u201c\u7cfb\u7edf\u53d8\u91cf\u201d\u90e8\u5206\u627e\u5230<code>Path<\/code>\u53d8\u91cf\uff0c\u70b9\u51fb\u201c\u7f16\u8f91\u201d\u6309\u94ae\u3002<\/li>\n<li>\u70b9\u51fb\u201c\u65b0\u5efa\u201d\u6309\u94ae\uff0c\u8f93\u5165Python\u7684\u5b89\u88c5\u76ee\u5f55\u8def\u5f84\uff0c\u4f8b\u5982<code>C:\\Python39<\/code>\uff0c\u7136\u540e\u70b9\u51fb\u201c\u786e\u5b9a\u201d\u4fdd\u5b58\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\n<p><strong>\u9a8c\u8bc1\u8bbe\u7f6e<\/strong>\uff1a<\/p>\n<\/p>\n<ul>\n<li>\u6253\u5f00\u547d\u4ee4\u63d0\u793a\u7b26\uff0c\u8f93\u5165<code>python --version<\/code>\u5e76\u6309\u56de\u8f66\u952e\u3002\u5982\u679c\u663e\u793aPython\u7248\u672c\u53f7\uff0c\u8bf4\u660e\u73af\u5883\u53d8\u91cf\u8bbe\u7f6e\u6210\u529f\u3002<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<p><p>\u901a\u8fc7\u8bbe\u7f6e\u73af\u5883\u53d8\u91cf\uff0c\u4f60\u53ef\u4ee5\u5728\u547d\u4ee4\u884c\u7684\u4efb\u4f55\u4f4d\u7f6e\u8fd0\u884cPython\u811a\u672c\u3002\u4f8b\u5982\uff0c\u5728\u547d\u4ee4\u63d0\u793a\u7b26\u4e2d\u8f93\u5165<code>python D:\\PythonProjects\\example.py<\/code>\uff0c\u5c06\u76f4\u63a5\u8fd0\u884c\u4f4d\u4e8eD\u76d8\u4e2d\u7684<code>example.py<\/code>\u811a\u672c\u3002<\/p>\n<\/p>\n<p><p>\u4e09\u3001\u4f7f\u7528\u96c6\u6210\u5f00\u53d1\u73af\u5883\uff08IDE\uff09<\/p>\n<\/p>\n<p><p>\u96c6\u6210\u5f00\u53d1\u73af\u5883\uff08IDE\uff09\u662f\u5f00\u53d1\u8005\u5e38\u7528\u7684\u5de5\u5177\uff0c\u80fd\u591f\u63d0\u4f9b\u4ee3\u7801\u7f16\u8f91\u3001\u8c03\u8bd5\u3001\u8fd0\u884c\u7b49\u591a\u79cd\u529f\u80fd\u3002\u5e38\u89c1\u7684Python IDE\u6709PyCharm\u3001VS Code\u3001Jupyter Notebook\u7b49\u3002\u4ee5\u4e0b\u662f\u4f7f\u7528PyCharm\u8fd0\u884cD\u76d8\u4e2dPython\u6587\u4ef6\u5939\u7684\u6b65\u9aa4\uff1a<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u5b89\u88c5PyCharm<\/strong>\uff1a<\/p>\n<\/p>\n<ul>\n<li>\u4e0b\u8f7d\u5e76\u5b89\u88c5PyCharm\u793e\u533a\u7248\u6216\u4e13\u4e1a\u7248\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\n<p><strong>\u521b\u5efa\u6216\u6253\u5f00\u9879\u76ee<\/strong>\uff1a<\/p>\n<\/p>\n<ul>\n<li>\u6253\u5f00PyCharm\uff0c\u70b9\u51fb\u201cFile\u201d\u83dc\u5355\uff0c\u9009\u62e9\u201cOpen\u201d\u9009\u9879\uff0c\u6d4f\u89c8\u5230D\u76d8\u4e2d\u7684Python\u6587\u4ef6\u5939\uff0c\u4f8b\u5982<code>D:\\PythonProjects<\/code>\uff0c\u7136\u540e\u70b9\u51fb\u201cOK\u201d\u6309\u94ae\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\n<p><strong>\u914d\u7f6e\u89e3\u91ca\u5668<\/strong>\uff1a<\/p>\n<\/p>\n<ul>\n<li>\u5728PyCharm\u4e2d\u70b9\u51fb\u201cFile\u201d\u83dc\u5355\uff0c\u9009\u62e9\u201cSettings\u201d\u9009\u9879\u3002<\/li>\n<li>\u5728\u8bbe\u7f6e\u7a97\u53e3\u4e2d\uff0c\u627e\u5230\u201cProject: <your_project_name>\u201d\u90e8\u5206\uff0c\u70b9\u51fb\u201cPython Interpreter\u201d\u3002<\/li>\n<li>\u9009\u62e9\u6216\u6dfb\u52a0Python\u89e3\u91ca\u5668\uff0c\u786e\u4fdd\u9009\u62e9\u6b63\u786e\u7684Python\u7248\u672c\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\n<p><strong>\u8fd0\u884cPython\u811a\u672c<\/strong>\uff1a<\/p>\n<\/p>\n<ul>\n<li>\u5728\u9879\u76ee\u6d4f\u89c8\u5668\u4e2d\u627e\u5230\u8981\u8fd0\u884c\u7684Python\u811a\u672c\uff0c\u4f8b\u5982<code>example.py<\/code>\u3002<\/li>\n<li>\u53f3\u952e\u70b9\u51fb\u811a\u672c\u6587\u4ef6\uff0c\u9009\u62e9\u201cRun &#39;example&#39;\u201d\u9009\u9879\uff0c\u6216\u8005\u4f7f\u7528\u5feb\u6377\u952e<code>Shift + F10<\/code>\u8fd0\u884c\u811a\u672c\u3002<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<p><p>\u901a\u8fc7\u4ee5\u4e0a\u6b65\u9aa4\uff0c\u4f60\u53ef\u4ee5\u5728PyCharm\u4e2d\u8f7b\u677e\u8fd0\u884c\u4f4d\u4e8eD\u76d8\u4e2d\u7684Python\u811a\u672c\uff0c\u5e76\u4eab\u53d7IDE\u63d0\u4f9b\u7684\u4e30\u5bcc\u529f\u80fd\u3002<\/p>\n<\/p>\n<p><p>\u56db\u3001\u521b\u5efa\u5feb\u6377\u65b9\u5f0f<\/p>\n<\/p>\n<p><p>\u521b\u5efa\u5feb\u6377\u65b9\u5f0f\u53ef\u4ee5\u8ba9\u4f60\u901a\u8fc7\u53cc\u51fb\u56fe\u6807\u76f4\u63a5\u8fd0\u884cPython\u811a\u672c\uff0c\u800c\u65e0\u9700\u6253\u5f00\u547d\u4ee4\u884c\u6216IDE\u3002\u4ee5\u4e0b\u662f\u5177\u4f53\u6b65\u9aa4\uff1a<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u521b\u5efa\u6279\u5904\u7406\u6587\u4ef6<\/strong>\uff1a<\/p>\n<\/p>\n<ul>\n<li>\u6253\u5f00\u8bb0\u4e8b\u672c\u6216\u5176\u4ed6\u6587\u672c\u7f16\u8f91\u5668\u3002<\/li>\n<li>\u8f93\u5165\u4ee5\u4e0b\u5185\u5bb9\uff1a\n<pre><code class=\"language-batch\">@echo off<\/p>\n<p>D:<\/p>\n<p>cd PythonProjects<\/p>\n<p>python example.py<\/p>\n<p>pause<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<li>\u4fdd\u5b58\u6587\u4ef6\u4e3a<code>run_example.bat<\/code>\uff0c\u786e\u4fdd\u6587\u4ef6\u6269\u5c55\u540d\u4e3a<code>.bat<\/code>\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\n<p><strong>\u521b\u5efa\u5feb\u6377\u65b9\u5f0f<\/strong>\uff1a<\/p>\n<\/p>\n<ul>\n<li>\u53f3\u952e\u70b9\u51fb<code>run_example.bat<\/code>\u6587\u4ef6\uff0c\u9009\u62e9\u201c\u521b\u5efa\u5feb\u6377\u65b9\u5f0f\u201d\u3002<\/li>\n<li>\u5c06\u5feb\u6377\u65b9\u5f0f\u79fb\u52a8\u5230\u684c\u9762\u6216\u5176\u4ed6\u65b9\u4fbf\u7684\u4f4d\u7f6e\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\n<p><strong>\u8fd0\u884c\u5feb\u6377\u65b9\u5f0f<\/strong>\uff1a<\/p>\n<\/p>\n<ul>\n<li>\u53cc\u51fb\u5feb\u6377\u65b9\u5f0f\u56fe\u6807\uff0c\u5c06\u81ea\u52a8\u6253\u5f00\u547d\u4ee4\u63d0\u793a\u7b26\u5e76\u8fd0\u884c<code>example.py<\/code>\u811a\u672c\u3002<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<p><p>\u901a\u8fc7\u4ee5\u4e0a\u6b65\u9aa4\uff0c\u4f60\u53ef\u4ee5\u901a\u8fc7\u53cc\u51fb\u5feb\u6377\u65b9\u5f0f\u56fe\u6807\u76f4\u63a5\u8fd0\u884c\u4f4d\u4e8eD\u76d8\u4e2d\u7684Python\u811a\u672c\uff0c\u975e\u5e38\u65b9\u4fbf\u5feb\u6377\u3002<\/p>\n<\/p>\n<p><p>\u4e94\u3001\u603b\u7ed3<\/p>\n<\/p>\n<p><p>\u8fd0\u884cD\u76d8\u4e2d\u7684Python\u6587\u4ef6\u5939\u53ef\u4ee5\u901a\u8fc7\u591a\u79cd\u65b9\u5f0f\u5b9e\u73b0\uff0c\u5305\u62ec\u4f7f\u7528\u547d\u4ee4\u884c\u3001\u8bbe\u7f6e\u73af\u5883\u53d8\u91cf\u3001\u4f7f\u7528\u96c6\u6210\u5f00\u53d1\u73af\u5883\uff08IDE\uff09\u3001\u521b\u5efa\u5feb\u6377\u65b9\u5f0f\u7b49\u3002\u6bcf\u79cd\u65b9\u6cd5\u90fd\u6709\u5176\u4f18\u70b9\u548c\u9002\u7528\u573a\u666f\uff0c\u5f00\u53d1\u8005\u53ef\u4ee5\u6839\u636e\u81ea\u5df1\u7684\u9700\u6c42\u9009\u62e9\u5408\u9002\u7684\u65b9\u6cd5\u3002<\/p>\n<\/p>\n<p><p><strong>\u4f7f\u7528\u547d\u4ee4\u884c\u662f\u6700\u57fa\u7840\u4e5f\u662f\u6700\u5e38\u89c1\u7684\u65b9\u5f0f\uff0c\u901a\u8fc7\u5207\u6362\u76ee\u5f55\u548c\u8fd0\u884c\u811a\u672c\uff0c\u53ef\u4ee5\u8f7b\u677e\u5b9e\u73b0\u5bf9Python\u811a\u672c\u7684\u6267\u884c\u3002<\/strong> \u8bbe\u7f6e\u73af\u5883\u53d8\u91cf\u53ef\u4ee5\u8ba9\u4f60\u5728\u547d\u4ee4\u884c\u7684\u4efb\u4f55\u4f4d\u7f6e\u8fd0\u884cPython\u811a\u672c\uff0c\u63d0\u9ad8\u5f00\u53d1\u6548\u7387\u3002\u4f7f\u7528\u96c6\u6210\u5f00\u53d1\u73af\u5883\uff08IDE\uff09\u80fd\u591f\u63d0\u4f9b\u4e30\u5bcc\u7684\u529f\u80fd\uff0c\u9002\u5408\u5927\u578b\u9879\u76ee\u5f00\u53d1\u548c\u8c03\u8bd5\u3002\u521b\u5efa\u5feb\u6377\u65b9\u5f0f\u5219\u975e\u5e38\u9002\u5408\u9700\u8981\u9891\u7e41\u8fd0\u884c\u7684\u811a\u672c\uff0c\u901a\u8fc7\u53cc\u51fb\u56fe\u6807\u5373\u53ef\u5feb\u901f\u6267\u884c\u3002<\/p>\n<\/p>\n<p><p>\u65e0\u8bba\u9009\u62e9\u54ea\u79cd\u65b9\u5f0f\uff0c\u638c\u63e1\u8fd9\u4e9b\u57fa\u672c\u6280\u80fd\u5bf9\u4e8ePython\u5f00\u53d1\u8005\u6765\u8bf4\u90fd\u662f\u975e\u5e38\u91cd\u8981\u7684\uff0c\u6709\u52a9\u4e8e\u63d0\u9ad8\u5f00\u53d1\u6548\u7387\u548c\u4ee3\u7801\u6267\u884c\u7684\u4fbf\u6377\u6027\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u5728D\u76d8\u4e2d\u627e\u5230\u6211\u7684Python\u6587\u4ef6\u5939\uff1f<\/strong><br \/>\u53ef\u4ee5\u4f7f\u7528\u6587\u4ef6<a href=\"https:\/\/docs.pingcode.com\/blog\/project-management\/58557.html\" target=\"_blank\">\u8d44\u6e90\u7ba1\u7406<\/a>\u5668\u6765\u5bfc\u822a\u5230D\u76d8\u3002\u6253\u5f00\u6587\u4ef6\u8d44\u6e90\u7ba1\u7406\u5668\uff0c\u70b9\u51fb\u201c\u6b64\u7535\u8111\u201d\uff0c\u7136\u540e\u9009\u62e9D\u76d8\u3002\u63a5\u4e0b\u6765\uff0c\u6d4f\u89c8\u6587\u4ef6\u5939\uff0c\u67e5\u627e\u4ee5\u201cPython\u201d\u547d\u540d\u7684\u6587\u4ef6\u5939\u3002\u82e5\u60a8\u5728D\u76d8\u4e2d\u6ca1\u6709\u627e\u5230\u8be5\u6587\u4ef6\u5939\uff0c\u53ef\u4ee5\u8003\u8651\u5728\u5176\u4ed6\u76d8\u7b26\u4e2d\u67e5\u627e\uff0c\u6216\u4f7f\u7528\u641c\u7d22\u529f\u80fd\u6765\u5feb\u901f\u5b9a\u4f4d\u3002<\/p>\n<p><strong>\u5982\u4f55\u5728D\u76d8\u4e2d\u8fd0\u884cPython\u6587\u4ef6\uff1f<\/strong><br \/>\u8981\u5728D\u76d8\u4e2d\u8fd0\u884cPython\u6587\u4ef6\uff0c\u53ef\u4ee5\u6253\u5f00\u547d\u4ee4\u63d0\u793a\u7b26\uff08CMD\uff09\u3002\u6309\u4e0b\u201cWin + R\u201d\u952e\uff0c\u8f93\u5165\u201ccmd\u201d\u5e76\u6309\u56de\u8f66\u3002\u5728\u547d\u4ee4\u63d0\u793a\u7b26\u4e2d\uff0c\u8f93\u5165\u201cD:\u201d\u5207\u6362\u5230D\u76d8\uff0c\u7136\u540e\u4f7f\u7528\u201ccd\u201d\u547d\u4ee4\u5bfc\u822a\u5230\u5305\u542bPython\u6587\u4ef6\u7684\u6587\u4ef6\u5939\u3002\u4f8b\u5982\uff0c\u5982\u679cPython\u6587\u4ef6\u5728D:\\PythonScripts\u4e2d\uff0c\u53ef\u4ee5\u8f93\u5165\u201ccd PythonScripts\u201d\u3002\u6700\u540e\uff0c\u4f7f\u7528\u201cpython \u6587\u4ef6\u540d.py\u201d\u547d\u4ee4\u6267\u884c\u8be5Python\u811a\u672c\u3002<\/p>\n<p><strong>\u5982\u679c\u6211\u7684D\u76d8\u4e0a\u6ca1\u6709\u5b89\u88c5Python\uff0c\u5e94\u8be5\u600e\u4e48\u529e\uff1f<\/strong><br \/>\u5982\u679c\u5728D\u76d8\u4e0a\u6ca1\u6709\u5b89\u88c5Python\uff0c\u60a8\u9700\u8981\u5148\u4e0b\u8f7d\u5e76\u5b89\u88c5Python\u3002\u8bbf\u95eePython\u5b98\u65b9\u7f51\u7ad9\uff0c\u4e0b\u8f7d\u9002\u5408\u60a8\u64cd\u4f5c\u7cfb\u7edf\u7684\u6700\u65b0\u7248\u672c\u3002\u5b89\u88c5\u65f6\uff0c\u786e\u4fdd\u9009\u62e9\u201c\u5c06Python\u6dfb\u52a0\u5230PATH\u201d\u9009\u9879\uff0c\u8fd9\u6837\u53ef\u4ee5\u5728\u4efb\u4f55\u76ee\u5f55\u4e0b\u76f4\u63a5\u4f7f\u7528Python\u547d\u4ee4\u3002\u5b8c\u6210\u5b89\u88c5\u540e\uff0c\u60a8\u5c31\u53ef\u4ee5\u6309\u7167\u4e4b\u524d\u63d0\u5230\u7684\u65b9\u6cd5\u8fd0\u884cD\u76d8\u4e2d\u7684Python\u6587\u4ef6\u4e86\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u5982\u4f55\u8fd0\u884cd\u76d8\u4e2dPython\u6587\u4ef6\u5939 \u8fd0\u884cD\u76d8\u4e2d\u7684Python\u6587\u4ef6\u5939\u9700\u8981\u4f7f\u7528\u547d\u4ee4\u884c\u3001\u8bbe\u7f6e\u73af\u5883\u53d8\u91cf\u3001\u4f7f\u7528\u96c6\u6210\u5f00\u53d1\u73af\u5883 [&hellip;]","protected":false},"author":3,"featured_media":1116278,"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\/1116272"}],"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=1116272"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1116272\/revisions"}],"predecessor-version":[{"id":1116282,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1116272\/revisions\/1116282"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/1116278"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=1116272"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=1116272"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=1116272"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}