def _convert_params_values(self, values_list, params_types): """ Converts the values to the specifics types """ values = list() i = 0 for v in values_list: if v != None: values.append(types.convert(v,params_types[i])) else: values.append(v) i+=1 return values
def _convert_params_values(self, values_list, params_types): """ Converts the values to the specifics types """ values = list() i = 0 for v in values_list: if v != None: values.append(types.convert(v, params_types[i])) else: values.append(v) i += 1 return values
def _convert_params_values(values_list, params_types): """ 根据指定的参数类型列表,对参数进行类型传观 :param values_list: :param params_types: :return: """ values = list() i = 0 for v in values_list: if v: values.append(types.convert(v, params_types[i])) else: values.append(v) i += 1 return values