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)
原创文章,作者:奋斗,如若转载,请注明出处:https://blog.ytso.com/8362.html