python wordcount练习
google python class上的练习
一个是统计文件中每个单词出现次数的,注意在用for line in f获取每行的字符的时候,为了从该行字符中提取单独的单词需要用split()方法。
sorted(iterable[, key][, reverse])
Return a new sorted list from the items in iterable.,sorte
原创
2013-04-29 20:26:39 ·
5436 阅读 ·
0 评论