摘要: # 类装饰器 类实现单例模式def singleton(cls): _instance = {} def _singleton(*args, **kwargs): if cls not in _instance: _instance[cls] = cls(*args, **kwargs) retur 阅读全文
posted @ 2022-05-23 17:52 wyz_1 阅读(15) 评论(0) 推荐(0) 编辑
摘要: # -*- coding: utf-8 -*-import paramikoSSH_HOST = '192.168.1.130'SSH_PORT = 22SSH_USERNAME = 'root'SSH_PASSWORD = 'Aa753951123'class SSHLinuxClient(obj 阅读全文
posted @ 2022-05-23 17:25 wyz_1 阅读(56) 评论(0) 推荐(0) 编辑