# -*- coding: UTF-8 -*- from ftplib import FTP def test(): ftp=FTP() ftp.connect( '10.137.35.88') ftp.login( 'cbptc', 'cbptc') filename = r'C:/jemmy.sh' file_handler = file(filename) ftp.storbinary( "STOR jemmy.sh",file_handler) ftp.quit() if __name__ == '__main__': test()
初识FPT
最新推荐文章于 2019-06-12 01:11:54 发布