{"id":980256,"date":"2024-12-27T06:53:06","date_gmt":"2024-12-26T22:53:06","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/980256.html"},"modified":"2024-12-27T06:53:08","modified_gmt":"2024-12-26T22:53:08","slug":"%e5%a6%82%e4%bd%95%e6%89%be%e5%88%b0python%e7%9a%84idle","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/980256.html","title":{"rendered":"\u5982\u4f55\u627e\u5230python\u7684idle"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/24205734\/d9ea6992-961d-4709-991c-1a6c80d1b00d.webp\" alt=\"\u5982\u4f55\u627e\u5230python\u7684idle\" \/><\/p>\n<p><p> <strong>\u8981\u627e\u5230Python\u7684IDLE\uff0c\u53ef\u4ee5\u901a\u8fc7\u4ee5\u4e0b\u65b9\u6cd5\uff1a\u5728\u64cd\u4f5c\u7cfb\u7edf\u4e2d\u641c\u7d22Python\u7684\u5b89\u88c5\u76ee\u5f55\u3001\u4f7f\u7528\u547d\u4ee4\u884c\u542f\u52a8IDLE\u3001\u901a\u8fc7\u96c6\u6210\u5f00\u53d1\u73af\u5883\uff08IDE\uff09\u542f\u52a8IDLE\u3002<\/strong> \u5176\u4e2d\uff0c\u6700\u5e38\u7528\u7684\u65b9\u6cd5\u662f\u76f4\u63a5\u5728\u64cd\u4f5c\u7cfb\u7edf\u4e2d\u641c\u7d22Python\u7684\u5b89\u88c5\u76ee\u5f55\uff0c\u56e0\u4e3a\u8fd9\u901a\u5e38\u662f\u6700\u7b80\u5355\u548c\u76f4\u63a5\u7684\u65b9\u6cd5\u3002\u4ee5\u4e0b\u662f\u8be6\u7ec6\u6b65\u9aa4\uff1a\u5728Windows\u7cfb\u7edf\u4e2d\uff0c\u53ef\u4ee5\u901a\u8fc7\u5f00\u59cb\u83dc\u5355\u627e\u5230Python\u7684\u5b89\u88c5\u76ee\u5f55\uff0c\u901a\u5e38\u4f1a\u5305\u542b\u4e00\u4e2a\u540d\u4e3a\u201cIDLE (Python x.x)\u201d\u7684\u5feb\u6377\u65b9\u5f0f\uff1b\u5728macOS\u548cLinux\u7cfb\u7edf\u4e2d\uff0c\u901a\u5e38\u53ef\u4ee5\u901a\u8fc7\u7ec8\u7aef\u4f7f\u7528\u547d\u4ee4\u884c\u542f\u52a8IDLE\uff0c\u4f8b\u5982\u8f93\u5165\u201cidle\u201d\u547d\u4ee4\uff1b\u5982\u679c\u4f7f\u7528\u7684\u662f\u96c6\u6210\u5f00\u53d1\u73af\u5883\uff08IDE\uff09\uff0c\u5982PyCharm\u6216VSCode\uff0c\u53ef\u4ee5\u901a\u8fc7IDE\u7684\u83dc\u5355\u9009\u9879\u627e\u5230\u5e76\u542f\u52a8IDLE\u3002<\/p>\n<\/p>\n<p><p>\u4e00\u3001\u5728\u64cd\u4f5c\u7cfb\u7edf\u4e2d\u641c\u7d22Python\u7684\u5b89\u88c5\u76ee\u5f55<\/p>\n<\/p>\n<p><p>\u5728Windows\u3001macOS\u548cLinux\u7cfb\u7edf\u4e2d\uff0cPython\u7684IDLE\u901a\u5e38\u4f1a\u88ab\u5b89\u88c5\u5728Python\u7684\u4e3b\u76ee\u5f55\u4e2d\u3002\u627e\u5230\u8fd9\u4e2a\u76ee\u5f55\u662f\u542f\u52a8IDLE\u7684\u7b2c\u4e00\u6b65\u3002<\/p>\n<\/p>\n<ol>\n<li><strong>Windows\u7cfb\u7edf<\/strong><\/li>\n<\/ol>\n<p><p>\u5728Windows\u7cfb\u7edf\u4e2d\uff0cPython\u7684IDLE\u53ef\u4ee5\u901a\u8fc7\u5f00\u59cb\u83dc\u5355\u627e\u5230\u3002\u5728\u5b89\u88c5Python\u65f6\uff0c\u4e00\u822c\u4f1a\u521b\u5efa\u4e00\u4e2a\u540d\u4e3a\u201cPython x.x\u201d\u7684\u76ee\u5f55\uff0c\u5176\u4e2dx.x\u4ee3\u8868Python\u7684\u7248\u672c\u53f7\u3002\u5728\u8fd9\u4e2a\u76ee\u5f55\u4e2d\uff0c\u901a\u5e38\u4f1a\u6709\u4e00\u4e2a\u540d\u4e3a\u201cIDLE (Python x.x)\u201d\u7684\u5feb\u6377\u65b9\u5f0f\u3002<\/p>\n<\/p>\n<p><p>\u8981\u627e\u5230\u8fd9\u4e2a\u76ee\u5f55\uff0c\u4f60\u53ef\u4ee5\u6309\u4e0bWindows\u952e\uff0c\u8f93\u5165\u201cPython\u201d\uff0c\u7136\u540e\u5728\u7ed3\u679c\u5217\u8868\u4e2d\u67e5\u627e\u201cIDLE (Python x.x)\u201d\u3002\u70b9\u51fb\u8fd9\u4e2a\u5feb\u6377\u65b9\u5f0f\uff0cIDLE\u5c06\u4f1a\u88ab\u542f\u52a8\u3002<\/p>\n<\/p>\n<ol start=\"2\">\n<li><strong>macOS\u7cfb\u7edf<\/strong><\/li>\n<\/ol>\n<p><p>\u5728macOS\u4e2d\uff0cPython\u901a\u5e38\u9884\u88c5\u5728\u7cfb\u7edf\u4e2d\uff0c\u6216\u8005\u53ef\u4ee5\u901a\u8fc7Homebrew\u7b49\u5305\u7ba1\u7406\u5de5\u5177\u5b89\u88c5\u3002\u5728Finder\u4e2d\uff0c\u4f60\u53ef\u4ee5\u5bfc\u822a\u5230\u201c\u5e94\u7528\u7a0b\u5e8f\u201d\u6587\u4ef6\u5939\uff0c\u67e5\u627ePython\u5b89\u88c5\u7684\u5177\u4f53\u4f4d\u7f6e\u3002\u5982\u679c\u901a\u8fc7Homebrew\u5b89\u88c5Python\uff0c\u901a\u5e38\u4f1a\u5728\u201c\/usr\/local\/Cellar\u201d\u76ee\u5f55\u4e0b\u627e\u5230Python\u3002<\/p>\n<\/p>\n<p><p>\u5728\u5b89\u88c5Python\u65f6\uff0cIDLE\u4f1a\u81ea\u52a8\u5b89\u88c5\uff0c\u4f60\u53ef\u4ee5\u901a\u8fc7\u7ec8\u7aef\u542f\u52a8\u5b83\u3002\u6253\u5f00\u7ec8\u7aef\uff0c\u8f93\u5165\u201cidle\u201d\u547d\u4ee4\uff0c\u7136\u540e\u6309\u4e0b\u56de\u8f66\u952e\uff0cIDLE\u5c06\u4f1a\u542f\u52a8\u3002<\/p>\n<\/p>\n<ol start=\"3\">\n<li><strong>Linux\u7cfb\u7edf<\/strong><\/li>\n<\/ol>\n<p><p>\u5728Linux\u7cfb\u7edf\u4e2d\uff0cPython\u901a\u5e38\u4e5f\u662f\u9884\u88c5\u7684\uff0c\u6216\u8005\u53ef\u4ee5\u901a\u8fc7\u5305\u7ba1\u7406\u5de5\u5177\uff08\u5982apt\u3001yum\u7b49\uff09\u5b89\u88c5\u3002\u5728\u7ec8\u7aef\u4e2d\u8f93\u5165\u201cwhich python\u201d\u6216\u201cwhich idle\u201d\u547d\u4ee4\uff0c\u53ef\u4ee5\u67e5\u627e\u5230Python\u548cIDLE\u7684\u5b89\u88c5\u8def\u5f84\u3002<\/p>\n<\/p>\n<p><p>\u4f60\u53ef\u4ee5\u901a\u8fc7\u547d\u4ee4\u884c\u542f\u52a8IDLE\uff0c\u5177\u4f53\u6b65\u9aa4\u4e0emacOS\u7c7b\u4f3c\u3002\u6253\u5f00\u7ec8\u7aef\uff0c\u8f93\u5165\u201cidle\u201d\u547d\u4ee4\uff0c\u7136\u540e\u6309\u4e0b\u56de\u8f66\u952e\uff0cIDLE\u5c06\u4f1a\u542f\u52a8\u3002\u5982\u679cIDLE\u6ca1\u6709\u5b89\u88c5\uff0c\u53ef\u4ee5\u901a\u8fc7\u5305\u7ba1\u7406\u5de5\u5177\u5b89\u88c5\uff0c\u4f8b\u5982\u5728Debian\/Ubuntu\u7cfb\u7edf\u4e2d\u4f7f\u7528\u201csudo apt-get install idle\u201d\u547d\u4ee4\u8fdb\u884c\u5b89\u88c5\u3002<\/p>\n<\/p>\n<p><p>\u4e8c\u3001\u4f7f\u7528\u547d\u4ee4\u884c\u542f\u52a8IDLE<\/p>\n<\/p>\n<p><p>\u5728\u547d\u4ee4\u884c\u4e2d\u542f\u52a8IDLE\u662f\u4e00\u4e2a\u901a\u7528\u7684\u65b9\u6cd5\uff0c\u9002\u7528\u4e8e\u591a\u79cd\u64cd\u4f5c\u7cfb\u7edf\u3002\u65e0\u8bba\u662f\u5728Windows\u3001macOS\u8fd8\u662fLinux\u7cfb\u7edf\u4e2d\uff0c\u53ea\u8981IDLE\u5df2\u7ecf\u5b89\u88c5\uff0c\u4f60\u90fd\u53ef\u4ee5\u901a\u8fc7\u547d\u4ee4\u884c\u542f\u52a8\u5b83\u3002<\/p>\n<\/p>\n<ol>\n<li><strong>Windows\u547d\u4ee4\u884c<\/strong><\/li>\n<\/ol>\n<p><p>\u5728Windows\u7cfb\u7edf\u4e2d\uff0c\u6309\u4e0bWindows\u952e\uff0c\u8f93\u5165\u201ccmd\u201d\uff0c\u7136\u540e\u6309\u56de\u8f66\u952e\uff0c\u6253\u5f00\u547d\u4ee4\u63d0\u793a\u7b26\u3002\u5728\u547d\u4ee4\u63d0\u793a\u7b26\u4e2d\uff0c\u8f93\u5165\u201cpython -m idlelib\u201d\u547d\u4ee4\uff0c\u7136\u540e\u6309\u4e0b\u56de\u8f66\u952e\uff0cIDLE\u5c06\u4f1a\u542f\u52a8\u3002<\/p>\n<\/p>\n<p><p>\u8fd9\u4e2a\u65b9\u6cd5\u7684\u4f18\u70b9\u662f\u7b80\u5355\u76f4\u63a5\uff0c\u5e76\u4e14\u4e0d\u9700\u8981\u5bfc\u822a\u5230\u7279\u5b9a\u7684\u76ee\u5f55\u3002\u5728\u67d0\u4e9b\u60c5\u51b5\u4e0b\uff0c\u5982\u679c\u4f60\u4e0d\u77e5\u9053Python\u7684\u5b89\u88c5\u76ee\u5f55\uff0c\u4f7f\u7528\u547d\u4ee4\u884c\u542f\u52a8IDLE\u662f\u4e00\u4e2a\u5f88\u597d\u7684\u9009\u62e9\u3002<\/p>\n<\/p>\n<ol start=\"2\">\n<li><strong>macOS\u548cLinux\u7ec8\u7aef<\/strong><\/li>\n<\/ol>\n<p><p>\u5728macOS\u548cLinux\u7cfb\u7edf\u4e2d\uff0c\u6253\u5f00\u7ec8\u7aef\uff0c\u8f93\u5165\u201cidle\u201d\u547d\u4ee4\uff0c\u7136\u540e\u6309\u4e0b\u56de\u8f66\u952e\uff0cIDLE\u5c06\u4f1a\u542f\u52a8\u3002\u5982\u679c\u201cidle\u201d\u547d\u4ee4\u4e0d\u53ef\u7528\uff0c\u53ef\u4ee5\u5c1d\u8bd5\u201cpython3 -m idlelib\u201d\u547d\u4ee4\u3002\u6ce8\u610f\uff1a\u67d0\u4e9bLinux\u53d1\u884c\u7248\u53ef\u80fd\u9ed8\u8ba4\u4f7f\u7528Python 2.x\uff0c\u4f60\u53ef\u4ee5\u901a\u8fc7\u8f93\u5165\u201cpython3\u201d\u547d\u4ee4\u6765\u4f7f\u7528Python 3.x\u3002<\/p>\n<\/p>\n<p><p>\u4f7f\u7528\u547d\u4ee4\u884c\u542f\u52a8IDLE\u5728macOS\u548cLinux\u7cfb\u7edf\u4e2d\u5c24\u5176\u5e38\u89c1\uff0c\u56e0\u4e3a\u8fd9\u4e9b\u7cfb\u7edf\u7684\u7528\u6237\u901a\u5e38\u4e60\u60ef\u4e8e\u4f7f\u7528\u7ec8\u7aef\u8fdb\u884c\u64cd\u4f5c\u3002<\/p>\n<\/p>\n<p><p>\u4e09\u3001\u901a\u8fc7\u96c6\u6210\u5f00\u53d1\u73af\u5883\uff08IDE\uff09\u542f\u52a8IDLE<\/p>\n<\/p>\n<p><p>\u5982\u679c\u4f60\u4f7f\u7528\u7684\u662f\u96c6\u6210\u5f00\u53d1\u73af\u5883\uff08IDE\uff09\uff0c\u5982PyCharm\u6216VSCode\uff0c\u8fd9\u4e9b\u5de5\u5177\u901a\u5e38\u63d0\u4f9b\u4e86\u542f\u52a8IDLE\u7684\u9009\u9879\u3002<\/p>\n<\/p>\n<ol>\n<li><strong>PyCharm<\/strong><\/li>\n<\/ol>\n<p><p>\u5728PyCharm\u4e2d\uff0c\u4f60\u53ef\u4ee5\u5728\u201cTools\u201d\u83dc\u5355\u4e0b\u627e\u5230\u201cStart IDLE\u201d\u9009\u9879\uff0c\u70b9\u51fb\u540e\u4f1a\u542f\u52a8IDLE\u3002PyCharm\u662f\u4e00\u4e2a\u529f\u80fd\u5f3a\u5927\u7684IDE\uff0c\u652f\u6301\u591a\u79cdPython\u5f00\u53d1\u5de5\u5177\u7684\u96c6\u6210\uff0c\u5305\u62ecIDLE\u3002<\/p>\n<\/p>\n<ol start=\"2\">\n<li><strong>VSCode<\/strong><\/li>\n<\/ol>\n<p><p>\u5728VSCode\u4e2d\uff0c\u4f60\u53ef\u4ee5\u901a\u8fc7\u5b89\u88c5Python\u6269\u5c55\u5305\uff0c\u7136\u540e\u5728\u201c\u547d\u4ee4\u9762\u677f\u201d\u4e2d\u8f93\u5165\u201cPython: Start REPL\u201d\uff0c\u8fd9\u5c06\u542f\u52a8Python\u7684\u4ea4\u4e92\u5f0f\u73af\u5883\u3002\u867d\u7136\u8fd9\u4e0d\u662fIDLE\u672c\u8eab\uff0c\u4f46\u63d0\u4f9b\u4e86\u7c7b\u4f3c\u7684\u529f\u80fd\u3002<\/p>\n<\/p>\n<p><p>\u4f7f\u7528IDE\u542f\u52a8IDLE\u7684\u597d\u5904\u662f\uff0c\u4f60\u53ef\u4ee5\u5728\u4e00\u4e2a\u96c6\u6210\u7684\u73af\u5883\u4e2d\u8fdb\u884c\u4ee3\u7801\u7f16\u5199\u3001\u8c03\u8bd5\u548c\u6d4b\u8bd5\uff0c\u800c\u4e0d\u9700\u8981\u5728\u591a\u4e2a\u7a97\u53e3\u4e4b\u95f4\u5207\u6362\u3002<\/p>\n<\/p>\n<p><p>\u56db\u3001\u5b89\u88c5\u548c\u914d\u7f6ePython\u53caIDLE<\/p>\n<\/p>\n<p><p>\u6709\u65f6\u5019\uff0c\u53ef\u80fd\u4f1a\u9762\u4e34IDLE\u6ca1\u6709\u5b89\u88c5\u6216\u65e0\u6cd5\u542f\u52a8\u7684\u60c5\u51b5\u3002\u5728\u8fd9\u79cd\u60c5\u51b5\u4e0b\uff0c\u91cd\u65b0\u5b89\u88c5\u548c\u6b63\u786e\u914d\u7f6ePython\u53caIDLE\u662f\u89e3\u51b3\u95ee\u9898\u7684\u5173\u952e\u3002<\/p>\n<\/p>\n<ol>\n<li><strong>\u5b89\u88c5Python<\/strong><\/li>\n<\/ol>\n<p><p>\u8981\u5b89\u88c5Python\uff0c\u53ef\u4ee5\u8bbf\u95eePython\u5b98\u65b9\u7f51\u7ad9\uff08python.org\uff09\u4e0b\u8f7d\u9002\u5408\u4f60\u64cd\u4f5c\u7cfb\u7edf\u7684Python\u5b89\u88c5\u5305\u3002\u5b89\u88c5\u8fc7\u7a0b\u4e2d\uff0c\u786e\u4fdd\u52fe\u9009\u201cAdd Python to PATH\u201d\u9009\u9879\uff0c\u8fd9\u5c06\u628aPython\u6dfb\u52a0\u5230\u7cfb\u7edf\u7684\u73af\u5883\u53d8\u91cf\u4e2d\uff0c\u65b9\u4fbf\u540e\u7eed\u7684\u547d\u4ee4\u884c\u64cd\u4f5c\u3002<\/p>\n<\/p>\n<ol start=\"2\">\n<li><strong>\u5b89\u88c5IDLE<\/strong><\/li>\n<\/ol>\n<p><p>IDLE\u901a\u5e38\u4f1a\u968f\u7740Python\u4e00\u8d77\u5b89\u88c5\uff0c\u4f46\u5728\u67d0\u4e9b\u60c5\u51b5\u4e0b\u53ef\u80fd\u9700\u8981\u5355\u72ec\u5b89\u88c5\u3002\u5728Windows\u548cmacOS\u4e2d\uff0cIDLE\u901a\u5e38\u9ed8\u8ba4\u5b89\u88c5\u3002\u5728Linux\u7cfb\u7edf\u4e2d\uff0c\u53ef\u4ee5\u901a\u8fc7\u5305\u7ba1\u7406\u5de5\u5177\u5b89\u88c5IDLE\uff0c\u4f8b\u5982\u5728Debian\/Ubuntu\u7cfb\u7edf\u4e2d\u4f7f\u7528\u201csudo apt-get install idle\u201d\u547d\u4ee4\u3002<\/p>\n<\/p>\n<ol start=\"3\">\n<li><strong>\u914d\u7f6eIDLE<\/strong><\/li>\n<\/ol>\n<p><p>IDLE\u63d0\u4f9b\u4e86\u4e00\u4e9b\u914d\u7f6e\u9009\u9879\uff0c\u53ef\u4ee5\u901a\u8fc7\u201cOptions\u201d\u83dc\u5355\u8fdb\u884c\u8bbe\u7f6e\u3002\u4f60\u53ef\u4ee5\u8c03\u6574\u5b57\u4f53\u5927\u5c0f\u3001\u989c\u8272\u4e3b\u9898\u3001\u81ea\u52a8\u8865\u5168\u9009\u9879\u7b49\uff0c\u4ee5\u4fbf\u66f4\u597d\u5730\u6ee1\u8db3\u4e2a\u4eba\u5f00\u53d1\u9700\u6c42\u3002<\/p>\n<\/p>\n<p><p>\u603b\u4e4b\uff0c\u627e\u5230Python\u7684IDLE\u5e76\u4e0d\u590d\u6742\uff0c\u53ea\u9700\u6839\u636e\u64cd\u4f5c\u7cfb\u7edf\u7684\u4e0d\u540c\uff0c\u9009\u62e9\u5408\u9002\u7684\u65b9\u6cd5\u5373\u53ef\u3002\u65e0\u8bba\u662f\u901a\u8fc7\u64cd\u4f5c\u7cfb\u7edf\u76ee\u5f55\u3001\u547d\u4ee4\u884c\u8fd8\u662fIDE\u542f\u52a8IDLE\uff0c\u5173\u952e\u662f\u786e\u4fddPython\u548cIDLE\u6b63\u786e\u5b89\u88c5\u5e76\u914d\u7f6e\uff0c\u4ee5\u4fbf\u987a\u5229\u8fdb\u884cPython\u5f00\u53d1\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u5728\u6211\u7684\u8ba1\u7b97\u673a\u4e0a\u5b89\u88c5Python\u7684IDLE\uff1f<\/strong><br \/>\u8981\u5b89\u88c5Python\u7684IDLE\uff0c\u9996\u5148\u9700\u8981\u786e\u4fdd\u5df2\u7ecf\u5728\u8ba1\u7b97\u673a\u4e0a\u5b89\u88c5\u4e86Python\u3002\u53ef\u4ee5\u8bbf\u95eePython\u7684\u5b98\u65b9\u7f51\u7ad9\uff0c\u4e0b\u8f7d\u9002\u5408\u60a8\u64cd\u4f5c\u7cfb\u7edf\u7684\u7248\u672c\u3002\u5728\u5b89\u88c5\u8fc7\u7a0b\u4e2d\uff0c\u8bf7\u786e\u4fdd\u9009\u4e2d\u201c\u5b89\u88c5IDLE\u201d\u9009\u9879\u3002\u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u60a8\u53ef\u4ee5\u5728\u5f00\u59cb\u83dc\u5355\uff08Windows\uff09\u6216\u5e94\u7528\u7a0b\u5e8f\u6587\u4ef6\u5939\uff08Mac\uff09\u4e2d\u627e\u5230IDLE\u3002<\/p>\n<p><strong>\u5728Windows\u548cMac\u4e0a\u6253\u5f00Python\u7684IDLE\u6709\u54ea\u4e9b\u4e0d\u540c\u4e4b\u5904\uff1f<\/strong><br \/>\u5728Windows\u4e0a\uff0c\u60a8\u53ef\u4ee5\u901a\u8fc7\u5f00\u59cb\u83dc\u5355\u627e\u5230Python IDLE\uff0c\u901a\u5e38\u4f4d\u4e8e\u201cPython\u201d\u6587\u4ef6\u5939\u5185\u3002\u5982\u679c\u60a8\u4f7f\u7528\u7684\u662fMac\uff0c\u53ef\u4ee5\u901a\u8fc7\u201c\u5e94\u7528\u7a0b\u5e8f\u201d\u6587\u4ef6\u5939\u4e2d\u7684\u201cPython\u201d\u5b50\u6587\u4ef6\u5939\u627e\u5230IDLE\u3002\u4e24\u79cd\u64cd\u4f5c\u7cfb\u7edf\u7684\u754c\u9762\u76f8\u4f3c\uff0c\u4f46\u8bbf\u95ee\u65b9\u5f0f\u6709\u6240\u4e0d\u540c\u3002<\/p>\n<p><strong>\u5982\u4f55\u89e3\u51b3IDLE\u65e0\u6cd5\u542f\u52a8\u7684\u95ee\u9898\uff1f<\/strong><br \/>\u82e5IDLE\u65e0\u6cd5\u542f\u52a8\uff0c\u53ef\u80fd\u662f\u56e0\u4e3aPython\u672a\u6b63\u786e\u5b89\u88c5\u6216\u73af\u5883\u53d8\u91cf\u672a\u914d\u7f6e\u3002\u60a8\u53ef\u4ee5\u5c1d\u8bd5\u91cd\u65b0\u5b89\u88c5Python\uff0c\u786e\u4fdd\u5728\u5b89\u88c5\u8fc7\u7a0b\u4e2d\u9009\u62e9\u4e86IDLE\u9009\u9879\u3002\u5982\u679c\u95ee\u9898\u4f9d\u65e7\uff0c\u53ef\u4ee5\u68c0\u67e5\u7cfb\u7edf\u7684\u73af\u5883\u53d8\u91cf\u8bbe\u7f6e\uff0c\u786e\u4fddPython\u7684\u5b89\u88c5\u8def\u5f84\u5df2\u6dfb\u52a0\u5230PATH\u53d8\u91cf\u4e2d\u3002\u8fd8\u53ef\u4ee5\u5c1d\u8bd5\u5728\u547d\u4ee4\u884c\u4e2d\u76f4\u63a5\u8f93\u5165<code>python -m idlelib.idle<\/code>\u6765\u542f\u52a8IDLE\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u8981\u627e\u5230Python\u7684IDLE\uff0c\u53ef\u4ee5\u901a\u8fc7\u4ee5\u4e0b\u65b9\u6cd5\uff1a\u5728\u64cd\u4f5c\u7cfb\u7edf\u4e2d\u641c\u7d22Python\u7684\u5b89\u88c5\u76ee\u5f55\u3001\u4f7f\u7528\u547d\u4ee4\u884c\u542f\u52a8IDLE [&hellip;]","protected":false},"author":3,"featured_media":980271,"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\/980256"}],"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=980256"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/980256\/revisions"}],"predecessor-version":[{"id":980275,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/980256\/revisions\/980275"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/980271"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=980256"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=980256"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=980256"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}