Last active
February 28, 2019 07:22
-
-
Save shogo82148/5fcad3c9c239a54ac38541aeddd18acd to your computer and use it in GitHub Desktop.
2字の漢字の組み合わせを列挙する
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 sys | |
import itertools | |
a = [l.rstrip() for l in sys.stdin] | |
for l in itertools.product(a, a): | |
print(''.join(l)) |
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
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