注册 登录
编程论坛 Python论坛

关于FTP的 怎么运行就报错~~新手求问~~

qq609470156 发布于 2012-10-12 09:48, 1600 次点击
>>>from ftplib import FTP
>>>f = FTP("ftp.)
报错
Traceback (most recent call last):
  File "<pyshell#1>", line 1, in <module>
    f = FTP('ftp.')
  File "C:\Python27\lib\ftplib.py", line 117, in __init__
    self.connect(host)
  File "C:\Python27\lib\ftplib.py", line 135, in connect
    self.welcome = self.getresp()
  File "C:\Python27\lib\ftplib.py", line 210, in getresp
    resp = self.getmultiline()
  File "C:\Python27\lib\ftplib.py", line 196, in getmultiline
    line = self.getline()
  File "C:\Python27\lib\ftplib.py", line 183, in getline
    line = self.file.readline()
  File "C:\Python27\lib\socket.py", line 447, in readline
    data = self._sock.recv(self._rbufsize)
error: [Errno 10054]


联网了~还是报错 就算换另一个 FTP的网址也是报同样的错  请问这是怎么回事嗯~~~~~~?????不懂~~~
3 回复
#2
青春无限2012-10-13 17:44
顶一下
#3
外部三电铃2012-10-13 21:36
因为ftp服务器ftp.不存在,找个能连上的ftp地址测试就可以了
#4
qq6094701562012-10-15 09:01
回复 3楼 外部三电铃
就算换另一个 FTP的网址也是报同样的错
换了  也是一样的~~~我换了个有用还是一样的
报错
1