
获取配置文件中的数据
import configparser
class ReadConfig(object):
    def __init__(self,config_file_path):
        self.config = configparser.ConfigParser()
        self.config.read(config_file_path,encoding='utf-8')
    def get_config(self,section,option):
        config_value=self.config.get(section,option)
        return config_value
 
                


















