=====================FTP客户端===================== 220---------- Welcome to Pure-FTPd [privsep] [TLS] ---------- 220-You are user number 1 of 50 allowed. 220-Local time is now 17:38. Server port: 21. 220-This is a private system - No anonymous login 220-IPv6 connections are also welcome on this server. 220 You will be disconnected after 15 minutes of inactivity. 已连接到: ftp.aixinxi.net Traceback (most recent call last): File "D:/workspace/PythonSpace/Spyder/Spyder_aixinxi/aixinxi_FTPlogin.py", line 139, in <module> main() File "D:/workspace/PythonSpace/Spyder/Spyder_aixinxi/aixinxi_FTPlogin.py", line 118, in main mkdir(ftp,dirpath) File "D:/workspace/PythonSpace/Spyder/Spyder_aixinxi/aixinxi_FTPlogin.py", line 84, in mkdir if find(ftp, dirpath): File "D:/workspace/PythonSpace/Spyder/Spyder_aixinxi/aixinxi_FTPlogin.py", line 76, in find ftp_f_list = ftp.nlst() #获取目录下文件、文件夹列表 File "D:\Anaconda3\lib\ftplib.py", line 559, in nlst self.retrlines(cmd, files.append) File "D:\Anaconda3\lib\ftplib.py", line 468, in retrlines with self.transfercmd(cmd) as conn, \ File "D:\Anaconda3\lib\ftplib.py", line 399, in transfercmd return self.ntransfercmd(cmd, rest)[0] File "D:\Anaconda3\lib\ftplib.py", line 361, in ntransfercmd source_address=self.source_address) File "D:\Anaconda3\lib\socket.py", line 724, in create_connection raise err File "D:\Anaconda3\lib\socket.py", line 713, in create_connection sock.connect(sa) TimeoutError: [WinError 10060] 由于连接方在一段时间后没有正确答复或连接的主机没有反应,连接尝试失败。