摘要:
一、代码 实现下载路径如果已存在就自动添加(1),如果(1)也存在就变成(2),依次递增 def is_file(file_name): if not os.path.exists(file_name): return file_name num = 1 if re.findall("\((\d)\ 阅读全文
摘要:
一、封装代码 import os import paramiko from stat import S_ISDIR import shutil class ConnectSftp(object): def __init__(self,ip,port,username,password): self. 阅读全文