def strip()

in utils/compute_score.py [0:0]


def strip(target_str, strip_lst='\n.;'):
    '''进行字符串的strip'''
    new_str = target_str.strip(strip_lst)
    new_str = re.sub('^\s+', '', new_str)
    new_str = re.sub('\s+$', '', new_str)
    return new_str