复制代码 代码如下:#!/usr/bin/py2# -*- coding: utf-8 -*-#encoding=utf-8 ””’ ftp自动下载、自动上传脚本,可以递归目录操作”’ from ftplib import FTPimport os, sys, string, datetime, timeimport socket class FtpClient: def __init__(self, host, user, passwd, remotedir, port=21): self.hostaddr = host self.user