摘要: 需求:将utf-8格式的文件转换成gbk格式的文件实现代码如下:def ReadFile(filePath,encoding="utf-8"): with codecs.open(filePath,"r",encoding) as f: return f.read() def W... 阅读全文
posted @ 2015-01-21 21:31 曾是土木人 阅读(23019) 评论(0) 推荐(2) 编辑