码迷,mamicode.com
首页 >  
搜索关键字:list add    ( 89211个结果
Bean、List、Map、Array、String与JSON字符串的相互转换
import java.beans.Introspector;import java.beans.PropertyDescriptor;import java.math.BigDecimal;import java.math.BigInteger;import java.util.ArrayList...
分类:Web程序   时间:2014-05-28 04:39:42    阅读次数:363
【LeetCode】Substring with Concatenation of All Words
You are given a string,S, and a list of words,L, that are all of the same length. Find all starting indices of substring(s) in S that is a concatenati...
分类:其他好文   时间:2014-05-28 04:03:54    阅读次数:240
yourphp的edit,updata,dele
参考文件Yourphp\Lib\Action\User\PostAction.class.phppublic function add() { $form=new Form(); $form->isadmin=0; $form->doThumb = ...
分类:Web程序   时间:2014-05-28 03:50:25    阅读次数:334
pyscripts 中mathstuff calss 的功用
def meanstdev(numlist): 返回一个序列的均值和标准差;def mindivnum(numlist,limit):找出一个整数list (numlist)的最小公倍数,寻找的范围为1~limit;def dec2bin(num,digits):将num转化为2进制字符串,并保留低...
分类:其他好文   时间:2014-05-28 03:20:03    阅读次数:212
GitHub使用教程for Eclipse
1.下载egit插件打开Eclipse,git需要eclipse授权,通过网页是无法下载egit的安装包的。在菜单栏依次打开eclipse→help→install new software→add,Name栏中输入egit,location栏中输入 http://download.eclipse....
分类:系统相关   时间:2014-05-28 02:59:18    阅读次数:4490
当property遇上category
【当property遇上category】 @property可以在类定义中,以及extension定义中使用,编译器会自动为@property生成代码,并在变量列表(ivar_list_t)中添加相应的以下划线开头的变量。 在category中,编译器允许定义@property,但不会为此@p.....
分类:其他好文   时间:2014-05-28 02:35:35    阅读次数:241
Developer Express入门
这里从表格GridControl开始,零点零的入门,不会向大神一样写的深奥无比,一看你就会懂的1.首先拖一个表格上去,点击Run Designer进入Columns编辑页;2.点击add添加字段,设置fieldName属性绑定字段;3.在初始化事件里编码gridControl1.DataSource...
分类:其他好文   时间:2014-05-28 01:33:58    阅读次数:256
mysql 常用
1.复制表 create table t2 like t1; insert into t2 select * from t1;2.索引 a. ALTER TABLE 用来创建普通索引,UNIQUE 索引和 PRIMARY KEY 索引 ALTER TABLE table_name ADD...
分类:数据库   时间:2014-05-28 01:29:48    阅读次数:335
关于hibernate的session.createSQLQuery(sql)直接调用底层SQL后,返回结果集的问题
数据库中有如下信息name,sex张三、男李四、女通过Hibernate的createSQLQuery可以直接调用底层SQL语句如下:Listlist=(List)getHibernateTemplate().execute(newHibernateCallback(){ publicObject....
分类:数据库   时间:2014-05-28 01:26:29    阅读次数:312
Python中的操作符重载
类可以重载python的操作符操作符重载使我们的对象与内置的一样。__X__的名字的方法是特殊的挂钩(hook),python通过这种特殊的命名来拦截操作符,以实现重载。 python在计算操作符时会自动调用这样的方法,例如:如果对象继承了__add__方法,当它出现在+表达式中时会调用这个方法。通...
分类:编程语言   时间:2014-05-27 23:55:37    阅读次数:416
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!