from stat import S_ISDIR as isdir try: private_key = paramiko.RSAKey.from_private_key_file('/root/.ssh/id_rsa') t = paramiko.Transport((ip, 22)) t.con ...
分类:
其他好文 时间:
2020-04-17 23:56:53
阅读次数:
143
Nmap 扫描4种基本技术: ①Network Mapping:网络扫描,扫描网络网段主机(包含了③和④) ②Port Scanning:扫描开放端口 ③Service and Version Detection:判断服务和版本 ④OS Detection:判断操作系统版本 端口和服务扫描: Con ...
分类:
其他好文 时间:
2020-04-17 15:24:39
阅读次数:
90
1、事务的基本要素(ACID) 1)原子性(Atomicity):事务开始后的所有操作,要么全部做完,要么全部不做,不可能停滞在中间环节。事务过程中出错,会回滚到事务开始的状态,所有操作就像没有发生过一样。也就是说事务是一个不可分割的整体,就像化学中的原子,是物质构成的基本单位。 2)一致性(Con ...
分类:
数据库 时间:
2020-04-15 00:27:57
阅读次数:
72
Nginx其实是从前端到后端访问过程中一个代理的作用(反向代理),前端——Nginx暴露的地址——Nginx地址对应——后端 nginx.conf配置文件地址: 链接:https://pan.baidu.com/s/1aRvlZdeVE76ohbRdCHaGJQ 提取码:x9l6 nginx.con ...
分类:
其他好文 时间:
2020-04-14 16:42:54
阅读次数:
56
1.黄金法则(Golden rule) 不管有多少人参与同一个项目,一定要确保每一行代码都像是同一个人编写的。 Every line of code should appear to be written by a single person, no matter the number of con ...
分类:
Web程序 时间:
2020-04-10 00:27:43
阅读次数:
97
1.ES5和ES6声明变量的方式对比 ES5中声明变量的方式: //1.通过var声明 var num; //2.函数方式声明 function fn(num){ return num; } fn(10); ES6中声明变量的方式: //1.使用let声明 let a = 10; //2.使用con ...
分类:
其他好文 时间:
2020-04-09 12:15:23
阅读次数:
70
阅读目录(Content) 一 、with语句的原理 二、自定义上下文管理器 三、总结 一 、with语句的原理 上下文管理协议(Context Management Protocol):包含方法 __enter__()和__exit__(),支持该协议的对象要实现这两个方法。 上下文管理器(Con ...
分类:
编程语言 时间:
2020-04-08 12:29:10
阅读次数:
88
阅读目录(Content) 一 、with语句的原理 二、自定义上下文管理器 三、总结 一 、with语句的原理 上下文管理协议(Context Management Protocol):包含方法 __enter__()和__exit__(),支持该协议的对象要实现这两个方法。 上下文管理器(Con ...
分类:
编程语言 时间:
2020-04-08 12:01:12
阅读次数:
71
css代码 1 .search { 2 width: 300px; 3 height: 80px; 4 margin: 0 auto; 5 position: relative; 6 } 7 8 .con { 9 display: none; 10 position: absolute; 11 to ...
分类:
Web程序 时间:
2020-04-07 12:30:44
阅读次数:
107
Publish .net standard library with all it's dependencies? 回答1 At the time of writing, it looks like it's by design and there's quite some fuss and con ...
分类:
Web程序 时间:
2020-04-03 18:05:51
阅读次数:
78