|
楼主 |
发表于 2020-3-15 13:17:47
From FishC Mobile
|
显示全部楼层
Traceback (most recent call last):
File "C:/Program Files/Python37/dowload_cat.py", line 4, in <module>
response = urllib.request.urlopen(req)
File "C:\Program Files\Python37\lib\urllib\request.py", line 222, in urlopen
return opener.open(url, data, timeout)
File "C:\Program Files\Python37\lib\urllib\request.py", line 525, in open
response = self._open(req, data)
File "C:\Program Files\Python37\lib\urllib\request.py", line 543, in _open
'_open', req)
File "C:\Program Files\Python37\lib\urllib\request.py", line 503, in _call_chain
result = func(*args)
File "C:\Program Files\Python37\lib\urllib\request.py", line 1347, in http_open
return self.do_open(http.client.HTTPConnection, req)
File "C:\Program Files\Python37\lib\urllib\request.py", line 1322, in do_open
r = h.getresponse()
File "C:\Program Files\Python37\lib\http\client.py", line 1344, in getresponse
response.begin()
File "C:\Program Files\Python37\lib\http\client.py", line 306, in begin
version, status, reason = self._read_status()
File "C:\Program Files\Python37\lib\http\client.py", line 267, in _read_status
line = str(self.fp.readline(_MAXLINE + 1), "iso-8859-1")
File "C:\Program Files\Python37\lib\socket.py", line 589, in readinto
return self._sock.recv_into(b)
ConnectionResetError: [WinError 10054] 远程主机强迫关闭了一个现有的连接。
重新运行就这个样子 |
|