SurfaceView一、简述TheSurfaceViewis a special subclass
of View that offers a dedicated drawing surface within the View hierarchy. The
aim is to offer this...
分类:
其他好文 时间:
2014-05-26 02:01:50
阅读次数:
277
import
reex=raw_input()num="1234567890"a=re.findall("\d+",ex)b=re.findall("[+-]",ex)l=[]if
len(a)==len(b): for i in range(len(a)): l.append(...
分类:
其他好文 时间:
2014-05-26 01:47:32
阅读次数:
296
/// /// 文本长度判断 /// public static bool
TextLength(int min, int max, string s) { if (s.Length max) { return false; }
else { return true; } } /// ///...
分类:
Web程序 时间:
2014-05-25 23:09:29
阅读次数:
349
JavaScript:R=0; x1=.1; y1=.05; x2=.25; y2=.24;
x3=1.6; y3=.24; x4=300; y4=200; x5=300; y5=200; DI=document.images;
DIL=DI.length; function A(){for(i=0...
分类:
编程语言 时间:
2014-05-25 18:44:35
阅读次数:
337
题目:一个有序数组,要求保证数组中的每个元素不能超过2个。 输入:A =[1,1,1,2,2,3]
输出:length =5, and A is now[1,1,2,2,3]思路:双指针
。有些绕,不过理清了后,思路还是很直接明朗的。1、两个指针:p和help。初始化时同时指向数组头。变量cur.....
分类:
其他好文 时间:
2014-05-25 16:15:16
阅读次数:
285
语法: = inset? && {2,4} && ?
注释:问号表示可选参数;{2,4}表示最少2个参数最多4个;当length = 2时,代表position x 和position y的值;当length =
3时,代表position x, position y, blur;当length ....
分类:
Web程序 时间:
2014-05-25 14:07:41
阅读次数:
355
h=lambda t:(reduce(lambda x,y:x*y,range(1,t+1)))
h(5)=120
reduce函数是一个二元操作函数,他用来将一个数据集合(链表,元组等)中的所有数据进行下列操作:用传给reduce中的函数 func()(必须是一个二元操作函数)先对集合中的第1,2个数据进行操作,得到的结果再与第三个数据用func()函数运算,最后得到一个结果。...
分类:
编程语言 时间:
2014-05-25 09:55:21
阅读次数:
477
【题目】
Given a string s consists of upper/lower-case alphabets and empty space characters ' ', return the length of last word in the string.
If the last word does not exist, return 0.
Note: A word is defined as a character sequence consists of non-space ...
分类:
其他好文 时间:
2014-05-25 07:39:05
阅读次数:
256
Irange =
(Microsoft.Office.Interop.Excel.Range)worksheet.get_Range("I1",
"I1").get_Resize(100, 1);//获取一整列I,行数为100Irange.Validation.Add(Microsoft.Offic...
分类:
其他好文 时间:
2014-05-25 02:21:42
阅读次数:
293
import java.util.stream.*;
class KV{
String ch;
int id;
}
public class Test {
private static void print(String text, int offset) {
IntStream.range(0, text.length())
.mapToObj(i -> new KV(){{c...
分类:
编程语言 时间:
2014-05-24 22:09:03
阅读次数:
363