예제 #1
0
 def on_load_words(self):
     with askopenfile() as f:
         self.words = count(load(f))
         self.on_show_words()
예제 #2
0
def top_words(words, qty=20):
    return lines(top(count(words), qty))
예제 #3
0
 def on_load_words(self):
     with askopenfile() as f:
         self.words = count(load(f))
         self.on_show_words()
예제 #4
0
def count_words(words):
    return lines(asc(count(words)))