import configparser config_file_path = '/conf/config.ini' config = configparser.ConfigParser() def get_config_object(): return config """ 返回配置对象 """