使用Python连接FTP出错
ftp.connect('192.168.0.1','21')错误信息:Traceback(mostrecentcalllast):File"<pyshell#8>",l...
ftp.connect('192.168.0.1','21')
错误信息:
Traceback (most recent call last):
File "<pyshell#8>", line 1, in <module>
ftp.connect('192.168.0.1','21')
File "C:\Python27\lib\ftplib.py", line 135, in connect
self.sock = socket.create_connection((self.host, self.port), self.timeout)
File "C:\Python27\lib\socket.py", line 571, in create_connection
raise err
error: [Errno 10060]
试过关闭被动,没有用,估计也不是防火墙的缘故 展开
错误信息:
Traceback (most recent call last):
File "<pyshell#8>", line 1, in <module>
ftp.connect('192.168.0.1','21')
File "C:\Python27\lib\ftplib.py", line 135, in connect
self.sock = socket.create_connection((self.host, self.port), self.timeout)
File "C:\Python27\lib\socket.py", line 571, in create_connection
raise err
error: [Errno 10060]
试过关闭被动,没有用,估计也不是防火墙的缘故 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询