0
これはNLTKの本からの質問ですが、私は立ち往生しました。どのようにこれをネストされたリストの理解として書くかを知っていますか?nltkのpythonネストされたリストの理解
>>> words = ['attribution', 'confabulation', 'elocution',
... 'sequoia', 'tenacious', 'unidirectional']
>>> vsequences = set()
>>> for word in words:
... vowels = []
... for char in word:
... if char in 'aeiou':
... vowels.append(char)
... vsequences.add(''.join(vowels))
>>> sorted(vsequences)
['aiuio', 'eaiou', 'eouio', 'euoia', 'oauaio', 'uiieioa']
恐ろしい、自分の考えを共有するためのおかげとして必要な場合には、
を行うことができます! – thatMeow