0 查看CPU信息命令 cat /proc/cpuinfo 1、查看物理CPU的个数 cat /proc/cpuinfo |grep "physical id"|sort|uniq|wc -l 2、查看逻辑CPU的个数 cat /proc/cpuinfo|grep "processor"|wc -l ...
分类:
系统相关 时间:
2020-04-13 12:12:34
阅读次数:
81
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
转自 周道长 博客 原文链接 https://www.cnblogs.com/zhoudaozhang/p/9445017.html Mediakit报告设备商的空间不足以执行此操作的纯MAC解法 因为误操作,删了200mb的磁盘扇区,一直时间胶囊创建失败,说是内存不足 使用Mac对磁盘进行分区,显 ...
分类:
系统相关 时间:
2020-04-07 13:06:59
阅读次数:
121
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
1.版本选型 hadoop 3.1.3 hive 3.1.2 presto 0.233.1 2.Prsto 简介 详细参考:https://prestodb.github.io/docs/current/connector.html 2.1 Presto 优势 多数据源,支持SQL,自定义扩展Con ...
分类:
其他好文 时间:
2020-04-03 00:15:16
阅读次数:
177
<input type="text" id="con" style="width:200px;height:50px;" value="345.56"/> <button id="but" style="width:200px;height:50px;" ...
分类:
其他好文 时间:
2020-04-02 10:35:54
阅读次数:
86