|

楼主 |
发表于 2017-10-23 17:21:37
|
显示全部楼层
- Traceback (most recent call last):
- File "C:\Users\hp\Desktop\煎蛋妹子图.py", line 46, in <module>
- open_url(220)
- File "C:\Users\hp\Desktop\煎蛋妹子图.py", line 39, in open_url
- urllib.request.urlretrieve(each,imgname,None)
- File "C:\Python34\lib\urllib\request.py", line 178, in urlretrieve
- with contextlib.closing(urlopen(url, data)) as fp:
- File "C:\Python34\lib\urllib\request.py", line 153, in urlopen
- return opener.open(url, data, timeout)
- File "C:\Python34\lib\urllib\request.py", line 440, in open
- req = Request(fullurl, data)
- File "C:\Python34\lib\urllib\request.py", line 258, in __init__
- self.full_url = url
- File "C:\Python34\lib\urllib\request.py", line 284, in full_url
- self._parse()
- File "C:\Python34\lib\urllib\request.py", line 313, in _parse
- raise ValueError("unknown url type: %r" % self.full_url)
- ValueError: unknown url type: '//wx3.sinaimg.cn/mw600/bfa8123ely1fkhmdg6fzcj21kw11zq9m.jpg'
复制代码
有是这样的报错 我也不知道怎么回事print可以打印出来可是就是保存不了 |
|