python 从远程服务器下载东西的代码
复制代码 代码如下:# _*_ coding:utf-8 _*_# name gefile.pyimport osimport statimport socketimport paramikoFILES=[“filenameA”,”filenameB”,”filenameC”,”filenameD”,”filenameE”]USERNAME=”root”PASSWORD=”123456′′HOST=”192.168.1.66′′PORT=22remotefile=”/root/filename”localpath=r’D:\docs\filename_download’sock = socket.
用户评论