2010年03月08日 星期一 17:56
我最近写了个程序,是用来抓取小说网站的小说更新的,程序已经完成,也没有出错。 在win下面运行很正常,数据也挺快的显示出来,但在我的ubuntu下面,运行的话就会出现 File "myparse.py", line 143, innewChapterList(namelist.keys()[i]) File "myparse.py", line 41, in newChapterList urlfd = urllib.urlopen(url) File "/usr/lib/python2.6/urllib.py", line 87, in urlopen return opener.open(url) File "/usr/lib/python2.6/urllib.py", line 206, in open return getattr(self, name)(url) File "/usr/lib/python2.6/urllib.py", line 348, in open_http errcode, errmsg, headers = h.getreply() File "/usr/lib/python2.6/httplib.py", line 1048, in getreply response = self._conn.getresponse() File "/usr/lib/python2.6/httplib.py", line 974, in getresponse response.begin() File "/usr/lib/python2.6/httplib.py", line 391, in begin version, status, reason = self._read_status() File "/usr/lib/python2.6/httplib.py", line 349, in _read_status line = self.fp.readline() File "/usr/lib/python2.6/socket.py", line 397, in readline data = recv(1) 的错误,运行的时候要马上用ctrl+c打断后,再马上执行,再打断再马上执行才能成功 在网上问了也没人回答,所以不知道是什么情况了,来这问大家下 -------------- 下一部分 -------------- 一个HTML附件被移除... URL: <http://www.zeuux.org/pipermail/zeuux-python/attachments/20100308/adb0ae25/attachment.html>
Zeuux © 2024
京ICP备05028076号