代码:

 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

最新文章

  1. 程序员面试大揭秘——应聘微软、亚马逊、谷歌、苹果等IT公司你都要做什么准备?
  2. xamarin误删vEthernet(internal Ethernet Port Windows Phone Emulator) 网络设备的处理。
  3. Linux下的压缩zip,解压缩unzip命令详解及实例
  4. WebPack系列:Webpack编译的代码如何在tomcat中使用时静态资源路径不对的问题如何解决
  5. 批处理命令——for
  6. LR处理文件上传和下载
  7. “requireJs前传”之为什么要用前端模块化?
  8. 设计模式 命令-Command
  9. excel用vlookup,lookup时查询数据需要排序
  10. 用pip爽久了,竟然完了easy install安装过程了
  11. 【OpenGL】入门
  12. vijos 1234 口袋的天空
  13. Pandas系列之入门篇
  14. jQuery的Nicescroll滚动条插件使用方法
  15. linux用curl发送post请求
  16. access denied for user 'root'@'localhost'(using password:YES) FOR WINDOWS
  17. webpack报错需要合适的loader
  18. java中Set的用法
  19. Mysql 基本的增删改查
  20. python threading模块2

热门文章

  1. cocos2dx-3.1 接入多盟广告sdk+Android (2)
  2. inline-block的使用
  3. iOS用户是否打开APP通知开关跳转到系统的设置界面
  4. 多媒体开发之---h.264 SPS PPS解析源代码,C实现一以及nal分析器
  5. RESTful设计模式状态码code说明
  6. 一个兼容性比较好的图片左右滚动的js
  7. [深入浅出Cocoa]iOS程序性能优化
  8. 小程序 富文本 的页面展示 json 数据处理 go-echo 为小程序提供feed流服务
  9. mybatis入门(十)
  10. 20170316 REUSE_alv_display_lvc 面向对象函数