http://blog.csdn.net/yuxiaohen/article/details/17226971用法很奇葩记录一下,实测可以,用于弱化delegate与持有者的依赖delegate: Component { Rectangle { id:wrapper width: parent.wi...
分类:
其他好文 时间:
2014-10-10 16:31:23
阅读次数:
328
@property有什么用呢?表面看来,就是将一个方法用属性的方式来访问.
上代码,代码最清晰了.
class Circle(object):
def __init__(self, radius):
self.radius = radius
@property
def area(self):
return 3.14 * self.rad...
分类:
编程语言 时间:
2014-10-09 19:10:07
阅读次数:
193
public partial class Form1 : Form{ private bool IsMouseDown = false; Rectangle MouseRect = Rectangle.Empty; public Form1() ...
分类:
其他好文 时间:
2014-10-09 01:46:57
阅读次数:
154
The maze was a rectangle with sizes N by M. There was a door in the maze. At the beginning, the door was closed and it would open at the T-th second f...
分类:
其他好文 时间:
2014-10-08 18:32:25
阅读次数:
205
1:shape总结
1):shape文件是放置在drawable文件下的。res/drawable/filename.xml.
2):shape类型:android:shape。一共有四种:rectangle,oval,line,ring。
3):corners标签:定义圆角。当且仅当控件类型位rectangle时才有作用。android:radiuse位圆角的半径。当然也...
分类:
移动开发 时间:
2014-10-06 18:07:10
阅读次数:
308
Introduction Ethernet 是过去30年以来最为成功的局域网(local area networking)技术。 1. First widely used LAN technology (第一次被广泛使用的局域网技术) 2. kept up with speed race: 10 M...
分类:
Web程序 时间:
2014-10-06 12:29:20
阅读次数:
515
宏定义不带参数宏定义:#define PI 3.1415926带参数的宏定义:#define PI 3.1415926#define S(r) (PI*(r)*(r))void main(){float a=2,area;area=S(a); }用宏可以得到几个结果:#define CIRCLE(R...
分类:
其他好文 时间:
2014-10-05 20:27:18
阅读次数:
266
临时表空间概念 临时表空间用来管理数据库排序操作以及用于存储临时表、中间排序结果等临时对象,当ORACLE里需要用到SORT的时候,并且当PGA中sort_area_size大小不够时,将会把数据放入临时表空间里进行排序。像数据库中一些操作: CREATE INDEX、 ANALYZE、SELECT...
分类:
数据库 时间:
2014-10-05 13:15:28
阅读次数:
372
#pragma mark - Set thumbnailImage-(UIImage*)setThumbnailFromImage:(UIImage *)image{ CGSize origImageSize = image.size; // The rectangle of t...
分类:
其他好文 时间:
2014-10-04 05:25:55
阅读次数:
349
我们可以认为module是一个专门存放一系列方法和常量的工具箱。module和class非常像, 只是module不能创建实例也不能有子类, 它们仅仅能存放东西。例如:module Circle PI = 3.141592653589793 def Circle.area(radius) ...
分类:
其他好文 时间:
2014-10-02 23:05:23
阅读次数:
282