2014-06-14 BaoXinjian一、摘要Initialize data(数据初始化):用于新增记录对值Value的初始化1.在Design time 时设定Page item的Default value.2. 在Run time 时用编程方式设定, Default value的设定这里不说...
分类:
其他好文 时间:
2014-06-19 06:40:54
阅读次数:
446
第一种@using (Html.BeginForm("ProdPromotionEdit", "Product", FormMethod.Post, new { onsubmit = "return check()" }))第二种第三种jquery$("#xxxform").submit(funct...
分类:
Web程序 时间:
2014-06-18 22:41:12
阅读次数:
295
转:http://hi.baidu.com/firstm25/item/8fe022155e1fa78988a9568f摘要:设备驱动程序是操作系统内核与机器硬件之间的接口。设备驱动程序为应用程序屏蔽了硬件的细节。那么驱动程序如何书写实现这一接口功能是本文讨论的重点,并以一简单的驱动程序介绍书写细节...
分类:
系统相关 时间:
2014-06-18 15:03:05
阅读次数:
701
转载自:http://hi.baidu.com/????_xu/blog/item/5b9650c513bd3f049d163d8b.htmlpython的set和其他语言类似, 是一个 基本功能包括关系测试和消除重复元素. 集合对象还支持union(联合),intersection(交), dif...
分类:
编程语言 时间:
2014-06-18 14:30:05
阅读次数:
243
Given a binary tree, check whether it is a mirror of itself (ie, symmetric around its center).For example, this binary tree is symmetric: 1 / \ ...
分类:
其他好文 时间:
2014-06-18 13:29:31
阅读次数:
214
Given two binary trees, write a function to check if they are equal or not.Two binary trees are considered equal if they are structurally identical an...
分类:
其他好文 时间:
2014-06-18 12:32:58
阅读次数:
169
二分算法求最值,掌握了算法的本质和模板,主要就是答案验证过程,验证过程经常使用贪心算法。关键是根据题目要求设立命题check(x)。验证答案mid:Check(mid):是否成立?求满足条件Check(mid)的最小值:–if check(mid) then r:=mid else l:=mid+1...
分类:
其他好文 时间:
2014-06-17 21:19:25
阅读次数:
170
http://hi.baidu.com/yobin/item/166e3a46537781d3c1a59257乱码原因:因为你的文件声明为utf-8,并且也应该是用utf-8的编码保存的源文件。但是windows的本地默认编码是cp936,也就是gbk编码,所以在控制台直接打印utf-8的字符串当然...
分类:
编程语言 时间:
2014-06-17 19:55:59
阅读次数:
273
android中ListView是一个经常要用到的一个组件,用到该组件时经常会碰到ListView的Item和Item中的Button不能单击的问题。本人在使用时同样也遇到过这样的情况,共有三种情况,总结如下:情况一:焦点问题: 设置android:descendantFocusability="b...
分类:
其他好文 时间:
2014-06-17 15:37:46
阅读次数:
175
1.PyListObject对象 --> 变长可变对象,可看作vector
typedef struct{
PyObject_VAR_HEAD //其中的ob_size表示实际被使用的内存的数量
PyObject **ob_item;//ob_item为指向元素列表的指针,实际上,Python中的list[0]就是ob_item[0]
int allocated;//当前列表中可容纳的元素的总数
}
PyList_Type 对象 --> PyListObject的类型对象
ty...
分类:
编程语言 时间:
2014-06-16 22:48:55
阅读次数:
300