#.-*-.coding:.utf-8.-*-
#.__author__.=."HaoPeng"
#.Date:.2019/9/17

import configparser

def get_config(config_file):
    parser = configparser.ConfigParser()
    parser.read(config_file)
    _conf_ints = [(k, int(v)) for k, v in parser.items('ints')]
    _conf_floats = [(k, int(v)) for k, v in parser.items('floats')]
    _conf_strings = [(k, int(v)) for k, v in parser.items('strings')]
    return dict(_conf_ints + _conf_floats + _conf_strings)

