摘要: 1 import re 2 import urllib.request 3 4 # ------ 获取网页源代码的方法 --- 5 def getHtml(url): 6 page = urllib.request.urlopen(url) 7 html = page.read() 8 return html 9 10 # ------ getHtm... 阅读全文
posted @ 2017-09-11 01:36 feral 阅读(1572) 评论(0) 推荐(0) 编辑