{"id":951619,"date":"2024-12-27T01:06:28","date_gmt":"2024-12-26T17:06:28","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/951619.html"},"modified":"2024-12-27T01:06:30","modified_gmt":"2024-12-26T17:06:30","slug":"python-idle%e5%a6%82%e4%bd%95%e4%bd%bf%e7%94%a8","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/951619.html","title":{"rendered":"python idle\u5982\u4f55\u4f7f\u7528"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/25085754\/91571f9d-bf83-4d68-9db0-e7c2644a3d77.webp\" alt=\"python idle\u5982\u4f55\u4f7f\u7528\" \/><\/p>\n<p><p> <strong>Python IDLE\u662fPython\u5b98\u65b9\u81ea\u5e26\u7684\u96c6\u6210\u5f00\u53d1\u73af\u5883\uff0c\u4f7f\u7528\u7b80\u5355\u3001\u529f\u80fd\u9f50\u5168\uff0c\u662fPython\u521d\u5b66\u8005\u548c\u5f00\u53d1\u8005\u7684\u7406\u60f3\u9009\u62e9\u3002\u8981\u4f7f\u7528Python IDLE\uff0c\u4f60\u9700\u8981\u9996\u5148\u5b89\u88c5Python\u3001\u6253\u5f00IDLE\u754c\u9762\u3001\u7f16\u5199\u548c\u8fd0\u884cPython\u4ee3\u7801\u3002\u5b89\u88c5Python\u65f6\u4f1a\u81ea\u52a8\u5b89\u88c5IDLE\uff0c\u6253\u5f00IDLE\u540e\u53ef\u76f4\u63a5\u7f16\u5199\u548c\u8fd0\u884c\u4ee3\u7801\u3002<\/strong><\/p>\n<\/p>\n<p><p>Python IDLE\u63d0\u4f9b\u4e86\u4e00\u4e2a\u4ea4\u4e92\u5f0f\u7684\u5f00\u53d1\u73af\u5883\uff0c\u9002\u5408\u5feb\u901f\u6d4b\u8bd5\u4ee3\u7801\u7247\u6bb5\u548c\u5b66\u4e60Python\u8bed\u8a00\u3002\u53ef\u4ee5\u901a\u8fc7Python IDLE\u8f7b\u677e\u5730\u7f16\u5199Python\u811a\u672c\uff0c\u8fdb\u884c\u8c03\u8bd5\u548c\u6d4b\u8bd5\u3002IDLE\u652f\u6301\u8bed\u6cd5\u9ad8\u4eae\u3001\u81ea\u52a8\u7f29\u8fdb\u3001\u4ee3\u7801\u8865\u5168\u7b49\u529f\u80fd\uff0c\u63d0\u9ad8\u4e86\u7f16\u7a0b\u6548\u7387\u3002\u6b64\u5916\uff0cIDLE\u8fd8\u63d0\u4f9b\u4e86\u4e00\u4e2aPython Shell\uff0c\u5141\u8bb8\u7528\u6237\u6267\u884c\u5355\u884cPython\u547d\u4ee4\u5e76\u7acb\u5373\u67e5\u770b\u7ed3\u679c\uff0c\u8fd9\u5bf9\u4e8e\u5b66\u4e60\u548c\u7406\u89e3Python\u7684\u884c\u4e3a\u7279\u522b\u6709\u5e2e\u52a9\u3002<\/p>\n<\/p>\n<p><p>\u4e00\u3001\u5b89\u88c5Python\u548cIDLE<\/p>\n<\/p>\n<p><p>\u8981\u4f7f\u7528Python IDLE\uff0c\u9996\u5148\u9700\u8981\u5728\u8ba1\u7b97\u673a\u4e0a\u5b89\u88c5Python\u3002\u901a\u5e38\uff0cPython\u7684\u5b89\u88c5\u5305\u4e2d\u5df2\u7ecf\u5305\u542b\u4e86IDLE\u3002\u4ee5\u4e0b\u662f\u5982\u4f55\u5b89\u88c5Python\u548cIDLE\u7684\u6b65\u9aa4\uff1a<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u4e0b\u8f7dPython\u5b89\u88c5\u5305<\/strong>\uff1a\u8bbf\u95eePython\u7684\u5b98\u65b9\u7f51\u7ad9\uff0c\u4e0b\u8f7d\u9002\u5408\u60a8\u64cd\u4f5c\u7cfb\u7edf\u7684\u6700\u65b0\u7248\u672c\u7684Python\u5b89\u88c5\u5305\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u5b89\u88c5Python<\/strong>\uff1a\u8fd0\u884c\u4e0b\u8f7d\u7684\u5b89\u88c5\u5305\uff0c\u6309\u7167\u63d0\u793a\u8fdb\u884c\u5b89\u88c5\u3002\u786e\u4fdd\u52fe\u9009\u201cAdd Python to PATH\u201d\u9009\u9879\uff0c\u4ee5\u4fbf\u5728\u547d\u4ee4\u884c\u4e2d\u76f4\u63a5\u4f7f\u7528Python\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u9a8c\u8bc1\u5b89\u88c5<\/strong>\uff1a\u6253\u5f00\u547d\u4ee4\u63d0\u793a\u7b26\uff08Windows\uff09\u6216\u7ec8\u7aef\uff08macOS\/Linux\uff09\uff0c\u8f93\u5165<code>python --version<\/code>\uff0c\u9a8c\u8bc1Python\u662f\u5426\u5b89\u88c5\u6210\u529f\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u542f\u52a8IDLE<\/strong>\uff1a\u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u53ef\u4ee5\u5728\u5f00\u59cb\u83dc\u5355\uff08Windows\uff09\u6216\u5e94\u7528\u7a0b\u5e8f\u6587\u4ef6\u5939\uff08macOS\uff09\u4e2d\u627e\u5230\u5e76\u542f\u52a8IDLE\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u4e8c\u3001IDLE\u754c\u9762\u4ecb\u7ecd<\/p>\n<\/p>\n<p><p>\u542f\u52a8IDLE\u540e\uff0c\u4f1a\u770b\u5230\u4e00\u4e2a\u4ea4\u4e92\u5f0f\u7684Python Shell\u7a97\u53e3\u3002\u8fd9\u662f\u4e00\u4e2a\u5373\u65f6\u6267\u884c\u7684\u73af\u5883\uff0c\u9002\u5408\u8f93\u5165\u548c\u6d4b\u8bd5\u7b80\u5355\u7684Python\u547d\u4ee4\u3002IDLE\u7684\u754c\u9762\u4e3b\u8981\u7531\u4ee5\u4e0b\u51e0\u4e2a\u90e8\u5206\u7ec4\u6210\uff1a<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>Python Shell<\/strong>\uff1a\u8fd9\u662fIDLE\u7684\u4ea4\u4e92\u5f0f\u7a97\u53e3\uff0c\u5141\u8bb8\u60a8\u8f93\u5165\u5355\u884c\u547d\u4ee4\u5e76\u7acb\u5373\u67e5\u770b\u7ed3\u679c\u3002\u5b83\u975e\u5e38\u9002\u5408\u6d4b\u8bd5\u4ee3\u7801\u7247\u6bb5\u548c\u5b66\u4e60Python\u8bed\u6cd5\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u7f16\u8f91\u5668\u7a97\u53e3<\/strong>\uff1a\u7528\u4e8e\u7f16\u5199\u591a\u884cPython\u811a\u672c\u3002\u53ef\u4ee5\u901a\u8fc7\u83dc\u5355\u680f\u4e2d\u7684\u201cFile\u201d\u9009\u9879\u521b\u5efa\u65b0\u6587\u4ef6\u6216\u6253\u5f00\u73b0\u6709\u6587\u4ef6\u3002\u7f16\u8f91\u5668\u7a97\u53e3\u63d0\u4f9b\u4e86\u8bed\u6cd5\u9ad8\u4eae\u3001\u81ea\u52a8\u7f29\u8fdb\u7b49\u529f\u80fd\uff0c\u5e2e\u52a9\u7f16\u5199\u66f4\u6e05\u6670\u7684\u4ee3\u7801\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u83dc\u5355\u680f<\/strong>\uff1a\u63d0\u4f9b\u4e86\u5404\u79cd\u9009\u9879\u6765\u7ba1\u7406\u6587\u4ef6\u3001\u7f16\u8f91\u4ee3\u7801\u3001\u8fd0\u884c\u811a\u672c\u548c\u914d\u7f6eIDLE\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u4e09\u3001\u7f16\u5199\u548c\u8fd0\u884cPython\u4ee3\u7801<\/p>\n<\/p>\n<p><p>\u5728IDLE\u4e2d\u7f16\u5199\u548c\u8fd0\u884cPython\u4ee3\u7801\u975e\u5e38\u7b80\u5355\u3002\u4ee5\u4e0b\u662f\u5982\u4f55\u5728IDLE\u4e2d\u7f16\u5199\u548c\u8fd0\u884c\u4ee3\u7801\u7684\u6b65\u9aa4\uff1a<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u6253\u5f00\u7f16\u8f91\u5668\u7a97\u53e3<\/strong>\uff1a\u70b9\u51fb\u201cFile\u201d\u83dc\u5355\uff0c\u9009\u62e9\u201cNew File\u201d\u4ee5\u6253\u5f00\u4e00\u4e2a\u65b0\u7684\u7f16\u8f91\u5668\u7a97\u53e3\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u7f16\u5199\u4ee3\u7801<\/strong>\uff1a\u5728\u7f16\u8f91\u5668\u7a97\u53e3\u4e2d\u8f93\u5165Python\u4ee3\u7801\u3002\u4f8b\u5982\uff0c\u8f93\u5165\u4ee5\u4e0b\u7b80\u5355\u7684Python\u7a0b\u5e8f\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">print(&quot;Hello, World!&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u4fdd\u5b58\u6587\u4ef6<\/strong>\uff1a\u70b9\u51fb\u201cFile\u201d\u83dc\u5355\uff0c\u9009\u62e9\u201cSave\u201d\u6216\u201cSave As\u201d\u5c06\u4ee3\u7801\u4fdd\u5b58\u4e3a\u4e00\u4e2a.py\u6587\u4ef6\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u8fd0\u884c\u4ee3\u7801<\/strong>\uff1a\u70b9\u51fb\u201cRun\u201d\u83dc\u5355\uff0c\u9009\u62e9\u201cRun Module\u201d\u6216\u6309\u4e0bF5\u952e\uff0c\u8fd0\u884c\u7a0b\u5e8f\u3002\u7a0b\u5e8f\u7684\u8f93\u51fa\u5c06\u663e\u793a\u5728Python Shell\u7a97\u53e3\u4e2d\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u56db\u3001IDLE\u7684\u529f\u80fd\u548c\u914d\u7f6e<\/p>\n<\/p>\n<p><p>Python IDLE\u4e0d\u4ec5\u63d0\u4f9b\u4e86\u4e00\u4e2a\u7b80\u5355\u7684\u754c\u9762\u6765\u7f16\u5199\u548c\u8fd0\u884cPython\u4ee3\u7801\uff0c\u8fd8\u63d0\u4f9b\u4e86\u8bb8\u591a\u6709\u7528\u7684\u529f\u80fd\u6765\u63d0\u9ad8\u5f00\u53d1\u6548\u7387\u3002<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u8bed\u6cd5\u9ad8\u4eae\u548c\u81ea\u52a8\u8865\u5168<\/strong>\uff1aIDLE\u4f1a\u5bf9Python\u4ee3\u7801\u8fdb\u884c\u8bed\u6cd5\u9ad8\u4eae\u663e\u793a\uff0c\u5e2e\u52a9\u7528\u6237\u66f4\u597d\u5730\u7406\u89e3\u4ee3\u7801\u7ed3\u6784\u3002\u8f93\u5165\u90e8\u5206\u4ee3\u7801\u540e\uff0cIDLE\u4f1a\u63d0\u4f9b\u81ea\u52a8\u8865\u5168\u7684\u5efa\u8bae\uff0c\u5e2e\u52a9\u5feb\u901f\u8f93\u5165\u4ee3\u7801\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u8c03\u8bd5\u529f\u80fd<\/strong>\uff1aIDLE\u63d0\u4f9b\u4e86\u4e00\u4e2a\u7b80\u5355\u7684\u8c03\u8bd5\u5668\uff0c\u53ef\u4ee5\u8bbe\u7f6e\u65ad\u70b9\u3001\u9010\u884c\u6267\u884c\u4ee3\u7801\u3001\u67e5\u770b\u53d8\u91cf\u503c\u7b49\uff0c\u5e2e\u52a9\u67e5\u627e\u548c\u4fee\u590d\u4ee3\u7801\u4e2d\u7684\u9519\u8bef\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u81ea\u5b9a\u4e49\u914d\u7f6e<\/strong>\uff1a\u53ef\u4ee5\u901a\u8fc7\u201cOptions\u201d\u83dc\u5355\u4e2d\u7684\u201cConfigure IDLE\u201d\u9009\u9879\u81ea\u5b9a\u4e49IDLE\u7684\u5916\u89c2\u548c\u884c\u4e3a\uff0c\u4f8b\u5982\u66f4\u6539\u5b57\u4f53\u3001\u989c\u8272\u4e3b\u9898\u7b49\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u4e94\u3001\u4f7f\u7528IDLE\u8fdb\u884c\u8c03\u8bd5<\/p>\n<\/p>\n<p><p>\u8c03\u8bd5\u662f\u7f16\u7a0b\u8fc7\u7a0b\u4e2d\u975e\u5e38\u91cd\u8981\u7684\u4e00\u90e8\u5206\u3002IDLE\u63d0\u4f9b\u4e86\u4e00\u4e9b\u57fa\u672c\u7684\u8c03\u8bd5\u5de5\u5177\uff0c\u53ef\u4ee5\u5e2e\u52a9\u60a8\u53d1\u73b0\u548c\u4fee\u590d\u4ee3\u7801\u4e2d\u7684\u9519\u8bef\u3002<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u8bbe\u7f6e\u65ad\u70b9<\/strong>\uff1a\u5728\u7f16\u8f91\u5668\u7a97\u53e3\u4e2d\u70b9\u51fb\u9700\u8981\u8bbe\u7f6e\u65ad\u70b9\u7684\u884c\uff0c\u6309\u4e0bCtrl+B\u952e\uff0c\u8bbe\u7f6e\u65ad\u70b9\u3002\u65ad\u70b9\u7528\u4e8e\u6682\u505c\u7a0b\u5e8f\u7684\u6267\u884c\uff0c\u4ee5\u4fbf\u68c0\u67e5\u7a0b\u5e8f\u7684\u72b6\u6001\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u542f\u52a8\u8c03\u8bd5\u5668<\/strong>\uff1a\u70b9\u51fb\u201cDebug\u201d\u83dc\u5355\uff0c\u9009\u62e9\u201cDebugger\u201d\u9009\u9879\uff0c\u542f\u52a8\u8c03\u8bd5\u5668\u3002\u6b64\u65f6\uff0c\u8fd0\u884c\u7a0b\u5e8f\u65f6\u5c06\u8fdb\u5165\u8c03\u8bd5\u6a21\u5f0f\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u9010\u884c\u6267\u884c\u4ee3\u7801<\/strong>\uff1a\u5728\u8c03\u8bd5\u6a21\u5f0f\u4e0b\uff0c\u53ef\u4ee5\u9010\u884c\u6267\u884c\u4ee3\u7801\uff0c\u67e5\u770b\u6bcf\u4e00\u884c\u4ee3\u7801\u7684\u6267\u884c\u7ed3\u679c\u548c\u53d8\u91cf\u7684\u503c\u3002\u8fd9\u6709\u52a9\u4e8e\u7406\u89e3\u7a0b\u5e8f\u7684\u6267\u884c\u6d41\u7a0b\uff0c\u53d1\u73b0\u6f5c\u5728\u7684\u95ee\u9898\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u516d\u3001IDLE\u7684\u9ad8\u7ea7\u529f\u80fd<\/p>\n<\/p>\n<p><p>\u9664\u4e86\u57fa\u672c\u7684\u4ee3\u7801\u7f16\u8f91\u548c\u8c03\u8bd5\u529f\u80fd\uff0cIDLE\u8fd8\u63d0\u4f9b\u4e86\u4e00\u4e9b\u9ad8\u7ea7\u529f\u80fd\uff0c\u53ef\u4ee5\u5e2e\u52a9\u63d0\u9ad8\u5f00\u53d1\u6548\u7387\u548c\u4ee3\u7801\u8d28\u91cf\u3002<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u811a\u672c\u7684\u547d\u4ee4\u884c\u53c2\u6570<\/strong>\uff1a\u53ef\u4ee5\u5728IDLE\u4e2d\u901a\u8fc7\u201cRun\u201d\u83dc\u5355\u4e2d\u7684\u201cRun Module\u201d\u9009\u9879\uff0c\u914d\u7f6e\u811a\u672c\u7684\u547d\u4ee4\u884c\u53c2\u6570\u3002\u8fd9\u5bf9\u4e8e\u6d4b\u8bd5\u9700\u8981\u53c2\u6570\u8f93\u5165\u7684\u811a\u672c\u975e\u5e38\u6709\u7528\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u6269\u5c55\u548c\u63d2\u4ef6<\/strong>\uff1aIDLE\u652f\u6301\u901a\u8fc7\u7b2c\u4e09\u65b9\u63d2\u4ef6\u6269\u5c55\u5176\u529f\u80fd\u3002\u4f8b\u5982\uff0c\u53ef\u4ee5\u5b89\u88c5\u4e00\u4e9b\u63d2\u4ef6\u6765\u589e\u5f3aIDLE\u7684\u4ee3\u7801\u5206\u6790\u548c\u81ea\u52a8\u5316\u6d4b\u8bd5\u529f\u80fd\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u4e0e\u5916\u90e8\u5de5\u5177\u7684\u96c6\u6210<\/strong>\uff1a\u867d\u7136IDLE\u662f\u4e00\u4e2a\u8f7b\u91cf\u7ea7\u7684\u5f00\u53d1\u73af\u5883\uff0c\u4f46\u53ef\u4ee5\u4e0e\u5176\u4ed6\u5de5\u5177\u7ed3\u5408\u4f7f\u7528\uff0c\u5982Git\u8fdb\u884c\u7248\u672c\u63a7\u5236\u3001Jupyter Notebook\u8fdb\u884c\u6570\u636e\u5206\u6790\u7b49\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u4e03\u3001IDLE\u7684\u4f18\u7f3a\u70b9<\/p>\n<\/p>\n<p><p>IDLE\u4f5c\u4e3aPython\u81ea\u5e26\u7684\u5f00\u53d1\u73af\u5883\uff0c\u5177\u6709\u4e00\u4e9b\u72ec\u7279\u7684\u4f18\u70b9\u548c\u5c40\u9650\u6027\u3002<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u4f18\u70b9<\/strong>\uff1a<\/p>\n<\/p>\n<ul>\n<li><strong>\u6613\u4e8e\u4f7f\u7528<\/strong>\uff1aIDLE\u754c\u9762\u7b80\u5355\u660e\u4e86\uff0c\u9002\u5408\u521d\u5b66\u8005\u4f7f\u7528\u3002<\/li>\n<li><strong>\u65e0\u9700\u989d\u5916\u5b89\u88c5<\/strong>\uff1aIDLE\u968fPython\u5b89\u88c5\u5305\u4e00\u8d77\u63d0\u4f9b\uff0c\u65e0\u9700\u5355\u72ec\u4e0b\u8f7d\u548c\u5b89\u88c5\u3002<\/li>\n<li><strong>\u57fa\u672c\u529f\u80fd\u9f50\u5168<\/strong>\uff1a\u63d0\u4f9b\u4e86\u7f16\u5199\u3001\u8fd0\u884c\u3001\u8c03\u8bd5Python\u4ee3\u7801\u6240\u9700\u7684\u57fa\u672c\u529f\u80fd\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\n<p><strong>\u7f3a\u70b9<\/strong>\uff1a<\/p>\n<\/p>\n<ul>\n<li><strong>\u529f\u80fd\u6709\u9650<\/strong>\uff1a\u4e0e\u5176\u4ed6\u4e13\u4e1a\u7684IDE\uff08\u5982PyCharm\u3001VS Code\uff09\u76f8\u6bd4\uff0cIDLE\u7684\u529f\u80fd\u76f8\u5bf9\u7b80\u5355\uff0c\u7f3a\u4e4f\u4e00\u4e9b\u9ad8\u7ea7\u529f\u80fd\u3002<\/li>\n<li><strong>\u6027\u80fd\u95ee\u9898<\/strong>\uff1a\u5904\u7406\u5927\u578b\u9879\u76ee\u6216\u590d\u6742\u4ee3\u7801\u65f6\uff0cIDLE\u53ef\u80fd\u4f1a\u51fa\u73b0\u6027\u80fd\u74f6\u9888\u3002<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<p><p>\u516b\u3001\u5e38\u89c1\u95ee\u9898\u53ca\u89e3\u51b3\u65b9\u6848<\/p>\n<\/p>\n<p><p>\u5728\u4f7f\u7528IDLE\u7684\u8fc7\u7a0b\u4e2d\uff0c\u53ef\u80fd\u4f1a\u9047\u5230\u4e00\u4e9b\u5e38\u89c1\u95ee\u9898\u3002\u4ee5\u4e0b\u662f\u4e00\u4e9b\u5e38\u89c1\u95ee\u9898\u53ca\u5176\u89e3\u51b3\u65b9\u6848\uff1a<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>IDLE\u65e0\u6cd5\u542f\u52a8<\/strong>\uff1a\u786e\u4fddPython\u6b63\u786e\u5b89\u88c5\uff0c\u5e76\u68c0\u67e5\u7cfb\u7edf\u73af\u5883\u53d8\u91cf\u4e2d\u662f\u5426\u5305\u542bPython\u8def\u5f84\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u8bed\u6cd5\u9ad8\u4eae\u5931\u6548<\/strong>\uff1a\u5c1d\u8bd5\u91cd\u65b0\u542f\u52a8IDLE\uff0c\u6216\u68c0\u67e5\u201cConfigure IDLE\u201d\u4e2d\u7684\u914d\u7f6e\u9009\u9879\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u4ee3\u7801\u8fd0\u884c\u62a5\u9519<\/strong>\uff1a\u4ed4\u7ec6\u68c0\u67e5\u4ee3\u7801\u4e2d\u7684\u8bed\u6cd5\u9519\u8bef\uff0c\u4f7f\u7528\u8c03\u8bd5\u529f\u80fd\u9010\u884c\u68c0\u67e5\u4ee3\u7801\u6267\u884c\u8fc7\u7a0b\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u901a\u8fc7\u4e0a\u9762\u7684\u4ecb\u7ecd\uff0c\u5e0c\u671b\u60a8\u5bf9\u5982\u4f55\u4f7f\u7528Python IDLE\u6709\u4e86\u66f4\u6df1\u5165\u7684\u4e86\u89e3\u3002IDLE\u662f\u4e00\u4e2a\u7b80\u5355\u800c\u5f3a\u5927\u7684\u5de5\u5177\uff0c\u9002\u5408\u5b66\u4e60Python\u548c\u5feb\u901f\u5f00\u53d1\u5c0f\u578b\u9879\u76ee\u3002\u5728\u719f\u7ec3\u638c\u63e1IDLE\u540e\uff0c\u53ef\u4ee5\u6839\u636e\u9700\u8981\u9009\u62e9\u66f4\u4e13\u4e1a\u7684\u5f00\u53d1\u5de5\u5177\uff0c\u4ee5\u63d0\u9ad8\u5f00\u53d1\u6548\u7387\u548c\u4ee3\u7801\u8d28\u91cf\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>Python IDLE\u662f\u4ec0\u4e48\uff1f\u5b83\u6709\u4ec0\u4e48\u4f18\u52bf\uff1f<\/strong><br \/>Python IDLE\u662fPython\u81ea\u5e26\u7684\u96c6\u6210\u5f00\u53d1\u73af\u5883\uff0c\u4e3b\u8981\u7528\u4e8e\u7f16\u5199\u548c\u8c03\u8bd5Python\u4ee3\u7801\u3002\u5b83\u7684\u4f18\u52bf\u5728\u4e8e\u754c\u9762\u53cb\u597d\uff0c\u6613\u4e8e\u4e0a\u624b\uff0c\u7279\u522b\u9002\u5408\u521d\u5b66\u8005\u3002IDLE\u63d0\u4f9b\u4e86\u4ea4\u4e92\u5f0f\u89e3\u91ca\u5668\uff0c\u53ef\u4ee5\u5feb\u901f\u6d4b\u8bd5\u4ee3\u7801\u7247\u6bb5\uff0c\u6b64\u5916\u8fd8\u652f\u6301\u57fa\u672c\u7684\u4ee3\u7801\u9ad8\u4eae\u548c\u81ea\u52a8\u7f29\u8fdb\u529f\u80fd\uff0c\u4f7f\u5f97\u7f16\u5199\u4ee3\u7801\u66f4\u4e3a\u9ad8\u6548\u3002<\/p>\n<p><strong>\u5982\u4f55\u5728Python IDLE\u4e2d\u521b\u5efa\u548c\u4fdd\u5b58\u811a\u672c\u6587\u4ef6\uff1f<\/strong><br \/>\u5728Python IDLE\u4e2d\uff0c\u521b\u5efa\u811a\u672c\u6587\u4ef6\u975e\u5e38\u7b80\u5355\u3002\u7528\u6237\u53ea\u9700\u70b9\u51fb\u201cFile\u201d\u83dc\u5355\uff0c\u9009\u62e9\u201cNew File\u201d\uff0c\u8fd9\u5c06\u6253\u5f00\u4e00\u4e2a\u65b0\u7684\u7f16\u8f91\u7a97\u53e3\u3002\u5728\u8fd9\u91cc\uff0c\u53ef\u4ee5\u8f93\u5165Python\u4ee3\u7801\u3002\u5b8c\u6210\u540e\uff0c\u9009\u62e9\u201cFile\u201d\u83dc\u5355\u4e0b\u7684\u201cSave\u201d\u6216\u201cSave As\u201d\uff0c\u4e3a\u6587\u4ef6\u547d\u540d\u5e76\u9009\u62e9\u4fdd\u5b58\u4f4d\u7f6e\uff0c\u786e\u4fdd\u6587\u4ef6\u6269\u5c55\u540d\u4e3a\u201c.py\u201d\uff0c\u8fd9\u6837\u5c31\u53ef\u4ee5\u5728IDLE\u4e2d\u8f7b\u677e\u4fdd\u5b58\u548c\u7ba1\u7406\u811a\u672c\u6587\u4ef6\u3002<\/p>\n<p><strong>\u5982\u4f55\u5728Python IDLE\u4e2d\u8c03\u8bd5\u4ee3\u7801\uff1f<\/strong><br \/>\u8c03\u8bd5\u4ee3\u7801\u7684\u8fc7\u7a0b\u53ef\u4ee5\u901a\u8fc7Python IDLE\u7684\u4ea4\u4e92\u5f0f\u7a97\u53e3\u6765\u5b8c\u6210\u3002\u7528\u6237\u53ef\u4ee5\u9010\u884c\u6267\u884c\u4ee3\u7801\uff0c\u5e76\u901a\u8fc7\u5728\u7a97\u53e3\u4e2d\u8f93\u5165\u53d8\u91cf\u540d\u67e5\u770b\u5176\u503c\uff0c\u5e2e\u52a9\u627e\u51fa\u6f5c\u5728\u9519\u8bef\u3002\u6b64\u5916\uff0cIDLE\u63d0\u4f9b\u4e86\u201cDebugger\u201d\u9009\u9879\uff0c\u53ef\u4ee5\u5728\u201cRun\u201d\u83dc\u5355\u4e2d\u627e\u5230\u3002\u542f\u7528\u8c03\u8bd5\u5668\u540e\uff0c\u53ef\u4ee5\u8bbe\u7f6e\u65ad\u70b9\uff0c\u9010\u6b65\u6267\u884c\u4ee3\u7801\uff0c\u76d1\u63a7\u53d8\u91cf\u53d8\u5316\uff0c\u4ece\u800c\u66f4\u6709\u6548\u5730\u8bc6\u522b\u548c\u89e3\u51b3\u95ee\u9898\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"Python IDLE\u662fPython\u5b98\u65b9\u81ea\u5e26\u7684\u96c6\u6210\u5f00\u53d1\u73af\u5883\uff0c\u4f7f\u7528\u7b80\u5355\u3001\u529f\u80fd\u9f50\u5168\uff0c\u662fPython\u521d\u5b66\u8005\u548c\u5f00\u53d1\u8005\u7684 [&hellip;]","protected":false},"author":3,"featured_media":951620,"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\/951619"}],"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=951619"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/951619\/revisions"}],"predecessor-version":[{"id":951621,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/951619\/revisions\/951621"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/951620"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=951619"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=951619"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=951619"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}