
Python
scgillian
这个作者很懒,什么都没留下…
展开
-
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 · 5538 阅读 · 0 评论 -
python regular expression
匹配单个字符的基本模式 cite from google python class https://developers.google.com/edu/python/regular-expressions?hl=zh-CN The power of regular expressions is that they can specify patterns, not just原创 2013-03-31 10:40:38 · 1504 阅读 · 0 评论