code: def get_spn(unit):
      
      spn = 0
      match_re = re.findall(no_chinese, unit)
      if match_re:
          string = ''.join(match_re)
          spn = len(string)
      return int(spn)
docs: 获取文本行中非中文字符数的个数
  
      Keyword arguments:
      unit                    -- 文本行
      Return:
          spn                 -- 特殊字符数