Description
There are n walruses standing in a queue in an airport. They are numbered starting from the queue's tail: the
1-st walrus stands at the end of the queue and the
n-th walrus stands at...
分类:
其他好文 时间:
2014-09-05 19:56:51
阅读次数:
292
最近有一个小需求:在一个目录下有很多文件,每个文件的第一行是BEGIN开头的,最后一行是END开头的,中间每一行有多列,数量不等,第一列称为"DN",第二列称为"CV",DN和CV的联合作为主键,现在需要检测文件中是否有重复的DN-CV。于是写了个简单的python程序#!/usr/bin/python
i..
分类:
编程语言 时间:
2014-09-05 18:29:42
阅读次数:
193
uses System.StrUtils, Datasnap.DSSession, SessionStoreObjectUI;function TServerMethods1.EchoString(Value: string): string; begin Result := Value; end....
分类:
其他好文 时间:
2014-09-05 17:43:11
阅读次数:
200
1、lua中的标识符可以是由任意字母、数字和下划线构成的字符串,但不能以数字开头。2、lua将通常类似"_VALUE"的标识符作为保留标识符3、lua的保留字 and break do else elseif end false for function if in loacl nil not or...
分类:
其他好文 时间:
2014-09-05 11:20:51
阅读次数:
194
#import"AddressBookNavigationController.h"@interfaceAddressBookNavigationController()@end@implementationAddressBookNavigationController-(id)initWithNibName:(NSString*)nibNameOrNilbundle:(NSBundle*)nibBundleOrNil{self=[superinitWithNibName:nibNameOrNilbundle..
分类:
其他好文 时间:
2014-09-05 03:25:41
阅读次数:
198
#import<UIKit/UIKit.h>@interfaceUIColor(Addition)+(UIColor*)lightGreenColor;@end#import"UIColor+Addition.h"@implementationUIColor(Addition)+(UIColor*)lightGreenColor{return[UIColorcolorWithRed:kRed/255.0green:kGreen/255.0blue:kBlue/255.0alpha:1.0];}@end
分类:
其他好文 时间:
2014-09-05 03:24:21
阅读次数:
249
//延展@interfaceAppDelegate(){UIView*_View;}//不是一开始定义类的时候定义的实例变量,而是后期根据需求而定义的实例变量,统一定义在.m文件中的延展中,外界不可见.@end@implementationAppDelegate-(BOOL)application:(UIApplication*)applicationdidFinishLaunchingWithOptio..
分类:
其他好文 时间:
2014-09-05 03:20:31
阅读次数:
194
/**
*函数名:$SymbolName$
*功能:$end$
*param:$MethodArg$
*返回值:$SymbolType$
*说明:$end$
*日期:$YEAR$-$MONTH$-$DAY$-$HOUR$:$MINUTE$
*作者:wowo
*/...
分类:
其他好文 时间:
2014-09-05 01:04:20
阅读次数:
262
@interface ViewController (){ Shape *_shape;}@end@implementation ViewController- (void)loadView{ //设置画板 self.view=[[SimpleDrawBoard alloc]ini...
分类:
其他好文 时间:
2014-09-04 22:13:40
阅读次数:
245
@interface …@property (原子性,可写性,内存管理) id name;@end原子性: nonatomic, atomic 默认atomic可写性: readwrite, readonly 默认readwrite内存管理: assign, retain, copy 默认as...
分类:
其他好文 时间:
2014-09-04 18:32:19
阅读次数:
191