Last active
August 29, 2015 14:20
-
-
Save thomaspatzke/57a16a41b6687b291007 to your computer and use it in GitHub Desktop.
Hex-only dump in Python in one line
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
print("\n".join([" ".join(["{:02x}".format(c) for c in bin[i:i+16]]) for i in range(0, len(bin), 16)])) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment