摘要:
# 类装饰器 类实现单例模式def singleton(cls): _instance = {} def _singleton(*args, **kwargs): if cls not in _instance: _instance[cls] = cls(*args, **kwargs) retur 阅读全文
摘要:
# -*- coding: utf-8 -*-import paramikoSSH_HOST = '192.168.1.130'SSH_PORT = 22SSH_USERNAME = 'root'SSH_PASSWORD = 'Aa753951123'class SSHLinuxClient(obj 阅读全文