时间:2021-07-01 10:21:17 帮助过:230人阅读
import ftplib ftp = ftblib.FTP("ftp.yourServer.com") ftp.login("username","password") filename = "index.html" ftp.storlines("STOR "+filename,open(filename)) filename="app.exe" ftp.storbinary("STOR "+filename,open(filename,"rb"),1024)
希望本文所述对大家的Python程序设计有所帮助。