Skip to content

Instantly share code, notes, and snippets.

@tahmasebi
Last active August 29, 2015 14:13
How to convert bytes to integer in python
# bytes variable is your byte array
int_number = int.from_bytes(bytes, byteorder="big", signed=False)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment