Given an array of non-negative integers, you are initially positioned at the first index of the array. Each element in the array represents your maxim ...
分类:
编程语言 时间:
2019-05-06 14:38:14
阅读次数:
172
一、介绍 我们看一下《研磨设计模式》中的定义: 将一个类的接口转换成客户希望的另一个接口。适配器模式使得原本由于接口不兼容而不能一起工作的那些类可以一起工作。 适配器模式的本质是——转换匹配,复用功能。 怎么理解呢?就是说,新的接口需要实现的功能,旧的接口现在都有,问题是,怎么把旧的接口的实现类拿去 ...
分类:
其他好文 时间:
2019-05-02 18:36:36
阅读次数:
154
GOAL In 11gR2, deinstall is the recommended tool to deinstall an Oracle Clusterware(Grid Infrastructure) home, however it does not apply to certain sc ...
分类:
数据库 时间:
2019-04-25 18:48:36
阅读次数:
189
类似于 oracle中decode函数的MSSQL函数 ①用途: 将空值替换成其他值 返回第一个非空值 ②表达式: COALESCE是一个函数, (expression_1, expression_2, ...,expression_n)依次参考各参数表达式,遇到非null值即停止并返回该值。如果所 ...
分类:
其他好文 时间:
2019-04-16 17:46:44
阅读次数:
188
参考博客:http://www.cnblogs.com/wupeiqi/articles/6216618.html 一、字段 AutoField(Field) - int自增列,必须填入参数 primary_key=True BigAutoField(AutoField) - bigint自增列,必 ...
分类:
其他好文 时间:
2019-04-11 14:50:29
阅读次数:
128
使用 ... 运算符定义变长参数函数 (PHP 5 >= 5.6.0, PHP 7) 现在可以不依赖 func_get_args(), 使用 ... 运算符 来实现 变长参数函数。 以上例程会输出: $req: 1; $opt: 0; number of params: 0 $req: 1; $op ...
分类:
Web程序 时间:
2019-03-30 22:50:12
阅读次数:
214
coalesce函数的使用 select coalesce(null,2,3); // Return 2select coalesce(null,null,3); // Return 3select coalesce(1,2,3); // Return 1 ...
分类:
数据库 时间:
2019-03-25 17:54:06
阅读次数:
199
This is my first blog My programmer's career started on 2008.8.27 remember it since I'm a bad programmer at that time haha...now also... So... to beco ...
分类:
其他好文 时间:
2019-03-14 13:09:15
阅读次数:
170
$(function(){ wx.config({ debug: false, // 开启调试模式,调用的所有api的返回值会在客户端alert出来,若要查看传入的参数,可以在pc端打开,参数信息会通过log打出,仅在pc端时才会打印。 appId: '', // 必填,公众号的唯一标识 times ...
分类:
微信 时间:
2019-02-21 15:32:21
阅读次数:
212
发布打包 Jar类型打包方式 1.使用mvn celan package 打包 2.使用java –jar 包名 war类型打包方式 1.使用mvn celan package 打包 2.使用java –jar 包名 外部Tomcat运行 1.使用mvn celan package 打包 2.2.0 ...
分类:
编程语言 时间:
2019-02-18 20:24:01
阅读次数:
200