202009-25 python3 配置logging日志类的操作 配置类config_file:fromconfigparserimportConfigParserclassconfig_file:def__init__(self,conf_filePath,encoding="utf-8"):#打开配置文件,实例化ConfigParser类,并以默认utf-8的编码格式读取文件self.cf=ConfigParser()self.cf.read(conf_filePath,encoding)defget_Int_Value(self,section,option):#获取整数returnself.cf.getint(section,option)defget_boolValue(self,section,option... 继续阅读 >