- 帖子
- 5
- 精华
- 0
- 积分
- 16
- 阅读权限
- 10
- 注册时间
- 2018-1-27
- 最后登录
- 2018-1-28
|
我复制过去,运行后发生这样的事:
================== RESTART: C:/Users/wangsheng/Desktop/5.py ==================
Traceback (most recent call last):
File "C:/Users/wangsheng/Desktop/5.py", line 11, in <module>
content2 = urllib2.urlopen(url2).read()
File "C:\Python27\lib\urllib2.py", line 154, in urlopen
return opener.open(url, data, timeout)
File "C:\Python27\lib\urllib2.py", line 429, in open
response = self._open(req, data)
File "C:\Python27\lib\urllib2.py", line 447, in _open
'_open', req)
File "C:\Python27\lib\urllib2.py", line 407, in _call_chain
result = func(*args)
File "C:\Python27\lib\urllib2.py", line 1228, in http_open
return self.do_open(httplib.HTTPConnection, req)
File "C:\Python27\lib\urllib2.py", line 1201, in do_open
r = h.getresponse(buffering=True)
File "C:\Python27\lib\httplib.py", line 1121, in getresponse
response.begin()
File "C:\Python27\lib\httplib.py", line 438, in begin
version, status, reason = self._read_status()
File "C:\Python27\lib\httplib.py", line 402, in _read_status
raise BadStatusLine(line)
BadStatusLine: ''
>>> 求教 |
|