2011年08月15日 星期一 13:24
>>> ftpObj = ftplib.FTP()
>>>
>>>
>>> dir(ftpObj)
['__doc__', '__init__', '__module__', 'abort', 'acct', 'close', 'connect', 'cwd'
, 'debug', 'debugging', 'delete', 'dir', 'file', 'getline', 'getmultiline', 'get
resp', 'getwelcome', 'host', 'login', 'makepasv', 'makeport', 'mkd', 'nlst', 'nt
ransfercmd', 'passiveserver', 'port', 'putcmd', 'putline', 'pwd', 'quit', 'renam
e', 'retrbinary', 'retrlines', 'rmd', 'sanitize', 'sendcmd', 'sendeprt', 'sendpo
rt', 'set_debuglevel', 'set_pasv', 'size', 'sock', 'storbinary', 'storlines', 't
ransfercmd', 'voidcmd', 'voidresp', 'welcome']
>>>
>>> help(ftpObj.nlst)
Help on method nlst in module ftplib:
nlst(self, *args) method of ftplib.FTP instance
Return a list of files in a given directory (default the current).
>>>
Zeuux © 2024
京ICP备05028076号