- 博客(2)
- 收藏
- 关注
原创 python爬虫利用正则提取指定网页信息
今天练习了一下正则表达式,从结构比较复杂的html代码中,提取出想要的信息 html = ''' <div id="songs-list"> <h2 class="title">流行金曲</h2> <p class = "introduction">经典歌曲列表</p> <ul id="list" c...
2019-05-23 15:20:08 3843
原创 python列表计数
def countListNum( num_list): nl = num_list count_list = {} for key in nl: count_list[key] = count_list.get(key, 0) + 1 return count_list 代码很简洁,但是有句代码搞不...
2019-04-22 14:57:12 2234
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人