On 09/09/20 9:41 pm, Mohamed ali Abdul wrote:
Hello to all,

The binary file is to be converted in to human readable format.
Each four byte data to be converted using python

How about the following?

binary = b'\x00...'


from array import array
arr = array('i')
arr.frombytes(binary)
print(arr)

Regards,

Vijay

_______________________________________________
Chennaipy mailing list
Chennaipy@python.org
https://mail.python.org/mailman/listinfo/chennaipy

Reply via email to