码迷,mamicode.com
首页 >  
搜索关键字:@age    ( 7165个结果)
浅克隆与深克隆
浅克隆:public class Person implements Cloneable { private String name; private int age; private Teacher teacher; public Person(String name, int age) { .....
分类:其他好文   时间:2015-08-25 13:32:31    阅读次数:126
mongoDB find函数用法
mongoDB中 ?find函数语法:db.collection.find(query,fileds,limit,sikp) 1 、qurey参数相当于sql中的where子句用来指明查询条件列:db.account.find({name:"lewesyang",age:{$it:22}}) 2、fileds参数相当于sel...
分类:数据库   时间:2015-08-25 12:50:57    阅读次数:454
Java基础 笔记(七)
Properties: Hashtable的子类,属于集合类。存储属性累心公的键值对, 键和值默认都是String 是集合中可以和流结合使用的一个集合类 Properties pro = new Properties(); pro.setProperty(“name”, “Tom”); pro.setProperty(“age”, “19”);...
分类:编程语言   时间:2015-08-21 15:47:48    阅读次数:168
js new一个函数和直接调用函数的区别
用new和调用一个函数的区别:如果函数返回值是一个值类型(Number、String、Boolen)时,new函数将会返回这个函数的实例对象,而如果这个函数的返回值是一个引用类型(Object、Array、Funtion)时,new函数和直接调用函数的结果相同。测试代码如下:     /*//工厂模式     function Person(name,age)     {   ...
分类:Web程序   时间:2015-08-21 15:42:15    阅读次数:164
UVA 4854 A Digital Satire of Digital Age(模拟)
The government of “Moderdesh” is planning to enter the digital age and so people of different profession and business are proposing different ways to enter that age successfully. The hardware vendors...
分类:其他好文   时间:2015-08-20 19:01:34    阅读次数:204
【Python】[面向对象高级编程] 使用__slots__,使用@property
1、使用 __slots__ 给实例绑定方法,>>> def set_age(self, age): # 定义一个函数作为实例方法... self.age = age...>>>from types import MethodType>>>s.set_age=MethodType(set_a...
分类:编程语言   时间:2015-08-20 15:16:55    阅读次数:136
Angularjs笔记(一)
{{name}} {{age}} {{name}} {{sel}} ...
分类:Web程序   时间:2015-08-20 14:44:41    阅读次数:155
Spfa算法
Invitation CardsTime Limit: 8000MSMemory Limit: 262144KTotal Submissions: 22277Accepted: 7298DescriptionIn the age of television, not many people atte...
分类:编程语言   时间:2015-08-20 12:57:43    阅读次数:119
__definedGetter\Setter__的一些想法
__definedGetter\Setter__ 是JS5在创建对象后内置的方法,用于在读写对象属性的时候执行的方法。 1 zhangmingzhi.__defineSetter__('age',function(age){ 2 if(age < 30){ 3...
分类:其他好文   时间:2015-08-19 23:29:26    阅读次数:171
C语言中谓词的用法
NSArray*persons=@[jack,tom,rose,lucy,bob,john,lily];//指定谓词条件NSPredicate*pre1=[NSPredicatepredicateWithFormat:@"age<40"];for(Person*personinpersons){//条件匹配//验证对象是否符合谓词pre1BOOLbool1=[pre1evaluateWithObject:person];if(bool1){NSLog(@"%@",..
分类:编程语言   时间:2015-08-19 17:51:49    阅读次数:145
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!