#-*-coding:utf-8class Person: __privateName=None; count=0;#既可以被实例对象引用,也可以被当做静态对象引用,NND,好混乱。 def __init__(self,name): self.count+=1 ...
分类:
编程语言 时间:
2014-07-06 23:36:44
阅读次数:
354
继续在上一节的类的基础上测试继承:#-*-coding:utf-8import Syntax2class Student(Syntax2.Person): def __init__(self,name,age): Syntax2.Person.__init__(self,nam...
分类:
编程语言 时间:
2014-07-06 23:19:57
阅读次数:
310
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions{ self.window = [[[UIWindow alloc] init...
分类:
移动开发 时间:
2014-07-06 23:04:31
阅读次数:
270
#pragma mark 发微博界面:sendStatus-(void)sendStatus{ if ([self.textView.text isEqualToString:@""]) { UIAlertView *alter = [[UIAlertView alloc...
分类:
其他好文 时间:
2014-07-06 22:34:00
阅读次数:
293
定义英文定义:Recursion is the process of repeating items in a self-similar way.具体到计算机中去:递归:又称为递回,在数学和计算机科学中,是指在函数的定义中使用函数自身的方法.[以上定义来源为wiki].英文的Recursion表达的...
分类:
其他好文 时间:
2014-07-05 19:17:57
阅读次数:
200
//首先注册通知,键盘出现和消失的通知[[NSNotificationCenter defaultCenter]addObserver:self selector:@selector(keyboardAppear:) name:UIKeyboardWillShowNotification objec...
分类:
其他好文 时间:
2014-07-05 18:44:19
阅读次数:
170
for (id view in self.view.subviews) { if ([view isKindOfClass:[UITextField class]]) { UITextField* textField = (UITextField*)view; [t...
分类:
其他好文 时间:
2014-07-05 17:30:52
阅读次数:
161
先上图:
我们得自定义ProgressBar的样式
//继承了android横向的ProgressBar的样式
false
@drawable/self_define_progress
//定义的是背景色
<gradient android:angle="270" android:centerColor="#efe...
分类:
其他好文 时间:
2014-07-05 11:11:07
阅读次数:
346
#import "MainViewController.h"
@interface MainViewController ()
@end
@implementation MainViewController
- (void)viewDidLoad
{
[super viewDidLoad];
//下载文件
[self download];
}
-(void)dow...
分类:
移动开发 时间:
2014-07-04 07:36:55
阅读次数:
347
Iwanttostudyitallthetime,andnowIamreadytostudythisbookinthenextmouth.Time:2014/07/02先看一个程序体验一下:#include<iostream>
intmain()
{
/*Thisisatestexample*/
std::cout<<"Entertwonumbers:"<<std::endl;
intv1,v2;
std::cin>>v1>>v..
分类:
编程语言 时间:
2014-07-03 15:24:04
阅读次数:
221