from urllib.request import urlopen response=urlopen("http://www.bing.com") print(response.closed) with response: print(1,type(response)) print(2,response.status,response.reason) print(3,response.geturl()) print(4,response.info()) print(5,response.read()) print(response.closed)
python爬虫urllib python3
最新推荐文章于 2024-01-12 10:49:52 发布