<script> // 1 八进制 0-7 // var num1 = 010; // console.log(num1); // 8 // var num2 = 012; // console.log(num2); //10 // 2 十六进制 0-9 a-f #ffffff // var num ...
分类:
Web程序 时间:
2020-06-03 17:14:11
阅读次数:
88
算数交换(针对的是Number,或者类型可以转换为数字的变量类型) function swap(a, b) { a = a + b; b = a - b; a = a - b; } 解构赋值 [a, b] = [b, a]; 最笨的方式声明第三变量就不写了 ...
分类:
其他好文 时间:
2020-06-03 17:12:29
阅读次数:
61
1、所有数据 2、建立临时表名称、类型只显示一列 ①、sql --临时表插入筛选数据 select * into #templet from (select _hour.Id from (select id,ROW_NUMBER()OVER( partition by Name,Type order ...
分类:
数据库 时间:
2020-06-03 13:38:46
阅读次数:
120
computed也就是计算属性,它可以帮助我们将在模板中的一些稍微复杂的逻辑计算放回到js代码中,方便理解与修改维护 官网中给出的例子:这里展示的数据是经过message和number两个属性经过变换合成的 <div id="example"> {{ message.split('').revers ...
分类:
其他好文 时间:
2020-06-03 13:32:14
阅读次数:
77
Java Number & Math 类一般地,当需要使用数字的时候,我们通常使用内置数据类型,如:byte、int、long、double 等。实例int a = 5000;float b = 13.65f;byte c = 0x4a;然而,在实际开发过程中,我们经常会遇到需要使用对象,而不是内置... ...
分类:
编程语言 时间:
2020-06-03 12:03:58
阅读次数:
63
作者|facebookresearch 编译|Flin 来源|Github 基准测试 在这里,我们以一些其他流行的开源Mask R-CNN实现为基准,对Detectron2中Mask R-CNN的训练速度进行了基准测试。 设置 硬件:8个带有NVLink的NVIDIA V100。 软件: Pytho ...
分类:
其他好文 时间:
2020-06-03 11:57:50
阅读次数:
80
Math.random():获取0~1随机数Math.floor() method rounds a number DOWNWARDS to the nearest integer, and returns the result. (小于等于 x,且与 x 最接近的整数。)其实返回值就是该数的整数位 ...
分类:
其他好文 时间:
2020-06-02 23:05:56
阅读次数:
90
##typeof六种数据类型 number、string、boolean、object、function、undefined typeof用于检测数据的类型,返回的是相应数据类型的字符串格式。 typeof(typeof(a)) 未经定义的变量在控制台中直接报错,not undefined。只有在t ...
分类:
其他好文 时间:
2020-06-02 22:56:11
阅读次数:
67
lsof list open files Linux一切皆文件,通过文件不仅可以访问常规数据,还可以访问网络连接(套接字)和硬件,该文件描述符为应用程序与os之间提供了接口.lsof需访问各种特权文件,故需root运行 COMMAND contains the first nine characte ...
分类:
系统相关 时间:
2020-06-02 22:52:28
阅读次数:
100
public static void main(String[] args) {printmax(34,3,2,5,67);printmax(new double[]{1,2,3}); } public static void printmax(double...number){ if (numbe ...
分类:
编程语言 时间:
2020-06-02 18:58:30
阅读次数:
61