码迷,mamicode.com
首页 >  
搜索关键字:note to self    ( 21530个结果
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
Programming In Scala Reading Note 5
Functional ObjectAdvantages and Disadvantages of Immutable ObjectAdv 1. 不可变对象更具容易被推断出来,因为它不会随着时间的变化而造成值的变化。Adv 2. 不可变对象可以自动地传递不会发生变化,而传递可变对象的话,需要首先对可变...
分类:其他好文   时间:2014-06-27 13:55:22    阅读次数:187
获得现在的时间
有没有那么一个时候,特别想知道现在的时间呢。上代码。- (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
LeetCode Length of Last Word
Given a string s consists of upper/lower-case alphabets and empty space characters ' ', return the length of last word in the string. If the last word does not exist, return 0. Note: A word is d...
分类:其他好文   时间:2014-06-27 10:18:32    阅读次数:151
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
Leetcode: Anagrams
Given an array of strings, return all groups of strings that are anagrams.Note: All inputs will be in lower-case.Analysis: 这个题简单的版本是判断两个单词是不是anagram,一...
分类:其他好文   时间:2014-06-26 12:47:48    阅读次数:144
Devstack: A copy of worked local.conf I'm sharing with you.
# Sample ``local.conf`` for user-configurable variables in ``stack.sh`` # NOTE: Copy this file to the root ``devstack`` directory for it to # work properly. # ``local.conf`` is a user-maintained set...
分类:其他好文   时间:2014-06-26 11:41:09    阅读次数:272
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
迷上了代码!