python 访问网站

python版本3.5
import urllib.request
url = "http://www.baidu.com"
html = urllib.request.urlopen(url).read()
print(html)

猜你喜欢

转载自qzxfl008.iteye.com/blog/2243970