码迷,mamicode.com
首页 >  
搜索关键字:self    ( 14215个结果
Python学习:面向对象(OOP)
类和实例1、类(class):有属性有方法就是类。下面是Student类:classStudent(object): def__init__(self,name,score): self.name=name self.score=score defprint_score(self): print(‘%s:%s‘%(self.name,self.score)) defget_grade(self): ifself.score>=90: return‘A‘ e..
分类:编程语言   时间:2017-05-18 01:22:46    阅读次数:132
PHP中this,self,parent的区别
一、PHP中this,self,parent的区别之一this篇 面向对象编程(OOP,Object OrientedProgramming)现已经成为编程人员的一项基本技能。利用OOP的思想进行PHP的高级编程,对于提高PHP编程能力和规划web开发构架都是很有意义的。 PHP5经过重写后,对OO ...
分类:Web程序   时间:2017-05-18 01:12:15    阅读次数:254
学会自律系列总结
http://www.mifengtd.cn/articles/self-discipline-summary.html 来自GTD翻译小组的精品《自律》翻译系列,保证值得一读再读! 不奋发,则心日颓靡;不检束,则心日恣肆 —— 北宋·朱熹 自律是指我们要有意义地控制自己,有原则地对待事物,能够主动 ...
分类:其他好文   时间:2017-05-18 01:10:06    阅读次数:226
cocos2D 虚拟摇杆Joystick功能实现
@implementationInputLayer-(id)init{if(self=[superinit]){winSize=[[CCDirectorsharedDirector]winSize];[selfaddJoystick];[selfaddFireButton];[selfscheduleUpdate];}returnself;}//添加一个按钮-(void)addFireButton{fireButton=[SneakyButtonbutton];fireButton.isHolda..
分类:其他好文   时间:2017-05-18 01:09:49    阅读次数:377
leetcode_019 Remove Nth Node From End of List
Given a linked list, remove the nth node from the end of list and return its head. For example, ...
分类:其他好文   时间:2017-05-17 17:22:17    阅读次数:161
https
########https#######1.https定义HypertexttransferprotocoloverSecuresockerlayer通过ssl如果加密的通信非常重要,而经过验证的身份不重要,管理员可以通过生成self-signedcertificate来避免与认证机构进行交互所带来的复杂性。使用genkey实用程序(通过crypto-utils软件包分发),..
分类:Web程序   时间:2017-05-17 15:19:15    阅读次数:244
Dom 事件和JavaScript的词法分析过程
dom自带了很多事件,常见的如下所示当触发这些事件的时候,我们可以执行自定义的各种函数。一般说来,绑定事件有3种方法。第一种方法,直接在标签上面绑定,比如<inputid=‘i1‘type=‘button‘onclick=‘ClickOn(this)‘> functionClickOn(self){ }第二种方法,是先获取Dom对..
分类:编程语言   时间:2017-05-17 15:17:03    阅读次数:183
python 一个包中的文件调用另外一个包文件 实例
python不同文件夹中模块的引用调用顺序,被调用的模块中①有类的 模块.类().方法() ②无类的:模块.方法() test包中testIm.py 调用 test1包中testIm1.py中的方法craw1()方法,输出结果: testIm.py testIm1.py 参考: python 不同文 ...
分类:编程语言   时间:2017-05-17 14:17:56    阅读次数:3673
leetcode_025 Remove Duplicates from Sorted Array
Given a sorted array, remove the duplicates in place such that each element appear only once and return the new length. Do not allocate extra space fo ...
分类:其他好文   时间:2017-05-17 14:14:33    阅读次数:179
ios 导航栏透明, 上下滑动 导航栏 颜色渐变
- (void)viewWillAppear:(BOOL)animated { //设置导航栏背景图片为一个空的image,这样就透明了 [self.navigationController.navigationBar setBackgroundImage:[[UIImage alloc] init ...
分类:移动开发   时间:2017-05-17 12:09:12    阅读次数:314
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!