摘要:
BeautifulSoup是一个类 b = BeautifulSoup(html) b对象有与html结构相关的各种方法和和属性。 a = b.findAll('a')获得标签的对象 a对象又有关于属性的各种方法和属性吧 获取某网页的所有连接: 对网址没有域名以及锚点等href处理: http:// 阅读全文
posted @ 2017-05-19 16:10
daduryi
阅读(201)
评论(0)
推荐(0)
摘要:
Counter类 介绍:A counter tool is provided to support convenient and rapid tallies 构造:class collections.Counter([iterable-or-mapping]) 是dict的子类:取:c['cats' 阅读全文
posted @ 2017-05-19 11:00
daduryi
阅读(177)
评论(0)
推荐(0)

浙公网安备 33010602011771号