一、值类型 VS 引用类型 值类型 引用类型 值直接存储在栈中 值存储在堆中,再将堆的地址存到栈中 number, string, boolean, undefined, symbol object, array, null 变量之间赋值 a = b,是指直接将栈中变量a的值复制到变量b的栈空间里面 ...
分类:
编程语言 时间:
2020-06-27 09:49:29
阅读次数:
62
Range Sum Query - Immutable (E) 题目 Given an integer array nums, find the sum of the elements between indices i and j (i ≤ j), inclusive. Example: Give ...
分类:
其他好文 时间:
2020-06-27 09:44:58
阅读次数:
46
解决方法:打开/dede/module_main.php文件(其中dede为您的后台管理目录),注释掉大约91行和95行的如下代码: $modules_remote = $dm->GetModuleUrlList($moduletype,$mdurl); $modules = array_me ...
分类:
其他好文 时间:
2020-06-27 09:42:50
阅读次数:
86
之前如果想使用flatten,一般借助于numpy.ndarray.flatten。 但是 flatten只能适用于numpy对象,即array或者mat,普通的list列表不适用。 最近找到一个轻便的办法如下: from itertools import chain # flatten print ...
分类:
编程语言 时间:
2020-06-27 09:34:09
阅读次数:
74
First Missing Positive (H) 题目 Given an unsorted integer array, find the smallest missing positive integer. Example 1: Input: [1,2,0] Output: 3 Example ...
分类:
其他好文 时间:
2020-06-27 09:31:04
阅读次数:
53
栈和stack stack<Type> s; //定义栈,Type为数据类型,例如 int,float,char等 s.push(item); //把item放到栈顶 s.top(); //返回栈顶的元素,但不会删除 s.pop(); //删除栈顶的元素,但不会返回,在出栈时需要进行两步操作 //先 ...
分类:
其他好文 时间:
2020-06-27 00:31:26
阅读次数:
176
1.Stream API的理解:1.1 Stream关注的是对数据的运算,与CPU打交道集合关注的是数据的存储,与内存打交道 1.2 java8提供了一套api,使用这套api可以对内存中的数据进行过滤、排序、映射、归约等操作。类似于sql对数据库中表的相关操作。 2.注意点:* ①Stream 自 ...
分类:
编程语言 时间:
2020-06-26 23:49:32
阅读次数:
49
'''import numpy as np一、简介 In [17]: a = np.array([[0, 1, 2, 3, 4], [9, 8, 7, 6, 5]]) In [18]: a Out [18]: 'array([[0, 1, 2, 3, 4], [9, 8, 7, 6, 5]])' I ...
分类:
其他好文 时间:
2020-06-26 22:42:02
阅读次数:
63
html 页面 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http:// ...
分类:
编程语言 时间:
2020-06-26 22:10:19
阅读次数:
88
package chapter01 object test05 { def main(args:Array[String]):Unit={ //标识符 //scala中可以使用特殊符号作为标识符,其实是将特殊符号在编译时进行了转换 //操作符不能在标识符的中间和最后 var ++ ="123" pr ...
分类:
其他好文 时间:
2020-06-26 21:55:34
阅读次数:
66