python实现文件编码转换_Python实现批量转换文件编码的方法
本文实例讲述了Python实现批量转换文件编码的方法。分享给大家供大家参考。具体如下:这里将某个目录下的所有文件从一种编码转换为另一种编码,然后保存import osimport shutildef match(config,fullpath,type):flag=Falseif type == 'exclude':for item in config['src']['exclude']:if f...