PYTHON 2.2 IDLE 中文字串处理设定方法
来源:互联网 发布:在线php 编辑:程序博客网 时间:2024/06/01 07:28
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)
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)
- PYTHON 2.2 IDLE 中文字串处理设定方法
- python中文字串处理中的陷阱
- MAC Python IDLE中文
- Python IDLE 中文乱码问题
- Python的IDLE清屏方法
- python中文处理好方法
- python中文处理好方法
- Mac python IDLE不支持中文输入解决方法
- mac下打开python IDLE的方法
- Python IDLE中更改路径的方法
- Python IDLE或Python Shell不支持中文编码的解决方案
- python IDLE
- python IDLE
- python IDLE
- Python IDLE
- Python IDLE
- [python]Python IDLE清屏
- 解决python idle 无法启动的一种方法
- 浑浑噩噩的周末
- PEBrowse Professional Interactive 8.0
- 818pro刷机成功
- 关于SWT drawLine bug的进一步验证
- 江涛与《再给我十年》
- PYTHON 2.2 IDLE 中文字串处理设定方法
- 小波变换介绍
- 老唐谈沙龙病重
- 得到网络端口使用情况的两个函数
- Tomcat 数据源学习笔记
- 研学论坛
- Semi VB Decompiler
- 键盘F1~F12的用处!
- 留学韩国的十大优点