﻿{"id":479,"date":"2020-08-02T06:00:58","date_gmt":"2020-08-01T22:00:58","guid":{"rendered":"https:\/\/byy3.com\/?p=479"},"modified":"2021-01-09T10:10:27","modified_gmt":"2021-01-09T02:10:27","slug":"%e3%80%90python%e3%80%91%e5%8d%b8%e8%bd%bd%e5%ae%8cpython3-%e4%b9%8b%e5%90%8e-python2-%e6%97%a0%e6%b3%95%e6%89%93%e5%bc%80idle","status":"publish","type":"post","link":"https:\/\/byy3.com\/?p=479","title":{"rendered":"\u3010Python\u3011\u5378\u8f7d\u5b8cPython3 \u4e4b\u540e Python2 \u65e0\u6cd5\u6253\u5f00IDLE"},"content":{"rendered":"<blockquote>\n<h4>\u76ee\u5f55<\/h4>\n<p>1.\u9996\u5148\u662f\u8bbe\u7f6e\u73af\u5883\u53d8\u91cf\uff1a<br \/>\n2.\u5728\u7f51\u4e0a\u767e\u5ea6\u5230\u4ee5\u4e0b\u65b9\u6cd5\uff1a<br \/>\n3 .\u66f4\u6539\u6587\u4ef6\u5939\u7684\u6743\u9650<br \/>\n4.\u91cd\u65b0\u5728\u63a7\u5236\u53f0\u8f93\u5165 python lib\\idlelib\\idle.py<\/p><\/blockquote>\n<p>\u5b89\u88c5\u5b98\u65b9\u7684Python\u5e26Idle\u4f46\u662f\u5374\u65e0\u6cd5\u6253\u5f00\uff0c\u767e\u5ea6\u8c37\u6b4c\u4e86\u51e0\u79cd\u89e3\u51b3\u65b9\u6cd5\uff0c\u52a0\u4e0a\u81ea\u5df1\u7684\u5b9e\u9645\u5883\u51b5\u4e88\u4ee5\u89e3\u51b3\u3002<\/p>\n<p>\u6211\u7684python\u662f\u76f4\u63a5\u5b89\u88c5\u5728C\u76d8\u4e0b\u7684\u3002<\/p>\n<h3 id=\"1\u9996\u5148\u662f\u8bbe\u7f6e\u73af\u5883\u53d8\u91cf\uff1a\">1.\u9996\u5148\u662f\u8bbe\u7f6e\u73af\u5883\u53d8\u91cf\uff1a<\/h3>\n<p>Path=C:\\Python27<\/p>\n<p>PYTHONPATH= C:\\Python27\\Lib;C:\\Python27\\Lib\\tkinter<\/p>\n<p>TCL_LIBRARY=C:\\Python27\\tcl\\tcl8.5<\/p>\n<p>TK_LIBRARY=C:\\Python27\\tcl\\tk8.5<\/p>\n<p>\u8bd5\u7740\u53bb\u6253\u5f00\u4ecd\u7136\u6253\u4e0d\u5f00\u3002\u63a5\u7740\u627e\u539f\u56e0\u3002<\/p>\n<h3 id=\"2\u5728\u7f51\u4e0a\u767e\u5ea6\u5230\u4ee5\u4e0b\u65b9\u6cd5\uff1a\">2.\u5728\u7f51\u4e0a\u767e\u5ea6\u5230\u4ee5\u4e0b\u65b9\u6cd5\uff1a<\/h3>\n<p>\u201c \u628aWindows\u4e0b\u7cfb\u7edf\u76d8:\\Documents and Settings&lt;your User Name&gt;.idlerc\"<\/p>\n<p>\u6216\u8005\u662f Linux\u4e0b home\/your name\/.idlerc \u91cc\u9762\u7684 config-main.cfg \u548c config-extensions.cfg \u5f7b\u5e95\u5220\u4e86<br \/>\n( \u5efa\u8bae\u5148\u5907\u4efd\u4ee5\u4fbf\u5206\u6790\u9519\u8bef\u539f\u56e0 )<br \/>\n\u518d\u91cd\u65b0\u542f\u52a8IDLE<\/p>\n<p>\u5982\u679c\u8fd8\u4e0d\u80fd\u542f\u52a8<br \/>\n\u81ea\u5df1\u5728\u63a7\u5236\u53f0\u4e0b\u8fd0\u884c<br \/>\n..&gt; python lib\\idlelib\\idle.py<\/p>\n<p>\u8ddf\u8e2a\u4e0b\u9519\u8bef\u63d0\u793a\u5206\u6790\u5427 \u201d<\/p>\n<p>\u6211\u7684\u76f4\u63a5\u5c31\u6ca1\u6709.idlerc\u90a3\u4e2a\u6587\u4ef6\u5939\u3002 \u7136\u540e\u5728\u63a7\u5236\u53f0\u4e2d\u8fdb\u5165python27\u6587\u4ef6\u5939\u4e0b\uff0c\u8fd0\u884c\u547d\u4ee4<br \/>\npython lib\\idlelib\\idle.py<br \/>\n\u63d0\u793a\u662f\uff1a<\/p>\n<p>Warning\uff1aunable to create user config directory C:\\Users\\bigfool.idlerc<\/p>\n<p>Check path and permissions.<\/p>\n<p>Exiting!<\/p>\n<p>\u8c8c\u4f3c\u662f\u6587\u4ef6\u5939\u6743\u9650\u7684\u95ee\u9898<\/p>\n<h3 id=\"3-\u66f4\u6539\u6587\u4ef6\u5939\u7684\u6743\u9650\">3 .\u66f4\u6539\u6587\u4ef6\u5939\u7684\u6743\u9650<\/h3>\n<p>\u5728\u6587\u4ef6\u5939\u4e0aC:\\User\\bigfool\u53f3\u952e\u300b\u5c5e\u6027\u300b\u5b89\u5168\u300b\u9ad8\u7ea7<\/p>\n<p>\u6211\u7684\u91cc\u9762\u6709\u4e09\u4e2a\u7528\u6237\uff1a<\/p>\n<p>\u5176\u4e2d\u4e24\u4e2a\u662f\u5b8c\u5168\u63a7\u5236\uff0cerveryone\u7528\u6237\u662f\u201c\u8bfb\u53d6\u548c\u6267\u884c\u201d\u6743\u9650\u3002<\/p>\n<p>\u5bf9erveryone\u7528\u6237\u6dfb\u52a0\u6743\u9650\uff1a<\/p>\n<p>\u70b9\u51fb\u201c\u6dfb\u52a0\u201d\u6309\u94ae\uff0c\u8f93\u5165\u8981\u9009\u62e9\u7684\u5bf9\u8c61\u540d\u79f0everyone,\u6216\u8005\u70b9\u201c\u9ad8\u7ea7\u300b\u7acb\u5373\u641c\u7d22\u201d\u627e\u5230erveryone\u3002<\/p>\n<p>\u70b9\u51fb\u201c\u786e\u5b9a\u201d\u9009\u201c\u5b8c\u5168\u63a7\u5236\u201d\u6743\u9650<\/p>\n<p>\u518d\u70b9\u51fb\u201c\u786e\u5b9a\u201d<\/p>\n<h3 id=\"4\u91cd\u65b0\u5728\u63a7\u5236\u53f0\u8f93\u5165-python-libidlelibidlepy\">4.\u91cd\u65b0\u5728\u63a7\u5236\u53f0\u8f93\u5165 python lib\\idlelib\\idle.py<\/h3>\n<p>\u5927\u529f\u544a\u6210\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u76ee\u5f55 1.\u9996\u5148\u662f\u8bbe\u7f6e\u73af\u5883\u53d8\u91cf\uff1a 2.\u5728\u7f51\u4e0a\u767e\u5ea6\u5230\u4ee5\u4e0b\u65b9\u6cd5\uff1a 3 .\u66f4\u6539\u6587\u4ef6\u5939\u7684\u6743\u9650 4.\u91cd\u65b0\u5728\u63a7\u5236\u53f0\u8f93\u5165 py [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[20],"tags":[352],"class_list":["post-479","post","type-post","status-publish","format-standard","hentry","category-python","tag-python"],"_links":{"self":[{"href":"https:\/\/byy3.com\/index.php?rest_route=\/wp\/v2\/posts\/479","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/byy3.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/byy3.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/byy3.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/byy3.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=479"}],"version-history":[{"count":0,"href":"https:\/\/byy3.com\/index.php?rest_route=\/wp\/v2\/posts\/479\/revisions"}],"wp:attachment":[{"href":"https:\/\/byy3.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=479"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/byy3.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=479"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/byy3.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=479"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}