parameters: (sn)
docstring: 转化序列号，去掉空格
      :param mac:
      :return:
docstring_summary: 转化序列号，去掉空格
      :param mac:
      :return:
docstring_tokens: 转化序列号，去掉空格 : param mac : : return :
function: def sn_trans(sn):
      '''
      转化序列号，去掉空格
      :param mac:
      :return:
      '''
      if sn:
          tmp=sn.split('\n')
          sn_res=''
          for i in tmp:
              if i:
                  if i[0]=='#' or i[0]=='\n':
                      pass
                  else:
                      sn_res = sn_res+i
          return sn_res
      else:
          return ""
function_tokens: def sn_trans ( sn ) : if sn : tmp = sn . split ( '\n' ) sn_res = '' for i in tmp : if i : if i [ 0 ] == '#' or i [ 0 ] == '\n' : pass else : sn_res = sn_res + i return sn_res else : return ""