摘要: def decorator(argument): def real_decorator(func): def wrapper(*args, **kwargs): return func(*args, **kwargs) + argument return wrapper return real_decorator 阅读全文
posted @ 2019-08-28 21:46 等一念 阅读(202) 评论(0) 推荐(0) 编辑
摘要: 1.阻塞式(阻塞主线程) os.system 2.非阻塞式(不阻塞主线程) subprocess 阅读全文
posted @ 2019-08-28 21:40 等一念 阅读(2515) 评论(0) 推荐(0) 编辑
摘要: # -*- coding: utf-8 -*- # __author__:lenovo # 2019/2/22 import paramiko, time # 创建 ssh 对象 ssh = paramiko.SSHClient() # 设定连接方式 ssh.set_missing_host_key_policy(paramiko.AutoAddPolicy) # 远程主机的ip地址,端口号,在远 阅读全文
posted @ 2019-08-28 21:00 等一念 阅读(829) 评论(0) 推荐(0) 编辑