pythonの練習のため。
#coding: UTF-8
import itertools #順列
from DictionaryServices import * #辞書
text=u"ぱいっお"
tmp=list(itertools.permutations(range(len(text))))
for x in tmp:
word=u""
for k in range(0,len(text)):
word+=text[x[k]]
result = DCSCopyTextDefinition(None, word, (0, len(word)))
if result != None:
print "%s \n" % result
#coding: UTF-8
import itertools #順列
from DictionaryServices import * #辞書
text=u"ぱいっお"
tmp=list(itertools.permutations(range(len(text))))
for x in tmp:
word=u""
for k in range(0,len(text)):
word+=text[x[k]]
result = DCSCopyTextDefinition(None, word, (0, len(word)))
if result != None:
print "%s \n" % result