摘要: 1 #!/usr/bin/env python 2 # -*- coding: UTF-8 -*- 3 4 import paramiko 5 import os 6 import re 7 8 9 class SSHConnection(object): 10 def __init__(self, host, port, username, password):... 阅读全文
posted @ 2017-11-17 16:14 wpf188 阅读(670) 评论(0) 推荐(0)
摘要: 对比两个目录内容,然后拷贝! 阅读全文
posted @ 2016-11-03 23:18 wpf188 阅读(610) 评论(0) 推荐(0)
摘要: 1 # -*- coding:utf-8 -*- 2 import os 3 import optparse 4 import sys 5 import re 6 7 8 def createfile(path, dirname): 9 allfile = os.listdir(path) 10 o 阅读全文
posted @ 2017-03-09 18:26 wpf188 阅读(686) 评论(0) 推荐(0)
摘要: #!/usr/bin/python# -*- coding:utf-8 -*-import sysimport osclass get_home_path(object): def __init__(self, username): self.username = username self.use 阅读全文
posted @ 2016-11-01 21:39 wpf188 阅读(1842) 评论(0) 推荐(0)