Tidy up, make line numbers consistent with text
This commit is contained in:
@@ -3,4 +3,4 @@ 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))
|
||||
print(w, '-', words.count(w))
|
||||
|
||||
Reference in New Issue
Block a user