python从FTP传输调试输出文件
ftp = ftplib.FTP('127.0.0.1', 'book', 'bookpw') f = open("MyPycFile.pyc", "wb") ftp.set_pasv(1) ftp.set_debuglevel(1) ftp.retrbinary("RETR AutoIndent.pyc", f.write)
python从FTP传输调试输出文件
ftp = ftplib.FTP('127.0.0.1', 'book', 'bookpw') f = open("MyPycFile.pyc", "wb") ftp.set_pasv(1) ftp.set_debuglevel(1) ftp.retrbinary("RETR AutoIndent.pyc", f.write)