码迷,mamicode.com
首页 >  
搜索关键字:self    ( 14215个结果
LeetCode-Sort List(Python)
【问题】 Sort a linked list in O(n log n) time using constant space complexity. 【代码】 # Definition for singly-linked list. # class ListNode: # def __init__(self, x): # self.val = x # ...
分类:编程语言   时间:2014-06-28 08:29:23    阅读次数:222
LeetCode-Insertion Sort List (Python)
【问题】 Sort a linked list using insertion sort. 【代码】 # Definition for singly-linked list. # class ListNode: # def __init__(self, x): # self.val = x # self.next = None class Sol...
分类:编程语言   时间:2014-06-28 07:55:49    阅读次数:199
UIImagePickerController获取图片名
//创建 UIImagePickerController *imagePick = [[UIImagePickerController alloc] init];         imagePick.delegate = self;         imagePick.allowsEditing = YES;         imagePick.sourceType ...
分类:其他好文   时间:2014-06-28 07:49:26    阅读次数:248
初学APP
APP开发学习//添加xib文件到窗口中NSArray *views = [[NSBundle mainBundle]loadNibNamed:@"View" owner:self options:nil];[self.window addSubview:[views lastObject]];//...
分类:移动开发   时间:2014-06-27 22:34:23    阅读次数:320
Python
1、类、子类与函数定义: class Animal(object): # object 继承object类。 Paw=True Age=1 def Eat(self,a): print(a)class Tiger(Animal): # object 继承Animal类...
分类:编程语言   时间:2014-06-27 20:17:22    阅读次数:193
获得现在的时间
有没有那么一个时候,特别想知道现在的时间呢。上代码。- (void)viewDidLoad{ [super viewDidLoad]; // Do any additional setup after loading the view. self.title=@"RootV...
分类:其他好文   时间:2014-06-27 13:21:01    阅读次数:150
《cocos2d-x游戏开发》—— lua学习总结(一)数组的使用
在lua中,数组是用table来实现的。1、数组的定义:self.itemArrays = {}; --作为数组来使用的表itemArrays2、 数组插入一条数据:local showItemSprite = CCSprite:create(); --创建一个精灵对象showItemSpri...
分类:其他好文   时间:2014-06-27 11:01:03    阅读次数:202
Python魔术师--self
Python的self参数有时真让人抓狂,但其实它有魔力。...
分类:编程语言   时间:2014-06-27 07:17:40    阅读次数:302
ios - cannot assign to 'self' outside of a method in the init family
今天重写 -(id) initwithId:(NSInteger *)word_id word:(NSString *)word detail:(NSString *)detail方法时不注意将init后面的第一个字母写成了小写,在这个方法里面又调用父类的初始化方法(self = [super in...
分类:移动开发   时间:2014-06-26 15:17:17    阅读次数:638
NSKeyedArchiver的使用
NSKeyedArchiver是加密形式的保存数据。上代码。- (void)viewDidLoad{ [super viewDidLoad]; // Do any additional setup after loading the view. self.title=@"N...
分类:其他好文   时间:2014-06-26 11:24:49    阅读次数:161
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!