socket.gaierror:[Errno 11001] getaddrinfo失败#urllib.error.URLError:<urlopen错误[Errno 11001] getaddrinfo失败>

时间:2020-04-12 11:53:24

标签: python-3.x http web-scraping socket.io urllib

导入urllib.request,urllib.parse,urllib.error fhand = urllib.request.urlopen('http://http://data.pr4e.org/romeo.txt') 对于手中的线: 打印(line.decode()。strip())

0 个答案:

没有答案