Created
November 11, 2013 09:18
-
-
Save st98/7410302 to your computer and use it in GitHub Desktop.
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
import re | |
s = ''' | |
01001001 01101110 | |
01110100 01100101 | |
01101100 00100000 | |
01001000 01100101 | |
01100001 01110010 | |
01110100 01110011 | |
00100000 01011001 | |
01101111 01110101 | |
''' | |
s = re.split('\s', s.strip()) | |
s = map(lambda a: chr(int(a, 2)), s) | |
print(''.join(s)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment