默认构造函数(就是没有参数的构造函数)The Default ConstructorThe default constructor is the constructor used to create an object when you don't provide explicit initiali...
分类:
编程语言 时间:
2015-04-24 22:39:20
阅读次数:
156
装饰模式的英文原文是:Attach additional responsibilitities to an object dynamically keeping the same interface. Decorators provide a flexible alternative to subclassing for extending functionality. 意思是:动态的给一个对象添...
分类:
其他好文 时间:
2015-04-21 09:49:37
阅读次数:
191
Normally, RTSP provide streaming over UDP. By nature, UDP is a better choice as it provides robust streaming capability for media. However, it is unli...
分类:
其他好文 时间:
2015-04-18 23:45:23
阅读次数:
400
Menus group all commands that we can use in an application. Toolbars provide a quick access to the most frequently used commands.#!/usr/bin/python# -*...
分类:
其他好文 时间:
2015-04-17 17:58:07
阅读次数:
138
We can provide a balloon help for any of our widgets.#!/usr/bin/python# -*- coding: utf-8 -*-"""ZetCode PyQt4 tutorial This example shows a tooltip on...
代理模式的英文原文是:Provide a surrogate or placeholder for another object to control access to it. 意思是:为其他对象提供一种代理,以控制对这个对象的访问。
有以下三种角色:
1、抽象主题:是真实主题和代理主题的接口,代理主题要实现这个抽象主题,这样就可以使用代理主题代理真实主题。
2、真实主题:业务逻辑具体执...
分类:
其他好文 时间:
2015-04-14 18:10:03
阅读次数:
244
Writed - Mac下面免费markdown写作工具,输入文字和代码都很方便,专注于写作,是写博客的好助手。 推荐大家试用。
Writed was created by Stahl Labs AB to
provide the best distraction free
writing tool for Mac....
分类:
系统相关 时间:
2015-04-08 15:07:29
阅读次数:
128
单例模式的英文原文是:Ensure a class has only one instance, and provide a global point of access to it.意思是,确保一个类只有一个实例,并向整个系统提供这个实例。单例模式主要是确保只有一个实例存在。在java语言中有两种表现形式:
饿汉式单例:类加载时就进行实例化。
package com.zz.singleton...
分类:
其他好文 时间:
2015-04-04 09:12:32
阅读次数:
140
抽象工厂模式(Abstract Factory Pattern)是工厂方法模式的进一步抽象,其英文原话"Provide an interface for creating families of related or dependent objects without specifying thei...
分类:
编程语言 时间:
2015-04-03 10:56:32
阅读次数:
143
好久没更新了,近期工作比较忙,今天说一个非代码的东西今天一个app元数据被拒绝了,要求我们提供一个demo video演示某个功能,因为那边的审核人员不清楚 不知道怎么测,或者说在那边测不到预期结果吧Please provide a demo video to demonstrate the XXX...
分类:
其他好文 时间:
2015-04-02 18:35:26
阅读次数:
416