将socket收到的16进制转成字符串

def hex_to_str(b):

  s = ''
  for i in b:
    s += '{0:0>2}'.format(str(hex(i))[2:])
  return(s)