首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > 编程 >

怎么在Idel中显示中日韩文

2013-08-29 
如何在Idel中显示中日韩文1.打开python安装目录\idellib\IOBinding.py文件2.找到底35行 插入一行如下:enco

如何在Idel中显示中日韩文
1.打开python安装目录\idellib\IOBinding.py文件
2.找到底35行 插入一行如下:

encoding = "ascii" # line 35if sys.platform == 'win32':# On Windows, we could use "mbcs". However, to give the user# a portable encoding name, we need to find the code pagetry:encoding = locale.getdefaultlocale()[1]codecs.lookup(encoding)except LookupError:passencoding = 'utf-8' ## <- this line force the encoding to utf-8.

3.保存文件,重新启动Idle就OK了.

热点排行