码迷,mamicode.com
首页 >  
搜索关键字:array    ( 29504个结果
图解RAID 0, RAID 1, RAID 5, RAID 10
图解RAID 0, RAID 1, RAID 5, RAID 10 RAID(Redundant Array of Independent Disk 独立冗余磁盘阵列)技术是加州大学伯克利分校1987年提出,最初是为了组合小的廉价磁盘来代替大的昂贵磁盘,同时希望磁盘失效时不会使对数据的访问受损 失而 ...
分类:其他好文   时间:2016-08-23 11:39:29    阅读次数:176
VBS基础篇 - 内置函数
Date/Time 函数 Conversion 函数 Format 函数 Math 函数 Array 函数 String 函数 其他函数 ...
分类:其他好文   时间:2016-08-23 11:19:56    阅读次数:198
【LeetCode】Contains Duplicate II 解题小结
题目:Given an array of integers and an integer k, find out whether there are two distinct indices i and j in the array such that nums[i] = nums[j] and t ...
分类:其他好文   时间:2016-08-23 06:53:24    阅读次数:179
Scala--数组相关操作
一、定长数组 Array定长数组,访问数组元素需要通过() 结果 二、变长数组 变长数组使用ArrayBuffer 结果 三、遍历数组和数组缓冲 结果 12345 135 54321 12345 四、数组转换 通过for yield对数据进行转换 结果 五、常用算法 结果 六、解读scaladoc ...
分类:编程语言   时间:2016-08-23 06:47:34    阅读次数:188
检测一个网段多个主机网络是否正常(使用数组)
#!/bin/bash-x./etc/init.d/functionsm=192.168.137.array=($(seq10))fornin${array[@]}doip=${m}${n}[`ping-c4${ip}|wc-l`-eq"9"]||{logfile=$(date+%F).${ip}.logtouch/tmp/$logfileecho"${ip}isdisconnected!">/tmp/$logfileaction"${ip}"/bin/false}&&{action"$..
分类:编程语言   时间:2016-08-23 01:43:47    阅读次数:167
JavaScript typeof obj === ‘object’ 这样写有什么问题
typeof Array, Object, new Class() 都会返回'object', 所以使用typeof不能准确的判断变量是否为object 要准确判断一个变量是否是一个对象,可以使用constructor以及instanceof判断。 1. constructor是指该对象的构造函数, ...
分类:编程语言   时间:2016-08-23 01:24:14    阅读次数:186
Two Sum
Given an array of integers, find two numbers such that they add up to a specific target number. The function twoSum should return indices of the two n ...
分类:其他好文   时间:2016-08-22 23:05:57    阅读次数:139
2016-08-10 多表联接、ER模型等
$query = mysql_query($sql);mysql_fetch_array($query, mysql_both【既有数字下标,也有字段名下标】) mysql_assoc【只有字段名下标】 多表联接:1. 内联接 左外联接2.外联接: 右外联接 全联接例:学生表 student(表名) ...
分类:其他好文   时间:2016-08-22 21:47:42    阅读次数:142
2016-08-04 PHP函数随笔
函数:1. 封装性 2. 可重用性(变量就是类里面的属性,函数就是类里面的方法)【// 返回两个函数的值$sum = 0;function get_max($a, $b) { global $sum; $c = ($a>$b)?$a:$b; $sum = $a+$b; /* $array = [$c ...
分类:Web程序   时间:2016-08-22 21:35:22    阅读次数:236
php数字索引数组去重及恢复索引
$tmp = array('a','b','c','a'); $tmp = array_values(array_unique($tmp)); print_r($tmp);exit; //输出 Array( [0] => a [1] => b [2] => c) array_values() 函数返 ...
分类:编程语言   时间:2016-08-22 21:34:36    阅读次数:164
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!