This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: cp936 -*- | |
__author__ = 'wenshn902' | |
import string | |
from ftplib import FTP | |
bufsize=1024 | |
def Get(filename): | |
command='RETR '+filename | |
ftp.retrbinary(command,open(filename,'wb').write,bufsize) | |
print 'download successfully' | |
def Put(filename): |