运维网's Archiver
论坛
›
Python
› python 访问网站
butter7372
发表于 2017-4-21 11:41:19
python 访问网站
python版本3.5
import urllib.request
url = "http://www.baidu.com"
html = urllib.request.urlopen(url).read()
print(html)
页:
[1]
查看完整版本:
python 访问网站