(self, datas, distance_fun)
function:
            init 
        params:
            datas 数据
            distance_fun 计算两个数据之间的距离
function:
            init 
        params:
            datas 数据
            distance_fun 计算两个数据之间的距离
function : init params : datas 数据 distance_fun 计算两个数据之间的距离
def __init__(self, datas, distance_fun):
        '''
        function:
            init 
        params:
            datas 数据
            distance_fun 计算两个数据之间的距离
        '''
        self.lable_dict = {datas[index][0]:index   for index in range(len(datas))}
        self.distance_map = self.create_distance_map(datas, distance_fun)
        self.data_len = len(datas)
def __init__ ( self , datas , distance_fun ) : self . lable_dict = { datas [ index ] [ 0 ] : index for index in range ( len ( datas ) ) } self . distance_map = self . create_distance_map ( datas , distance_fun ) self . data_len = len ( datas )