复制代码 代码如下:# -*- coding:utf-8 -*-__author__ = ‘walkskyer’ import osimport glob class Encoding: def __init__(self): #文件扩展名 self.ext = “.*” #编码 self.srcEncoding=None self.dstEncoding=None def convertEncoding(self, content, srcEncoding=None, dstEncoding=None):