python通过ftp发送文件,,import ftpli
文章由Byrx.net分享于2019-03-23 10:03:33
python通过ftp发送文件,,import ftpli
import ftplib # We import the FTP modulesession = ftplib.FTP('myserver.com','login','passord') # Connect to the FTP servermyfile = open('toto.txt','rb') # Open the file to sendsession.storbinary('STOR toto.txt', myfile) # Send the filemyfile.close() # Close the filesession.quit() # Close FTP session
相关内容
- 在Python中移动目录结构的方法,python中移动目录,#Movi
- python字符串替换方法示例,python字符串示例,字符串替换
- python的字符串比较函数cmp,python字符串cmp,python中的内置
- python字符串字串查找 find和index方法,pythonfind,python 字符
- Python 模拟登录及表单提交,python表单,# -*- coding
- windows下模式删除,windows模式删除,#!/bin/usr/e
- python xmlrpc实现文件传输的代码,pythonxmlrpc,服务器端f
- python xmlrpclib 完成百度google ping功能,pythonxmlrpclib,impo
- Python多进程并发(multiprocessing),,1、新建单一进程如果我
- python的多线程模块multiprocessing,,#!/usr/bin/e
评论关闭