摘要:
http://stackoverflow.com/questions/2823316/generate-a-random-letter-in-python 我觉得自己搞定义字符串,比通过string模块好吧 数字string.digits string模块有各种可用字符集的分类,可以参考 阅读全文
摘要:
BeautifulSoup是一个类 b = BeautifulSoup(html) b对象有与html结构相关的各种方法和和属性。 a = b.findAll('a')获得标签的对象 a对象又有关于属性的各种方法和属性吧 获取某网页的所有连接: 对网址没有域名以及锚点等href处理: http:// 阅读全文
摘要:
Counter类 介绍:A counter tool is provided to support convenient and rapid tallies 构造:class collections.Counter([iterable-or-mapping]) 是dict的子类:取:c['cats' 阅读全文