docs: def hex2bin(s):
      """
      hex2tobin
      十六进制 to 二进制: bin(int(str,16))
      :param s:
      :return:
      """
      if len(s) % 2 != 0:
          s += '0'
  
      result = []
      for i in range(len(s) // 2):
          t = s[i * 2:(i + 1) * 2]
          x = dec2bin(hex2dec(t.upper()))
          padding_length = (8 - len(x) % 8) % 8
          # 每个16进制值（2个字符）进行转码，不足8个的，在前面补0
          x = '%s%s' % ('0' * padding_length, x)
          result.append(x)
  
      return ''.join(result)