基本读取网页方法 Python3

>>> import urllib.requesthtml

>>> response = urllib.request.urlopen('http://www.baidu.com/')>>> html = response.read()web

>>> print (html)url

>>> import urllib.requestspa

>>> print (urllib.request.urlopen('http://www.baidu.com/').read())orm

相关文章
相关标签/搜索