标签:style blog http os 2014 log python on
To find the most common words, we can apply the DSU pattern; most_common takes a histogram and returns a list of word-frequency tuples, sorted in reverse order by frequency:
Here is a loop that prints the ten most common words:
from Thinking in Python
Most common words,布布扣,bubuko.com
标签:style blog http os 2014 log python on
原文地址:http://www.cnblogs.com/ryansunyu/p/3917884.html