Renumber to make the flow better

This commit is contained in:
Crista Lopes
2014-01-05 07:40:17 -08:00
parent ce0bef372e
commit f0445b3c61
13 changed files with 0 additions and 0 deletions

6
06-code-golf/tf-06.py Executable file
View File

@@ -0,0 +1,6 @@
#!/usr/bin/env python
import heapq, re, sys
words = re.findall("[a-z]{2,}", open(sys.argv[1]).read().lower())
for w in heapq.nlargest(25, set(words) - set(open("../stop_words.txt").read().split(",")), words.count):
print w, "-", words.count(w)