{"id":986915,"date":"2024-12-27T07:49:02","date_gmt":"2024-12-26T23:49:02","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/986915.html"},"modified":"2024-12-27T07:49:04","modified_gmt":"2024-12-26T23:49:04","slug":"%e5%a6%82%e4%bd%95%e6%9d%a5%e8%bf%90%e8%a1%8cpython-%e6%96%87%e4%bb%b6","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/986915.html","title":{"rendered":"\u5982\u4f55\u6765\u8fd0\u884cpython \u6587\u4ef6"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/25063255\/929c0595-48b8-4221-8e9f-79c17eaed955.webp\" alt=\"\u5982\u4f55\u6765\u8fd0\u884cpython \u6587\u4ef6\" \/><\/p>\n<p><p> \u8fd0\u884cPython\u6587\u4ef6\u7684\u65b9\u6cd5\u6709\u591a\u79cd\uff0c<strong>\u4e3b\u8981\u5305\u62ec\u4ee5\u4e0b\u51e0\u79cd\uff1a\u4f7f\u7528\u547d\u4ee4\u884c\u3001\u4f7f\u7528IDE\uff08\u96c6\u6210\u5f00\u53d1\u73af\u5883\uff09\u3001\u4f7f\u7528\u811a\u672c\u6587\u4ef6\u6216\u4efb\u52a1\u8c03\u5ea6\u5de5\u5177\u3001\u4f7f\u7528\u5728\u7ebfPython\u7f16\u8bd1\u5668<\/strong>\u3002\u4e0b\u9762\u5c06\u8be6\u7ec6\u4ecb\u7ecd\u5176\u4e2d\u7684\u4e00\u79cd\u65b9\u6cd5\u2014\u2014\u4f7f\u7528\u547d\u4ee4\u884c\u8fd0\u884cPython\u6587\u4ef6\u3002<\/p>\n<\/p>\n<p><p>\u5728\u547d\u4ee4\u884c\u4e2d\u8fd0\u884cPython\u6587\u4ef6\u662f\u6700\u76f4\u63a5\u3001\u6700\u5e38\u7528\u7684\u65b9\u6cd5\u4e4b\u4e00\u3002\u9996\u5148\uff0c\u9700\u8981\u786e\u4fdd\u8ba1\u7b97\u673a\u4e0a\u5df2\u5b89\u88c5Python\uff0c\u5e76\u4e14\u73af\u5883\u53d8\u91cf\u5df2\u6b63\u786e\u914d\u7f6e\u3002\u63a5\u4e0b\u6765\uff0c\u5c06\u8981\u8fd0\u884c\u7684Python\u6587\u4ef6\u4fdd\u5b58\u5728\u4e00\u4e2a\u76ee\u5f55\u4e2d\uff0c\u7136\u540e\u6253\u5f00\u547d\u4ee4\u884c\u7a97\u53e3\uff08Windows\u4e2d\u4e3a\u547d\u4ee4\u63d0\u793a\u7b26\uff0cMac\u548cLinux\u4e2d\u4e3a\u7ec8\u7aef\uff09\uff0c\u5bfc\u822a\u5230Python\u6587\u4ef6\u6240\u5728\u7684\u76ee\u5f55\uff0c\u8f93\u5165\u547d\u4ee4\u201cpython \u6587\u4ef6\u540d.py\u201d\u5e76\u6309\u4e0b\u56de\u8f66\u952e\u5373\u53ef\u6267\u884cPython\u811a\u672c\u3002\u8fd9\u6837\u505a\u7684\u597d\u5904\u662f\uff0c<strong>\u53ef\u4ee5\u5feb\u901f\u5730\u6d4b\u8bd5\u548c\u8fd0\u884c\u7b80\u5355\u7684Python\u7a0b\u5e8f\uff0c\u540c\u65f6\u4e5f\u80fd\u770b\u5230\u7a0b\u5e8f\u7684\u8f93\u51fa\u548c\u9519\u8bef\u4fe1\u606f<\/strong>\u3002<\/p>\n<\/p>\n<p><p>\u901a\u8fc7\u547d\u4ee4\u884c\u8fd0\u884cPython\u6587\u4ef6\u7684\u4e00\u4e2a\u4f18\u52bf\u662f\uff0c\u5b83\u5141\u8bb8\u6211\u4eec\u5728\u4e0d\u9700\u8981\u590d\u6742\u73af\u5883\u7684\u60c5\u51b5\u4e0b\u5feb\u901f\u5730\u6267\u884c\u548c\u8c03\u8bd5Python\u4ee3\u7801\u3002\u8fd9\u79cd\u65b9\u6cd5\u5c24\u5176\u9002\u5408\u4e8e\u5904\u7406\u7b80\u5355\u7684\u811a\u672c\u6587\u4ef6\u6216\u9700\u8981\u5feb\u901f\u6d4b\u8bd5\u7684\u4ee3\u7801\u6bb5\u3002\u4ee5\u4e0b\u662f\u5173\u4e8e\u5982\u4f55\u4f7f\u7528\u547d\u4ee4\u884c\u8fd0\u884cPython\u6587\u4ef6\u7684\u8be6\u7ec6\u6b65\u9aa4\u548c\u5176\u4ed6\u65b9\u6cd5\u7684\u4ecb\u7ecd\u3002<\/p>\n<\/p>\n<p><p>\u4e00\u3001\u4f7f\u7528\u547d\u4ee4\u884c\u8fd0\u884cPython\u6587\u4ef6<\/p>\n<\/p>\n<p><p>1.1\u3001\u5b89\u88c5Python<\/p>\n<\/p>\n<p><p>\u5728\u8fd0\u884cPython\u6587\u4ef6\u4e4b\u524d\uff0c\u9996\u5148\u9700\u8981\u786e\u4fdd\u8ba1\u7b97\u673a\u4e0a\u5df2\u5b89\u88c5Python\u3002\u53ef\u4ee5\u901a\u8fc7\u8bbf\u95eePython\u5b98\u65b9\u7f51\u7ad9\uff08<a href=\"https:\/\/www.python.org\/%EF%BC%89%E4%B8%8B%E8%BD%BD%E9%80%82%E5%90%88%E6%82%A8%E6%93%8D%E4%BD%9C%E7%B3%BB%E7%BB%9F%E7%9A%84Python%E5%AE%89%E8%A3%85%E5%8C%85%E3%80%82%E5%AE%89%E8%A3%85%E5%AE%8C%E6%88%90%E5%90%8E%EF%BC%8C%E5%8F%AF%E4%BB%A5%E9%80%9A%E8%BF%87%E5%9C%A8%E5%91%BD%E4%BB%A4%E8%A1%8C%E4%B8%AD%E8%BE%93%E5%85%A5%E2%80%9Cpython\">https:\/\/www.python.org\/\uff09\u4e0b\u8f7d\u9002\u5408\u60a8\u64cd\u4f5c\u7cfb\u7edf\u7684Python\u5b89\u88c5\u5305\u3002\u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u53ef\u4ee5\u901a\u8fc7\u5728\u547d\u4ee4\u884c\u4e2d\u8f93\u5165\u201cpython<\/a> &#8211;version\u201d\u6216\u201cpython3 &#8211;version\u201d\u6765\u68c0\u67e5Python\u662f\u5426\u5df2\u6b63\u786e\u5b89\u88c5\u548c\u914d\u7f6e\u3002<\/p>\n<\/p>\n<p><p>1.2\u3001\u914d\u7f6e\u73af\u5883\u53d8\u91cf<\/p>\n<\/p>\n<p><p>\u5728Windows\u64cd\u4f5c\u7cfb\u7edf\u4e2d\uff0c\u5b89\u88c5Python\u540e\u53ef\u80fd\u9700\u8981\u624b\u52a8\u914d\u7f6e\u73af\u5883\u53d8\u91cf\uff0c\u4ee5\u4fbf\u5728\u547d\u4ee4\u884c\u4e2d\u76f4\u63a5\u4f7f\u7528\u201cpython\u201d\u547d\u4ee4\u3002\u53ef\u4ee5\u901a\u8fc7\u4ee5\u4e0b\u6b65\u9aa4\u6dfb\u52a0Python\u5230\u73af\u5883\u53d8\u91cf\uff1a<\/p>\n<\/p>\n<ul>\n<li>\u53f3\u952e\u5355\u51fb\u201c\u8ba1\u7b97\u673a\u201d\u6216\u201c\u6b64\u7535\u8111\u201d\uff0c\u9009\u62e9\u201c\u5c5e\u6027\u201d\u3002<\/li>\n<li>\u70b9\u51fb\u201c\u9ad8\u7ea7\u7cfb\u7edf\u8bbe\u7f6e\u201d\uff0c\u7136\u540e\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\u62e9\u5e76\u70b9\u51fb\u201c\u7f16\u8f91\u201d\u3002<\/li>\n<li>\u5c06Python\u5b89\u88c5\u76ee\u5f55\uff08\u4f8b\u5982C:\\Python39\\\uff09\u548cScripts\u76ee\u5f55\uff08\u4f8b\u5982C:\\Python39\\Scripts\\\uff09\u6dfb\u52a0\u5230Path\u53d8\u91cf\u4e2d\u3002<\/li>\n<\/ul>\n<p><p>\u5728Mac\u548cLinux\u64cd\u4f5c\u7cfb\u7edf\u4e2d\uff0c\u901a\u5e38\u4e0d\u9700\u8981\u624b\u52a8\u914d\u7f6e\u73af\u5883\u53d8\u91cf\uff0c\u56e0\u4e3aPython\u5b89\u88c5\u7a0b\u5e8f\u4f1a\u81ea\u52a8\u5b8c\u6210\u8fd9\u4e00\u6b65\u3002<\/p>\n<\/p>\n<p><p>1.3\u3001\u8fd0\u884cPython\u6587\u4ef6<\/p>\n<\/p>\n<p><p>\u5728\u547d\u4ee4\u884c\u7a97\u53e3\u4e2d\uff0c\u4f7f\u7528\u201ccd\u201d\u547d\u4ee4\u5bfc\u822a\u5230\u5305\u542bPython\u6587\u4ef6\u7684\u76ee\u5f55\u3002\u4f8b\u5982\uff0c\u5982\u679cPython\u6587\u4ef6\u4f4d\u4e8e\u201cC:\\Users\\YourUsername\\Documents\\\u201d\u76ee\u5f55\u4e2d\uff0c\u53ef\u4ee5\u8f93\u5165\u201ccd C:\\Users\\YourUsername\\Documents\\\u201d\u8fdb\u5165\u8be5\u76ee\u5f55\u3002<\/p>\n<\/p>\n<p><p>\u7136\u540e\uff0c\u8f93\u5165\u201cpython \u6587\u4ef6\u540d.py\u201d\u6216\u201cpython3 \u6587\u4ef6\u540d.py\u201d\u5e76\u6309\u56de\u8f66\u952e\uff0c\u5373\u53ef\u8fd0\u884cPython\u6587\u4ef6\u3002\u8fd0\u884c\u6210\u529f\u540e\uff0c\u547d\u4ee4\u884c\u7a97\u53e3\u5c06\u663e\u793a\u7a0b\u5e8f\u7684\u8f93\u51fa\u7ed3\u679c\u3002<\/p>\n<\/p>\n<p><p>\u4e8c\u3001\u4f7f\u7528IDE\u8fd0\u884cPython\u6587\u4ef6<\/p>\n<\/p>\n<p><p>2.1\u3001\u9009\u62e9\u5408\u9002\u7684IDE<\/p>\n<\/p>\n<p><p>IDE\uff08\u96c6\u6210\u5f00\u53d1\u73af\u5883\uff09\u662f\u4e00\u79cd\u7528\u4e8e\u8f6f\u4ef6\u5f00\u53d1\u7684\u5e94\u7528\u7a0b\u5e8f\uff0c\u5b83\u901a\u5e38\u5305\u542b\u4ee3\u7801\u7f16\u8f91\u5668\u3001\u8c03\u8bd5\u5668\u548c\u5176\u4ed6\u5de5\u5177\u3002\u5e38\u7528\u7684Python IDE\u5305\u62ecPyCharm\u3001Visual Studio Code\u3001Spyder\u548cJupyter Notebook\u7b49\u3002<\/p>\n<\/p>\n<p><p>2.2\u3001\u5b89\u88c5\u548c\u914d\u7f6eIDE<\/p>\n<\/p>\n<p><p>\u6839\u636e\u9009\u62e9\u7684IDE\uff0c\u4e0b\u8f7d\u5e76\u5b89\u88c5\u76f8\u5e94\u7684\u8f6f\u4ef6\u3002\u5927\u591a\u6570IDE\u5728\u5b89\u88c5\u8fc7\u7a0b\u4e2d\u4f1a\u81ea\u52a8\u68c0\u6d4bPython\u73af\u5883\u5e76\u8fdb\u884c\u914d\u7f6e\u3002\u5728\u67d0\u4e9b\u60c5\u51b5\u4e0b\uff0c\u53ef\u80fd\u9700\u8981\u624b\u52a8\u6307\u5b9aPython\u89e3\u91ca\u5668\u8def\u5f84\u3002<\/p>\n<\/p>\n<p><p>2.3\u3001\u5728IDE\u4e2d\u8fd0\u884cPython\u6587\u4ef6<\/p>\n<\/p>\n<p><p>\u6253\u5f00IDE\u540e\uff0c\u521b\u5efa\u4e00\u4e2a\u65b0\u7684Python\u6587\u4ef6\u6216\u6253\u5f00\u73b0\u6709\u7684\u6587\u4ef6\u3002\u5728\u7f16\u8f91\u5668\u4e2d\u7f16\u5199\u6216\u7f16\u8f91Python\u4ee3\u7801\u540e\uff0c\u901a\u5e38\u53ef\u4ee5\u901a\u8fc7\u70b9\u51fb\u201c\u8fd0\u884c\u201d\u6309\u94ae\u6216\u4f7f\u7528\u5feb\u6377\u952e\uff08\u4f8b\u5982F5\uff09\u6765\u6267\u884cPython\u6587\u4ef6\u3002\u5728IDE\u4e2d\u8fd0\u884cPython\u6587\u4ef6\u7684\u4f18\u70b9\u662f\uff0c\u5b83\u901a\u5e38\u63d0\u4f9b\u66f4\u4e30\u5bcc\u7684\u529f\u80fd\uff0c\u5982\u4ee3\u7801\u8865\u5168\u3001\u8bed\u6cd5\u9ad8\u4eae\u548c\u9519\u8bef\u63d0\u793a\u7b49\u3002<\/p>\n<\/p>\n<p><p>\u4e09\u3001\u4f7f\u7528\u811a\u672c\u6587\u4ef6\u6216\u4efb\u52a1\u8c03\u5ea6\u5de5\u5177\u8fd0\u884cPython\u6587\u4ef6<\/p>\n<\/p>\n<p><p>3.1\u3001\u4f7f\u7528\u6279\u5904\u7406\u6587\u4ef6\u6216Shell\u811a\u672c<\/p>\n<\/p>\n<p><p>\u5728Windows\u4e2d\uff0c\u53ef\u4ee5\u521b\u5efa\u4e00\u4e2a\u6279\u5904\u7406\u6587\u4ef6\uff08.bat\uff09\u6765\u8fd0\u884cPython\u6587\u4ef6\u3002\u5728\u6279\u5904\u7406\u6587\u4ef6\u4e2d\uff0c\u8f93\u5165\u547d\u4ee4\u201cpython \u6587\u4ef6\u540d.py\u201d\u5e76\u4fdd\u5b58\u3002\u53cc\u51fb\u6279\u5904\u7406\u6587\u4ef6\u5373\u53ef\u8fd0\u884cPython\u7a0b\u5e8f\u3002<\/p>\n<\/p>\n<p><p>\u5728Mac\u548cLinux\u4e2d\uff0c\u53ef\u4ee5\u521b\u5efa\u4e00\u4e2aShell\u811a\u672c\uff08.sh\uff09\u6765\u8fd0\u884cPython\u6587\u4ef6\u3002\u5728Shell\u811a\u672c\u4e2d\uff0c\u8f93\u5165\u547d\u4ee4\u201cpython3 \u6587\u4ef6\u540d.py\u201d\u5e76\u4fdd\u5b58\u3002\u7136\u540e\uff0c\u901a\u8fc7\u201cchmod +x \u6587\u4ef6\u540d.sh\u201d\u547d\u4ee4\u4e3a\u811a\u672c\u6587\u4ef6\u6dfb\u52a0\u6267\u884c\u6743\u9650\uff0c\u6700\u540e\u4f7f\u7528\u201c.\/\u6587\u4ef6\u540d.sh\u201d\u547d\u4ee4\u8fd0\u884c\u811a\u672c\u3002<\/p>\n<\/p>\n<p><p>3.2\u3001\u4f7f\u7528\u4efb\u52a1\u8c03\u5ea6\u5de5\u5177<\/p>\n<\/p>\n<p><p>\u5728Windows\u4e2d\uff0c\u53ef\u4ee5\u4f7f\u7528\u4efb\u52a1\u8ba1\u5212\u7a0b\u5e8f\uff08Task Scheduler\uff09\u6765\u5b9a\u671f\u8fd0\u884cPython\u6587\u4ef6\u3002\u521b\u5efa\u65b0\u4efb\u52a1\u65f6\uff0c\u6307\u5b9aPython\u89e3\u91ca\u5668\u548cPython\u6587\u4ef6\u7684\u8def\u5f84\uff0c\u5e76\u8bbe\u7f6e\u89e6\u53d1\u5668\u548c\u6761\u4ef6\u3002<\/p>\n<\/p>\n<p><p>\u5728Linux\u4e2d\uff0c\u53ef\u4ee5\u4f7f\u7528cron\u4f5c\u4e1a\u6765\u5b9a\u671f\u8fd0\u884cPython\u6587\u4ef6\u3002\u901a\u8fc7\u201ccrontab -e\u201d\u547d\u4ee4\u7f16\u8f91cron\u4f5c\u4e1a\uff0c\u6dfb\u52a0\u4e00\u884c\u201c* * * * * \/usr\/bin\/python3 \/path\/to\/\u6587\u4ef6\u540d.py\u201d\u6765\u6307\u5b9a\u8fd0\u884c\u65f6\u95f4\u548cPython\u6587\u4ef6\u8def\u5f84\u3002<\/p>\n<\/p>\n<p><p>\u56db\u3001\u4f7f\u7528\u5728\u7ebfPython\u7f16\u8bd1\u5668\u8fd0\u884cPython\u6587\u4ef6<\/p>\n<\/p>\n<p><p>4.1\u3001\u9009\u62e9\u5728\u7ebfPython\u7f16\u8bd1\u5668<\/p>\n<\/p>\n<p><p>\u5728\u7ebfPython\u7f16\u8bd1\u5668\u662f\u4e00\u79cd\u65e0\u9700\u5b89\u88c5Python\u73af\u5883\u5373\u53ef\u8fd0\u884cPython\u4ee3\u7801\u7684\u5de5\u5177\u3002\u5e38\u89c1\u7684\u5728\u7ebfPython\u7f16\u8bd1\u5668\u5305\u62ecReplit\u3001Google Colab\u548cPythonAnywhere\u7b49\u3002<\/p>\n<\/p>\n<p><p>4.2\u3001\u5728\u5728\u7ebf\u7f16\u8bd1\u5668\u4e2d\u8fd0\u884cPython\u6587\u4ef6<\/p>\n<\/p>\n<p><p>\u8bbf\u95ee\u5728\u7ebfPython\u7f16\u8bd1\u5668\u7f51\u7ad9\uff0c\u521b\u5efa\u4e00\u4e2a\u65b0\u7684Python\u9879\u76ee\u6216\u6253\u5f00\u73b0\u6709\u9879\u76ee\u3002\u5728\u7f16\u8f91\u5668\u4e2d\u7f16\u5199\u6216\u7c98\u8d34Python\u4ee3\u7801\uff0c\u7136\u540e\u70b9\u51fb\u201c\u8fd0\u884c\u201d\u6309\u94ae\u4ee5\u6267\u884c\u4ee3\u7801\u3002\u5728\u7ebfPython\u7f16\u8bd1\u5668\u901a\u5e38\u9002\u7528\u4e8e\u7b80\u5355\u7684\u6d4b\u8bd5\u548c\u6559\u5b66\u76ee\u7684\u3002<\/p>\n<\/p>\n<p><p>\u603b\u7ed3<\/p>\n<\/p>\n<p><p>\u8fd0\u884cPython\u6587\u4ef6\u7684\u65b9\u5f0f\u591a\u79cd\u591a\u6837\uff0c\u5177\u4f53\u9009\u62e9\u54ea\u79cd\u65b9\u6cd5\u53d6\u51b3\u4e8e\u4e2a\u4eba\u7684\u9700\u6c42\u548c\u73af\u5883\u3002\u5728\u547d\u4ee4\u884c\u4e2d\u8fd0\u884cPython\u6587\u4ef6\u662f\u6700\u57fa\u7840\u7684\u65b9\u5f0f\uff0c\u9002\u5408\u5feb\u901f\u6d4b\u8bd5\u548c\u8c03\u8bd5\u4ee3\u7801\uff1b\u4f7f\u7528IDE\u5219\u9002\u5408\u5f00\u53d1\u8f83\u590d\u6742\u7684\u9879\u76ee\uff0c\u63d0\u4f9b\u4e86\u66f4\u591a\u7684\u5f00\u53d1\u5de5\u5177\u548c\u529f\u80fd\uff1b\u811a\u672c\u6587\u4ef6\u548c\u4efb\u52a1\u8c03\u5ea6\u5de5\u5177\u9002\u5408\u9700\u8981\u81ea\u52a8\u5316\u8fd0\u884c\u7684\u573a\u666f\uff1b\u800c\u5728\u7ebfPython\u7f16\u8bd1\u5668\u5219\u63d0\u4f9b\u4e86\u4e00\u79cd\u65e0\u9700\u5b89\u88c5\u73af\u5883\u7684\u4fbf\u6377\u9014\u5f84\u3002\u901a\u8fc7\u7075\u6d3b\u8fd0\u7528\u8fd9\u4e9b\u65b9\u6cd5\uff0c\u53ef\u4ee5\u66f4\u9ad8\u6548\u5730\u8fdb\u884cPython\u5f00\u53d1\u548c\u5b66\u4e60\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u5728\u4e0d\u540c\u64cd\u4f5c\u7cfb\u7edf\u4e0a\u8fd0\u884cPython\u6587\u4ef6\uff1f<\/strong><br \/>\u5728Windows\u4e0a\uff0c\u53ef\u4ee5\u901a\u8fc7\u547d\u4ee4\u63d0\u793a\u7b26\uff08CMD\uff09\u6765\u8fd0\u884cPython\u6587\u4ef6\u3002\u9996\u5148\uff0c\u786e\u4fdd\u5df2\u6b63\u786e\u5b89\u88c5Python\u5e76\u5c06\u5176\u6dfb\u52a0\u5230\u7cfb\u7edf\u8def\u5f84\u4e2d\u3002\u5728CMD\u4e2d\uff0c\u4f7f\u7528cd\u547d\u4ee4\u5bfc\u822a\u5230Python\u6587\u4ef6\u6240\u5728\u76ee\u5f55\uff0c\u7136\u540e\u8f93\u5165<code>python filename.py<\/code>\uff08\u5c06filename\u66ff\u6362\u4e3a\u4f60\u7684\u6587\u4ef6\u540d\uff09\u6765\u8fd0\u884c\u6587\u4ef6\u3002\u5728macOS\u6216Linux\u4e0a\uff0c\u6253\u5f00\u7ec8\u7aef\uff0c\u7c7b\u4f3c\u5730\u4f7f\u7528cd\u547d\u4ee4\u8fdb\u5165\u6587\u4ef6\u76ee\u5f55\uff0c\u5e76\u6267\u884c\u76f8\u540c\u7684\u547d\u4ee4\u3002<\/p>\n<p><strong>\u5728\u8fd0\u884cPython\u6587\u4ef6\u65f6\u9047\u5230\u9519\u8bef\uff0c\u5e94\u8be5\u5982\u4f55\u6392\u67e5\uff1f<\/strong><br \/>\u9047\u5230\u9519\u8bef\u65f6\uff0c\u53ef\u4ee5\u4ed4\u7ec6\u67e5\u770b\u7ec8\u7aef\u6216\u547d\u4ee4\u63d0\u793a\u7b26\u4e2d\u663e\u793a\u7684\u9519\u8bef\u4fe1\u606f\u3002\u901a\u5e38\uff0c\u9519\u8bef\u4fe1\u606f\u4f1a\u6307\u660e\u51fa\u9519\u7684\u884c\u6570\u548c\u7c7b\u578b\uff0c\u5e2e\u52a9\u4f60\u627e\u5230\u95ee\u9898\u6240\u5728\u3002\u5e38\u89c1\u7684\u9519\u8bef\u5305\u62ec\u8bed\u6cd5\u9519\u8bef\u3001\u6a21\u5757\u672a\u627e\u5230\u9519\u8bef\u4ee5\u53ca\u6587\u4ef6\u8def\u5f84\u9519\u8bef\u3002\u68c0\u67e5\u4ee3\u7801\u903b\u8f91\u548c\u6587\u4ef6\u8def\u5f84\u662f\u5426\u6b63\u786e\uff0c\u5e76\u786e\u4fdd\u6240\u9700\u7684\u5e93\u5df2\u5b89\u88c5\u3002<\/p>\n<p><strong>\u5982\u4f55\u5728IDE\u4e2d\u8fd0\u884cPython\u6587\u4ef6\uff1f<\/strong><br \/>\u5728\u96c6\u6210\u5f00\u53d1\u73af\u5883\uff08IDE\uff09\u5982PyCharm\u6216VSCode\u4e2d\uff0c\u8fd0\u884cPython\u6587\u4ef6\u975e\u5e38\u7b80\u5355\u3002\u6253\u5f00IDE\uff0c\u52a0\u8f7d\u4f60\u7684Python\u6587\u4ef6\u540e\uff0c\u901a\u5e38\u53ef\u4ee5\u5728\u7f16\u8f91\u5668\u7684\u9876\u90e8\u627e\u5230\u201c\u8fd0\u884c\u201d\u6309\u94ae\uff0c\u70b9\u51fb\u5373\u53ef\u6267\u884c\u7a0b\u5e8f\u3002\u4e5f\u53ef\u4ee5\u4f7f\u7528\u5feb\u6377\u952e\uff08\u5982\u5728PyCharm\u4e2d\u662fShift + F10\uff09\u5feb\u901f\u8fd0\u884c\u6587\u4ef6\u3002\u6b64\u5916\uff0cIDE\u901a\u5e38\u4f1a\u63d0\u4f9b\u8c03\u8bd5\u5de5\u5177\uff0c\u5e2e\u52a9\u4f60\u66f4\u597d\u5730\u7406\u89e3\u4ee3\u7801\u6267\u884c\u8fc7\u7a0b\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u8fd0\u884cPython\u6587\u4ef6\u7684\u65b9\u6cd5\u6709\u591a\u79cd\uff0c\u4e3b\u8981\u5305\u62ec\u4ee5\u4e0b\u51e0\u79cd\uff1a\u4f7f\u7528\u547d\u4ee4\u884c\u3001\u4f7f\u7528IDE\uff08\u96c6\u6210\u5f00\u53d1\u73af\u5883\uff09\u3001\u4f7f\u7528\u811a\u672c\u6587\u4ef6\u6216\u4efb\u52a1 [&hellip;]","protected":false},"author":3,"featured_media":986923,"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\/986915"}],"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=986915"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/986915\/revisions"}],"predecessor-version":[{"id":986924,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/986915\/revisions\/986924"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/986923"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=986915"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=986915"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=986915"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}