tesdt

def get_data(section,item):
        'get data from config.ini'
        dataConfig = ConfigParser.ConfigParser()
        dataConfig.read(config_file_path)

        data = dataConfig.get(section,item)
        data = data[1:-1]
        data = data.split(',') 
        return data

def dis_data(game_name):
        dbuser = get_data(game_name,dbuser)
        dbpasswd = get_data(game_name,dbpasswd)
        dbclient = get_data(game_name,dbclient)
 

你可能感兴趣的:(tesdt)