import numpy as np a = np.array([[1, 2], [3, 4]]) a.shape Out[3]: (2, 2) b = np.array([[5, 6]]) b.shape Out[5]: (1, 2) np.concatenate((a, b)) Out[6]: ...
分类:
其他好文 时间:
2016-08-12 01:03:46
阅读次数:
213
importjava.util.Scanner;publicclasscalendar{ publicstaticvoidmain(Stringargs[]) { System.out.println("----欢迎使用简易日历-----"); Scannerin=newScanner(System.in); Stringsay; do { System.out.println(); System.out.print("请输入年份:"); intyear=in..
分类:
其他好文 时间:
2016-08-11 23:08:45
阅读次数:
153
目前项目组在开发一个项目,由多个子模块构成,构建工具是maven,版本控制工具是svn。本文想对如何结合使用maven和svn提出一点初步的想法 一、只有svn的情况 首先考虑没有maven的情况。这样的话,项目组每个开发人员,都需要在本地check out所有的源码。 每次提交之前,需要先更新周边 ...
分类:
其他好文 时间:
2016-08-11 22:28:26
阅读次数:
115
在学习Linux驱动的过程中,遇到一个宏叫做container_of。该宏定义在include/linux/kernel.h中,首先来贴出它的代码:/** * container_of - cast a member of a structure out to the containing stru ...
分类:
其他好文 时间:
2016-08-11 17:58:26
阅读次数:
168
感觉程序没有问题,编译生成a.out后,拷贝到开发板执行,提示 -sh: ./a.out: not found。 上网查找问题,大概原因有2个 一就是有可能/lib下面没有C库 就是没有glibc或者uclibc的动态库 二就是你板子上的C库和编译hello链接时用的C库不一样, 差别太大 解决办法 ...
分类:
其他好文 时间:
2016-08-11 17:18:58
阅读次数:
1646
Actually I do not have experiences in programming with open sources/third party libs.. in linux.. I think this took me almost 3 days to figure out how ...
分类:
系统相关 时间:
2016-08-11 15:54:44
阅读次数:
143
C++编程语言互换流中的标准输出流,需要iostream支持。读为 "c out([si:‘a?t]"。 名字 cout 类型 std::ostream 读为 "c out" 本相 std::cout.operator<<()函数 使用范例 听语音 #include<iostream> using ...
分类:
编程语言 时间:
2016-08-11 08:35:38
阅读次数:
274
If you get java.net.SocketTimeoutException: Read timed out exception Try setting own timeout value when constructing JedisPool using the following con ...
分类:
编程语言 时间:
2016-08-11 00:31:03
阅读次数:
189
1、生成根证书密钥#]opensslgenrsa-des3-outca.key20482、自签证书#]opensslreq-new-x509-days7305-keyca.key-outca.crt参数说明:req:生成证书签署请求-news:新请求-key/path/to/keyfile:指定私钥文件-out/path/to/somefile:-x509:生成自签署证书-daysn:有效天数3、准备必要文..
分类:
Web程序 时间:
2016-08-10 23:11:53
阅读次数:
804
Description A subsequence of a given sequence is the given sequence with some elements (possible none) left out. Given a sequence X = <x1, x2, ..., xm ...
分类:
其他好文 时间:
2016-08-10 22:19:15
阅读次数:
216