def get_spn(unit):
    """获取文本行中非中文字符数的个数

    Keyword arguments:
    unit                    -- 文本行
    Return:
        spn                 -- 特殊字符数
    """
    spn = 0
    match_re = re.findall(no_chinese, unit)
    if match_re:
        string = ''.join(match_re)
        spn = len(string)
    return int(spn)