def clear_salary(self, salary):
    lists = salary.split('/')[0].split('-')
    (min, max) = lists
    unit = 10000
    if ('千' in max):
        unit = 1000
        max = max.replace('千', '')
    else:
        max = max.replace('万', '')
    print(max)
    result = {}
    result['min'] = (float(min) * unit)
    result['max'] = (float(max) * unit)
    result['avg'] = ((result['max'] + result['min']) / 2)
    return result
def clear_salary(self, salary):
    lists = salary.split('/')[0].split('-')
    (min, max) = lists
    unit = 10000
    if ('千' in max):
        unit = 1000
        max = max.replace('千', )
    else:
        max = max.replace('万', )
    print(max)
    result = {}
    result['min'] = (float(min) * unit)
    result['max'] = (float(max) * unit)
    result['avg'] = ((result['max'] + result['min']) / 2)
    return result