{"id":931876,"date":"2024-12-26T17:46:52","date_gmt":"2024-12-26T09:46:52","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/931876.html"},"modified":"2024-12-26T17:46:54","modified_gmt":"2024-12-26T09:46:54","slug":"%e5%a6%82%e4%bd%95%e4%bd%bf%e7%94%a8python-idle","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/931876.html","title":{"rendered":"\u5982\u4f55\u4f7f\u7528python idle"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/25070000\/af8be7a9-c035-456c-bb54-073c5b0da465.webp\" alt=\"\u5982\u4f55\u4f7f\u7528python idle\" \/><\/p>\n<p><p> <strong>Python IDLE\u7684\u4f7f\u7528\u65b9\u6cd5\u5305\u62ec\uff1a\u5b89\u88c5Python\u3001\u542f\u52a8IDLE\u3001\u7f16\u5199\u548c\u8fd0\u884cPython\u4ee3\u7801\u3001\u8c03\u8bd5\u7a0b\u5e8f\u3001\u4f7f\u7528IDLE\u7684\u4ea4\u4e92\u6a21\u5f0f\u3002\u5728\u8fd9\u4e9b\u6b65\u9aa4\u4e2d\uff0c\u542f\u52a8IDLE\u662f\u6700\u4e3a\u7b80\u5355\u7684\uff0c\u56e0\u4e3a\u5b83\u53ea\u9700\u8981\u5728\u5b89\u88c5Python\u65f6\u9009\u62e9\u201c\u6dfb\u52a0\u5230PATH\u201d\u9009\u9879\uff0c\u7136\u540e\u4ece\u7cfb\u7edf\u83dc\u5355\u4e2d\u9009\u62e9IDLE\u5373\u53ef\u3002<\/strong><\/p>\n<\/p>\n<p><p>Python IDLE\uff08Integrated Development and Learning Environment\uff09\u662fPython\u81ea\u5e26\u7684\u7b80\u5355\u96c6\u6210\u5f00\u53d1\u73af\u5883\uff0c\u5b83\u63d0\u4f9b\u4e86\u7f16\u5199\u3001\u8fd0\u884c\u548c\u8c03\u8bd5Python\u4ee3\u7801\u7684\u57fa\u672c\u529f\u80fd\u3002\u5bf9\u4e8e\u521d\u5b66\u8005\u6765\u8bf4\uff0cIDLE\u662f\u4e00\u4e2a\u975e\u5e38\u53cb\u597d\u7684\u5de5\u5177\uff0c\u56e0\u4e3a\u5b83\u76f4\u89c2\u4e14\u6613\u4e8e\u4f7f\u7528\uff0c\u53ef\u4ee5\u5e2e\u52a9\u7528\u6237\u5feb\u901f\u4e0a\u624bPython\u7f16\u7a0b\u3002<\/p>\n<\/p>\n<p><p>\u4e00\u3001\u5b89\u88c5PYTHON<\/p>\n<\/p>\n<p><p>\u5728\u4f7f\u7528IDLE\u4e4b\u524d\uff0c\u60a8\u9700\u8981\u5728\u8ba1\u7b97\u673a\u4e0a\u5b89\u88c5Python\u3002Python\u7684\u5b89\u88c5\u5305\u901a\u5e38\u4f1a\u5305\u542bIDLE\uff0c\u56e0\u6b64\u5b89\u88c5Python\u7684\u8fc7\u7a0b\u4e5f\u610f\u5473\u7740\u5b89\u88c5IDLE\u3002\u4ee5\u4e0b\u662f\u5b89\u88c5Python\u7684\u6b65\u9aa4\uff1a<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u4e0b\u8f7dPython\u5b89\u88c5\u7a0b\u5e8f<\/strong>\uff1a\u8bbf\u95eePython\u7684\u5b98\u65b9\u7f51\u7ad9\uff08<a href=\"https:\/\/www.python.org\/%EF%BC%89%EF%BC%8C%E5%9C%A8%E2%80%9CDownloads%E2%80%9D%E9%A1%B5%E9%9D%A2%E4%B8%AD%E9%80%89%E6%8B%A9%E9%80%82%E5%90%88%E6%82%A8%E7%9A%84%E6%93%8D%E4%BD%9C%E7%B3%BB%E7%BB%9F%E7%9A%84%E7%89%88%E6%9C%AC%E5%B9%B6%E4%B8%8B%E8%BD%BD%E3%80%82\">https:\/\/www.python.org\/\uff09\uff0c\u5728\u201cDownloads\u201d\u9875\u9762\u4e2d\u9009\u62e9\u9002\u5408\u60a8\u7684\u64cd\u4f5c\u7cfb\u7edf\u7684\u7248\u672c\u5e76\u4e0b\u8f7d\u3002<\/a><\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u8fd0\u884c\u5b89\u88c5\u7a0b\u5e8f<\/strong>\uff1a\u53cc\u51fb\u4e0b\u8f7d\u7684\u5b89\u88c5\u7a0b\u5e8f\u6587\u4ef6\u3002\u5b89\u88c5\u8fc7\u7a0b\u4e2d\uff0c\u8bf7\u52a1\u5fc5\u52fe\u9009\u201cAdd Python to PATH\u201d\u9009\u9879\uff0c\u8fd9\u6837\u7cfb\u7edf\u5c31\u53ef\u4ee5\u8bc6\u522bPython\u547d\u4ee4\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u5b8c\u6210\u5b89\u88c5<\/strong>\uff1a\u6309\u7167\u5b89\u88c5\u5411\u5bfc\u7684\u6307\u793a\u5b8c\u6210\u5b89\u88c5\u3002\u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u60a8\u53ef\u4ee5\u901a\u8fc7\u547d\u4ee4\u884c\u6216\u83dc\u5355\u542f\u52a8Python IDLE\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u4e8c\u3001\u542f\u52a8IDLE<\/p>\n<\/p>\n<p><p>\u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u60a8\u53ef\u4ee5\u901a\u8fc7\u4ee5\u4e0b\u65b9\u5f0f\u542f\u52a8Python IDLE\uff1a<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u901a\u8fc7\u83dc\u5355\u542f\u52a8<\/strong>\uff1a\u5728Windows\u7cfb\u7edf\u4e2d\uff0c\u60a8\u53ef\u4ee5\u5728\u201c\u5f00\u59cb\u201d\u83dc\u5355\u4e2d\u627e\u5230\u201cPython\u201d\uff0c\u7136\u540e\u9009\u62e9\u201cIDLE (Python 3.x.x)\u201d\u6765\u542f\u52a8\u3002\u5728macOS\u548cLinux\u7cfb\u7edf\u4e2d\uff0c\u60a8\u53ef\u4ee5\u901a\u8fc7\u5e94\u7528\u7a0b\u5e8f\u83dc\u5355\u627e\u5230\u5e76\u542f\u52a8IDLE\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u901a\u8fc7\u547d\u4ee4\u884c\u542f\u52a8<\/strong>\uff1a\u5728\u547d\u4ee4\u884c\u4e2d\u8f93\u5165<code>idle<\/code>\u547d\u4ee4\uff08\u524d\u63d0\u662fPython\u5df2\u6dfb\u52a0\u5230PATH\u4e2d\uff09\uff0c\u7136\u540e\u6309\u4e0b\u56de\u8f66\u952e\uff0c\u5373\u53ef\u542f\u52a8IDLE\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>IDLE\u63d0\u4f9b\u4e86\u4e00\u4e2a\u4ea4\u4e92\u5f0f\u7684Shell\u7a97\u53e3\uff0c\u60a8\u53ef\u4ee5\u5728\u5176\u4e2d\u76f4\u63a5\u8f93\u5165Python\u4ee3\u7801\u5e76\u7acb\u5373\u6267\u884c\u3002\u6b64\u5916\uff0c\u60a8\u8fd8\u53ef\u4ee5\u7f16\u5199\u5b8c\u6574\u7684Python\u811a\u672c\u5e76\u8fd0\u884c\u5b83\u4eec\u3002<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u4f7f\u7528Shell\u7a97\u53e3<\/strong>\uff1a\u542f\u52a8IDLE\u540e\uff0c\u60a8\u5c06\u770b\u5230\u4e00\u4e2a\u540d\u4e3a\u201cPython Shell\u201d\u7684\u7a97\u53e3\u3002\u60a8\u53ef\u4ee5\u5728\u8fd9\u91cc\u8f93\u5165Python\u547d\u4ee4\u5e76\u7acb\u523b\u67e5\u770b\u7ed3\u679c\u3002\u4f8b\u5982\uff0c\u8f93\u5165<code>print(&quot;Hello, World!&quot;)<\/code>\u5e76\u6309\u4e0b\u56de\u8f66\u952e\uff0c\u60a8\u5c06\u770b\u5230\u8f93\u51fa\u7ed3\u679c\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u7f16\u5199\u811a\u672c<\/strong>\uff1a\u8981\u7f16\u5199\u811a\u672c\uff0c\u8bf7\u5728IDLE\u4e2d\u9009\u62e9\u201cFile\u201d\u83dc\u5355\uff0c\u7136\u540e\u9009\u62e9\u201cNew File\u201d\u3002\u8fd9\u5c06\u6253\u5f00\u4e00\u4e2a\u65b0\u7684\u7f16\u8f91\u7a97\u53e3\uff0c\u60a8\u53ef\u4ee5\u5728\u5176\u4e2d\u7f16\u5199Python\u4ee3\u7801\u3002\u7f16\u5199\u5b8c\u6210\u540e\uff0c\u9009\u62e9\u201cFile\u201d\u83dc\u5355\u4e2d\u7684\u201cSave\u201d\u9009\u9879\uff0c\u5c06\u6587\u4ef6\u4fdd\u5b58\u4e3a<code>.py<\/code>\u6269\u5c55\u540d\u7684Python\u811a\u672c\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u8fd0\u884c\u811a\u672c<\/strong>\uff1a\u8981\u8fd0\u884c\u811a\u672c\uff0c\u8bf7\u5728\u7f16\u8f91\u7a97\u53e3\u4e2d\u9009\u62e9\u201cRun\u201d\u83dc\u5355\uff0c\u7136\u540e\u9009\u62e9\u201cRun Module\u201d\u9009\u9879\uff08\u6216\u6309\u4e0bF5\u952e\uff09\u3002\u8fd9\u5c06\u8fd0\u884c\u60a8\u7684\u811a\u672c\uff0c\u5e76\u5728Shell\u7a97\u53e3\u4e2d\u663e\u793a\u7ed3\u679c\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u56db\u3001\u8c03\u8bd5\u7a0b\u5e8f<\/p>\n<\/p>\n<p><p>IDLE\u63d0\u4f9b\u4e86\u4e00\u4e9b\u57fa\u672c\u7684\u8c03\u8bd5\u529f\u80fd\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>\u8bed\u6cd5\u9519\u8bef\u68c0\u67e5<\/strong>\uff1aIDLE\u5728\u4fdd\u5b58\u811a\u672c\u6587\u4ef6\u65f6\u4f1a\u81ea\u52a8\u68c0\u67e5\u8bed\u6cd5\u9519\u8bef\uff0c\u5e76\u5728\u7f16\u8f91\u7a97\u53e3\u4e2d\u9ad8\u4eae\u663e\u793a\u9519\u8bef\u7684\u4ee3\u7801\u884c\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u8c03\u8bd5\u5668<\/strong>\uff1aIDLE\u5185\u7f6e\u4e86\u4e00\u4e2a\u7b80\u5355\u7684\u8c03\u8bd5\u5668\uff0c\u60a8\u53ef\u4ee5\u901a\u8fc7\u201cDebug\u201d\u83dc\u5355\u542f\u7528\u5b83\u3002\u8c03\u8bd5\u5668\u5141\u8bb8\u60a8\u9010\u6b65\u6267\u884c\u4ee3\u7801\u3001\u8bbe\u7f6e\u65ad\u70b9\u3001\u89c2\u5bdf\u53d8\u91cf\u503c\u7b49\uff0c\u6709\u52a9\u4e8e\u60a8\u6df1\u5165\u7406\u89e3\u7a0b\u5e8f\u7684\u6267\u884c\u8fc7\u7a0b\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u9519\u8bef\u6d88\u606f<\/strong>\uff1a\u5f53\u4ee3\u7801\u8fd0\u884c\u65f6\u51fa\u73b0\u9519\u8bef\uff0cIDLE\u4f1a\u5728Shell\u7a97\u53e3\u4e2d\u663e\u793a\u8be6\u7ec6\u7684\u9519\u8bef\u6d88\u606f\uff0c\u5305\u62ec\u9519\u8bef\u7c7b\u578b\u548c\u53d1\u751f\u9519\u8bef\u7684\u4ee3\u7801\u884c\u3002\u8fd9\u4e9b\u4fe1\u606f\u53ef\u4ee5\u5e2e\u52a9\u60a8\u5feb\u901f\u5b9a\u4f4d\u95ee\u9898\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u4e94\u3001\u4f7f\u7528IDLE\u7684\u4ea4\u4e92\u6a21\u5f0f<\/p>\n<\/p>\n<p><p>IDLE\u7684\u4ea4\u4e92\u6a21\u5f0f\u662f\u4e00\u4e2a\u5f3a\u5927\u7684\u5de5\u5177\uff0c\u9002\u7528\u4e8e\u5feb\u901f\u6d4b\u8bd5\u4ee3\u7801\u7247\u6bb5\u548c\u5b9e\u9a8c\u65b0\u529f\u80fd\u3002<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u5373\u65f6\u53cd\u9988<\/strong>\uff1a\u5728\u4ea4\u4e92\u6a21\u5f0f\u4e0b\uff0c\u60a8\u53ef\u4ee5\u8f93\u5165\u5355\u884cPython\u4ee3\u7801\u5e76\u7acb\u5373\u67e5\u770b\u7ed3\u679c\u3002\u8fd9\u5bf9\u4e8e\u5b66\u4e60Python\u8bed\u6cd5\u548c\u6d4b\u8bd5\u51fd\u6570\u975e\u5e38\u6709\u7528\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u5c1d\u8bd5\u548c\u8c03\u8bd5<\/strong>\uff1a\u60a8\u53ef\u4ee5\u5728\u4ea4\u4e92\u6a21\u5f0f\u4e0b\u5c1d\u8bd5\u4e0d\u540c\u7684\u4ee3\u7801\u5b9e\u73b0\uff0c\u5e76\u6839\u636e\u53cd\u9988\u5373\u65f6\u8c03\u6574\u4ee3\u7801\u3002\u8fd9\u79cd\u5373\u65f6\u53cd\u9988\u673a\u5236\u6709\u52a9\u4e8e\u63d0\u9ad8\u7f16\u7a0b\u6548\u7387\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u53d8\u91cf\u6301\u4e45\u6027<\/strong>\uff1a\u5728\u4ea4\u4e92\u6a21\u5f0f\u4e0b\u5b9a\u4e49\u7684\u53d8\u91cf\u4f1a\u4e00\u76f4\u4fdd\u5b58\u5728\u4f1a\u8bdd\u4e2d\uff0c\u76f4\u5230\u60a8\u5173\u95edIDLE\u6216\u91cd\u542fShell\u3002\u8fd9\u4f7f\u5f97\u60a8\u53ef\u4ee5\u5728\u591a\u4e2a\u547d\u4ee4\u4e4b\u95f4\u5171\u4eab\u6570\u636e\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u516d\u3001IDLE\u7684\u5176\u4ed6\u529f\u80fd<\/p>\n<\/p>\n<p><p>\u9664\u4e86\u57fa\u672c\u7684\u7f16\u8f91\u548c\u8c03\u8bd5\u529f\u80fd\uff0cIDLE\u8fd8\u63d0\u4f9b\u4e86\u4e00\u4e9b\u5176\u4ed6\u6709\u7528\u7684\u529f\u80fd\uff1a<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u8bed\u6cd5\u9ad8\u4eae<\/strong>\uff1aIDLE\u4f1a\u6839\u636ePython\u8bed\u6cd5\u81ea\u52a8\u9ad8\u4eae\u663e\u793a\u4ee3\u7801\uff0c\u4f7f\u4ee3\u7801\u66f4\u6613\u4e8e\u9605\u8bfb\u548c\u7406\u89e3\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u81ea\u52a8\u7f29\u8fdb<\/strong>\uff1aIDLE\u4f1a\u81ea\u52a8\u7f29\u8fdb\u4ee3\u7801\uff0c\u4ee5\u5e2e\u52a9\u60a8\u7f16\u5199\u7b26\u5408Python\u98ce\u683c\u6307\u5357\u7684\u4ee3\u7801\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u4ee3\u7801\u8865\u5168<\/strong>\uff1a\u5728\u7f16\u8f91\u7a97\u53e3\u4e2d\uff0cIDLE\u4f1a\u6839\u636e\u60a8\u8f93\u5165\u7684\u90e8\u5206\u5355\u8bcd\u63d0\u4f9b\u81ea\u52a8\u8865\u5168\u9009\u9879\uff0c\u52a0\u5feb\u4ee3\u7801\u7f16\u5199\u901f\u5ea6\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u641c\u7d22\u548c\u66ff\u6362<\/strong>\uff1aIDLE\u63d0\u4f9b\u4e86\u5f3a\u5927\u7684\u641c\u7d22\u548c\u66ff\u6362\u529f\u80fd\uff0c\u5e2e\u52a9\u60a8\u5feb\u901f\u5b9a\u4f4d\u548c\u4fee\u6539\u4ee3\u7801\u4e2d\u7684\u7279\u5b9a\u6587\u672c\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u4e03\u3001IDLE\u7684\u9650\u5236\u548c\u66ff\u4ee3\u65b9\u6848<\/p>\n<\/p>\n<p><p>\u867d\u7136IDLE\u662f\u4e00\u4e2a\u5f88\u597d\u7684\u8d77\u59cb\u5de5\u5177\uff0c\u4f46\u5b83\u4e5f\u6709\u4e00\u4e9b\u9650\u5236\uff1a<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u529f\u80fd\u6709\u9650<\/strong>\uff1aIDLE\u7f3a\u4e4f\u67d0\u4e9b\u9ad8\u7ea7\u529f\u80fd\uff0c\u5982\u7248\u672c\u63a7\u5236\u96c6\u6210\u3001\u590d\u6742<a href=\"https:\/\/docs.pingcode.com\/blog\/project-management\/23316.html\" target=\"_blank\">\u9879\u76ee\u7ba1\u7406<\/a>\u7b49\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u6027\u80fd\u9650\u5236<\/strong>\uff1aIDLE\u5728\u5904\u7406\u5927\u578b\u9879\u76ee\u6216\u6267\u884c\u590d\u6742\u7684\u4ee3\u7801\u65f6\u53ef\u80fd\u4e0d\u5982\u5176\u4ed6IDE\uff08\u5982PyCharm\u3001Visual Studio Code\uff09\u9ad8\u6548\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u5982\u679c\u60a8\u9700\u8981\u66f4\u5f3a\u5927\u7684\u529f\u80fd\u548c\u6027\u80fd\uff0c\u53ef\u4ee5\u8003\u8651\u4f7f\u7528\u5176\u4ed6IDE\u6216\u6587\u672c\u7f16\u8f91\u5668\u3002PyCharm\u3001Visual Studio Code\u548cSublime Text\u90fd\u662f\u6d41\u884c\u7684\u9009\u62e9\uff0c\u5b83\u4eec\u63d0\u4f9b\u4e86\u4e30\u5bcc\u7684\u63d2\u4ef6\u548c\u6269\u5c55\u529f\u80fd\uff0c\u4ee5\u6ee1\u8db3\u4e0d\u540c\u7684\u5f00\u53d1\u9700\u6c42\u3002<\/p>\n<\/p>\n<p><p>\u603b\u7ed3\u6765\u8bf4\uff0cPython IDLE\u662f\u5b66\u4e60\u548c\u7f16\u5199Python\u4ee3\u7801\u7684\u7406\u60f3\u5de5\u5177\uff0c\u7279\u522b\u9002\u5408\u521d\u5b66\u8005\u3002\u901a\u8fc7\u5b89\u88c5Python\u3001\u542f\u52a8IDLE\u3001\u7f16\u5199\u548c\u8fd0\u884c\u4ee3\u7801\u3001\u8c03\u8bd5\u7a0b\u5e8f\uff0c\u60a8\u53ef\u4ee5\u5145\u5206\u5229\u7528IDLE\u7684\u529f\u80fd\u6765\u63d0\u9ad8\u7f16\u7a0b\u6280\u80fd\u3002\u540c\u65f6\uff0c\u4e86\u89e3IDLE\u7684\u9650\u5236\u5e76\u63a2\u7d22\u66ff\u4ee3\u65b9\u6848\uff0c\u5c06\u6709\u52a9\u4e8e\u60a8\u5728Python\u7f16\u7a0b\u7684\u65c5\u7a0b\u4e2d\u4e0d\u65ad\u8fdb\u6b65\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>Python IDLE \u662f\u4ec0\u4e48\uff0c\u9002\u5408\u54ea\u4e9b\u7528\u6237\u4f7f\u7528\uff1f<\/strong><br \/>Python IDLE\uff08Integrated Development and Learning Environment\uff09\u662fPython\u7684\u5b98\u65b9\u96c6\u6210\u5f00\u53d1\u73af\u5883\uff0c\u4e3b\u8981\u4e3a\u521d\u5b66\u8005\u8bbe\u8ba1\u3002\u5b83\u63d0\u4f9b\u4e86\u4e00\u4e2a\u7b80\u5355\u6613\u7528\u7684\u754c\u9762\uff0c\u8ba9\u65b0\u624b\u80fd\u591f\u8f7b\u677e\u7f16\u5199\u548c\u6d4b\u8bd5Python\u4ee3\u7801\u3002\u65e0\u8bba\u662f\u5b66\u751f\u3001\u6559\u5e08\u8fd8\u662f\u7f16\u7a0b\u7231\u597d\u8005\uff0c\u90fd\u53ef\u4ee5\u4f7f\u7528IDLE\u6765\u5b66\u4e60\u548c\u5b9e\u8df5Python\u7f16\u7a0b\u3002<\/p>\n<p><strong>\u5982\u4f55\u5728Python IDLE\u4e2d\u521b\u5efa\u548c\u8fd0\u884c\u4e00\u4e2a\u7b80\u5355\u7684\u7a0b\u5e8f\uff1f<\/strong><br \/>\u5728Python IDLE\u4e2d\u521b\u5efa\u7a0b\u5e8f\u975e\u5e38\u7b80\u5355\u3002\u9996\u5148\uff0c\u6253\u5f00IDLE\uff0c\u9009\u62e9\u201cFile\u201d\u83dc\u5355\u4e2d\u7684\u201cNew File\u201d\u9009\u9879\uff0c\u8fd9\u5c06\u6253\u5f00\u4e00\u4e2a\u65b0\u7684\u7f16\u8f91\u7a97\u53e3\u3002\u5728\u65b0\u7a97\u53e3\u4e2d\u8f93\u5165\u4f60\u7684Python\u4ee3\u7801\uff0c\u4f8b\u5982<code>print(&quot;Hello, World!&quot;)<\/code>\u3002\u4fdd\u5b58\u6587\u4ef6\u540e\uff0c\u53ef\u4ee5\u901a\u8fc7\u70b9\u51fb\u201cRun\u201d\u83dc\u5355\u4e2d\u7684\u201cRun Module\u201d\u6216\u6309F5\u952e\u6765\u6267\u884c\u4ee3\u7801\u3002\u7a0b\u5e8f\u7684\u8f93\u51fa\u5c06\u663e\u793a\u5728Python Shell\u7a97\u53e3\u4e2d\u3002<\/p>\n<p><strong>\u5982\u4f55\u81ea\u5b9a\u4e49Python IDLE\u7684\u5916\u89c2\u548c\u8bbe\u7f6e\uff1f<\/strong><br \/>\u7528\u6237\u53ef\u4ee5\u901a\u8fc7\u201cOptions\u201d\u83dc\u5355\u4e2d\u7684\u201cConfigure IDLE\u201d\u9009\u9879\u6765\u81ea\u5b9a\u4e49IDLE\u7684\u5916\u89c2\u548c\u8bbe\u7f6e\u3002\u5728\u6b64\u83dc\u5355\u4e2d\uff0c\u53ef\u4ee5\u8c03\u6574\u5b57\u4f53\u3001\u989c\u8272\u4e3b\u9898\u4ee5\u53ca\u5176\u4ed6\u754c\u9762\u5143\u7d20\uff0c\u4ee5\u9002\u5e94\u4e2a\u4eba\u7684\u4f7f\u7528\u504f\u597d\u3002\u6b64\u5916\uff0c\u53ef\u4ee5\u8bbe\u7f6e\u81ea\u52a8\u7f29\u8fdb\u3001\u4ee3\u7801\u8865\u5168\u7b49\u529f\u80fd\uff0c\u4ee5\u63d0\u5347\u7f16\u7a0b\u6548\u7387\u548c\u8212\u9002\u5ea6\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"Python IDLE\u7684\u4f7f\u7528\u65b9\u6cd5\u5305\u62ec\uff1a\u5b89\u88c5Python\u3001\u542f\u52a8IDLE\u3001\u7f16\u5199\u548c\u8fd0\u884cPython\u4ee3\u7801\u3001\u8c03\u8bd5\u7a0b\u5e8f\u3001\u4f7f [&hellip;]","protected":false},"author":3,"featured_media":931879,"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\/931876"}],"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=931876"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/931876\/revisions"}],"predecessor-version":[{"id":931880,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/931876\/revisions\/931880"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/931879"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=931876"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=931876"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=931876"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}