MyBatis的动态SQL是基于OGNL表达式的,它可以帮助我们方便的在SQL语句中实现某些逻辑。 MyBatis中用于实现动态SQL的元素主要有: if choose(when,otherwise) trim where set foreach if就是简单的条件判断,利用if语句我们可以实现某些 ...
分类:
数据库 时间:
2016-11-02 18:14:56
阅读次数:
206
【题意】 求一颗生成树,满足最大边和最小边之差最小 InputThe input consists of multiple datasets, followed by a line containing two zeros separated by a space.Each dataset has ...
分类:
其他好文 时间:
2016-11-01 23:52:13
阅读次数:
314
1、设删除的节点为$z$,另外定义节点$x,y$如下: $y=\left\{\begin{matrix}z & z的左孩子或右孩子为空节点\\ Successor(z) & otherwise\end{matrix}\right.$ $x=\left\{\begin{matrix}y.left & ...
分类:
其他好文 时间:
2016-10-29 22:13:15
阅读次数:
306
列表 如:[11,22,33,44,44]、['TangXiaoyue', 'bruce tang'] 每个列表都具备如下功能: class list(object): """ list() -> new empty list list(iterable) -> new list initializ ...
分类:
编程语言 时间:
2016-10-29 11:50:28
阅读次数:
269
Gear-wheels Time limit: 1.0 secondMemory limit: 64 MB — Arny! What happened with coordinator? Bad working coordinator was the everlasting trouble of t ...
分类:
其他好文 时间:
2016-10-28 23:24:24
阅读次数:
269
1 流网络。流网络G=(V,E)是一个有向图,每条边$(u,v)\in E$有一个非负容量值$c(u,v)\geq 0$.如果$(u,v)\notin E,c(u,v)=0$.另外有一个源节点s和汇点t。 2 流。G中的流是一个实值函数$f:V\times V\rightarrow R$,满足: ( ...
分类:
其他好文 时间:
2016-10-28 20:14:51
阅读次数:
104
为什么会想写这篇文章,只因为一个error idl.exe E 4928 5836 type_namespace.cpp:130] 'Book' can be an out type, s...
分类:
其他好文 时间:
2016-10-27 20:19:00
阅读次数:
523
NUMA结构的alloc_pages==================== mm/numa.c 43 43 ====================43 #ifdef CONFIG_DISCONTIGMEM==================== mm/numa.c 91 128 ========... ...
分类:
系统相关 时间:
2016-10-27 12:36:26
阅读次数:
272
开始完全一头雾水呀,后面看了Java指令集的介绍,逐渐理解了。 https://www.zhihu.com/question/21574535/answer/18998914 下面这个答案比较直白 上面指令的定义详细解释如下(解释和重要点已经飘红指出): instanceof instanceof ...
分类:
编程语言 时间:
2016-10-24 13:50:08
阅读次数:
269
//个人中心路由;angular.module('userApp').config(['$stateProvider', '$urlRouterProvider',function ($stateProvider, $urlRouterProvider) { $urlRouterProvider.o ...
分类:
其他好文 时间:
2016-10-21 16:11:48
阅读次数:
113