python-codecs.open()使用举例
2016-07-22 14:10
351 查看
代码:
参考:
http://blog.csdn.net/suofiya2008/article/details/5579413
import codecs from unidecode import unidecode def main(): fullFilename="123.txt" inFID=codecs.open(fullFilename,'r','utf-8') ALines = inFID.readlines() for k in range(len(ALines)): ALines[k] = unidecode(ALines[k]) print(ALines[k]) inFID.close() main()
参考:
http://blog.csdn.net/suofiya2008/article/details/5579413
相关文章推荐
- python 循环结构
- python使用post方式提交数据
- python 分支结构
- python-os.walk()使用举例
- 如何利用python+mySQL写个数据库并且利用python将所需变量值写入数据库
- Python:其他知识点
- Python函数第二节
- python实现telnet
- Python的chardet模块安装
- Python的chardet模块安装
- Python的chardet模块安装
- Python的chardet模块安装
- Python的chardet模块安装
- Python的chardet模块安装
- Python的chardet模块安装
- Python的chardet模块安装
- Python的chardet模块安装
- Python的chardet模块安装
- Python的chardet模块安装
- Python自定义豆瓣电影种类,排行,点评的爬取与存储(进阶上)