Created
April 16, 2019 09:39
-
-
Save upidea/27534426488820138cd1109fc0760819 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| # Format data | |
| out = "\n".join([ | |
| " ".join([ | |
| f"{data[i+1]:02x}{data[i]:02x}" | |
| for i in range(line, min(line + 256, length), 16) | |
| ]) | |
| for line in range(0, length, 256) | |
| ]) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment