Skip to content

Instantly share code, notes, and snippets.

@hayatoito
Created October 2, 2012 13:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hayatoito/3818992 to your computer and use it in GitHub Desktop.
Save hayatoito/3818992 to your computer and use it in GitHub Desktop.
わかめ化
#!/usr/bin/env python
# encoding: utf-8
import binascii
import sys
table = {'0': 'WA', '1': 'KA', '2': 'ME', '3': u'♡',
'4': 'wa', '5': 'ka', '6': 'me', '7': u'☆',
'8': 'Wa', '9': 'Ka', 'a': 'Me', 'b': u'♪',
'c': 'wA', 'd': 'kA', 'e': 'mE', 'f': u'♫'}
print ' '.join(table[c] for c in binascii.hexlify(sys.stdin.read()))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment