欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

python 访问网站 python 

程序员文章站 2022-06-08 09:07:23
...
python版本3.5
import urllib.request
url = "http://www.baidu.com"
html = urllib.request.urlopen(url).read()
print(html)
相关标签: python