2017年11月1日
摘要: import urllib.requestimport reresponse = urllib.request.urlopen("http://tieba.baidu.com/p/2460150866")page = response.read()page = page.decode('utf-8' 阅读全文
posted @ 2017-11-01 23:04 vsmart 阅读(240) 评论(0) 推荐(0) 编辑
摘要: import reimport urllib.request# import urllibimport osdef getHtml(url): page = urllib.request.urlopen(url) html = page.read() return html.decode('UTF- 阅读全文
posted @ 2017-11-01 22:40 vsmart 阅读(315) 评论(0) 推荐(0) 编辑