 |
最新产品 |
|
|
| |
| |
| |
| |
|
|
 |
技术资料下载 |
当前位置:首页 - 技术资料下载 |
| PYTHON 2.2 IDLE 中文字串处理设定方法 |
 |
| 文:yunfly 来源:
时间:2007-9-30 22:15:51
点击:349 |
 |
|
|
| |
1.在 \python22\Lib\ 中的 site.py 第289行
encoding = "ascii" # Default value set by _PyUnicode_Init()
改为
encoding = "mbcs" # Default value set by _PyUnicode_Init()
2.将 \python22\tcl 中的资料夹
\python22\tcl\tcl8.3
\python22\tcl\tk8.3
复制到Lib中成为
\python22\Lib\tcl8.3
\python22\Lib\tk8.3
3.在 \python22\Tools\idle 中的 Outwindow.py 第37行
self.text.insert(mark, s, tags)
改为
self.text.insert(mark, unicode(str(s)), tags) |
|
| 版权所有:永创科技 |
| |
|
|
| |
|
|