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
#!/usr/local/bin/python | |
# coding: utf-8 | |
import sys, json, codecs | |
dic = json.load(codecs.open('dic.json', 'r', 'utf-8')) | |
# input comes from STDIN (standard input) | |
for line in sys.stdin: | |
# 行を単語に分割する | |
words = line.strip().split() |