Skip to content

Instantly share code, notes, and snippets.

@shogo82148
Last active February 28, 2019 07:22
Show Gist options
  • Save shogo82148/5fcad3c9c239a54ac38541aeddd18acd to your computer and use it in GitHub Desktop.
Save shogo82148/5fcad3c9c239a54ac38541aeddd18acd to your computer and use it in GitHub Desktop.
2字の漢字の組み合わせを列挙する
import sys
import itertools
a = [l.rstrip() for l in sys.stdin]
for l in itertools.product(a, a):
print(''.join(l))
curl https://encoding.spec.whatwg.org/index-jis0208.txt | grep CJK | cut -f3 | cut -d' ' -f1 | sort | uniq | python product.py
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment