1、multiply
例子:
x1=[1,2,3];x2=[4,5,6]
print multiply(x1,x2)12
输出:
[ 4 10 18]1
multiply函数得到的结果是对应位置上面的元素进行相乘。
2、std 标准方差 ,var 方差
例子:
b=[1,3,5,6]
print var(b)
print power(std(b),2)
ll=[[1...
分类:
其他好文 时间:
2016-07-03 10:35:29
阅读次数:
359
题目: Given an integer, write a function to determine if it is a power of two. 答案: 2的幂有两个特点: 1)大于0 2)二进制形式都是首位为1,其余位为0,因此n&(n-1)等于0 ...
分类:
其他好文 时间:
2016-07-01 22:51:51
阅读次数:
163
安装 yum install ipmitool [root@localhost ~]# ipmitool -H 20.251.47.11 -U root -P root power status Chassis Power is on [root@localhost ~]# ipmitool -H ...
分类:
其他好文 时间:
2016-07-01 11:37:12
阅读次数:
255
题意:求字符串中循环节出现的次数 KMP!!! #include<cstdio> #include<iostream> #include<cstring> #define M 1000010 using namespace std; int fail[M],a[M],m; char ch[M]; v ...
分类:
其他好文 时间:
2016-06-28 22:08:58
阅读次数:
213
1125 ./clone_vm.py --host 192.168. -u 'user' --password 'pass' -v test1 --template pub-centos-66-64-m --datastore-name 11 --no-power-on 1126 vim clone ...
分类:
编程语言 时间:
2016-06-28 20:22:44
阅读次数:
241
如果你不想学复杂的函数,如果不想学更难的VBA。但你想把数据处分分析工作做好。那么,来吧!这套课程将是你最好的选择。远离繁杂,回归简单与智能化。先来看看powerquery怎么做些什么。先来展示一下效果图。
分类:
其他好文 时间:
2016-06-28 00:48:20
阅读次数:
180
如果你不想学复杂的函数,如果不想学更难的VBA。但你想把数据处分分析工作做好。那么,来吧!这套课程将是你最好的选择。远离繁杂,回归简单与智能化。先来看看powerquery怎么做些什么。先来展示一下效果图。1.获取文夹下的所有工作簿的数据2.获取网数据做图表3.powerquery与SQ..
分类:
其他好文 时间:
2016-06-28 00:47:31
阅读次数:
125
如果你不想学复杂的函数,如果不想学更难的VBA。但你想把数据处分分析工作做好。那么,来吧!这套课程将是你最好的选择。远离繁杂,回归简单与智能化。先来看看powerquery怎么做些什么。先来展示一下效果图。
分类:
其他好文 时间:
2016-06-28 00:46:41
阅读次数:
156
再稳定牛哔的系统也有老牛卸耙的时候...而Linux大部分灾难性崩溃都出在启动阶段。要快速判断问题原因先简单解下Linux启动顺序:Power→加载MBR→Bootloader(GRUB引导)→加载内核→init设定runlevel→rc.sysinit...其中关键的位置是位于硬盘上0磁头0柱面1扇区上面的MBR引导记..
分类:
系统相关 时间:
2016-06-27 20:06:36
阅读次数:
375