Integer como array de bytes - Python
Iniciado por
Nello
, jun 22 2014 23:09
Pulsa corazón para recibir avisos de nuevas Respuestas
Nello
AUTOR PREGUNTA
#1
Publicado 22 junio 2014 - 23:09
¿Cómo puedo tratar un Integer como un array de bytes en Python?
Esto también te interesa!
Jhony10
#2
Publicado
23 junio 2014 - 05:31
Con el siguiente código puedes hacer lo que necesitas:
signum = status & 0xff
exitstatus = (status & 0xff00) >> 8
Respuesta de
Jhony10
Cuenta Std
386
Nello
AUTOR PREGUNTA
#3
Publicado 23 junio 2014 - 05:53
Gracias Jhony