#WalkDir函数枚举目录中所有目录和文件,参数(枚举目录输出列表,枚举文件输出列表,要枚举的目录)def WalkDir(dirlist,filelist,dirname): try: ls=os.listdir(dirname) except: prin...
                            
                            
                                分类:
编程语言   时间:
2014-10-22 23:32:40   
                                阅读次数:
308
                             
                         
                    
                        
                            
                            
                                测试开启前的设备系统准备工作。
接口
/*
 * Copyright (C) 2010 The Android Open Source Project
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compl...
                            
                            
                                分类:
其他好文   时间:
2014-10-22 15:59:16   
                                阅读次数:
324
                             
                         
                    
                        
                            
                            
                                集合操作符对元素的集合或序列集合进行操作,并返回一个集合。LINQ共有4种集合查询操作符:Distinct、Union、Intersect和Except。
                            
                            
                                分类:
其他好文   时间:
2014-10-22 14:16:04   
                                阅读次数:
134
                             
                         
                    
                        
                            
                            
                                /*
 * Copyright (C) 2006 The Android Open Source Project
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * Yo...
                            
                            
                                分类:
移动开发   时间:
2014-10-22 12:57:52   
                                阅读次数:
283
                             
                         
                    
                        
                            
                            
                                IBuildProvider接口中定义了三个方法
/*
 * Copyright (C) 2010 The Android Open Source Project
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in comp...
                            
                            
                                分类:
其他好文   时间:
2014-10-22 11:05:15   
                                阅读次数:
235
                             
                         
                    
                        
                            
                            
                                while True: try: s=raw_input() a,b=s.split(' ') a,b=int(a),int(b) print a+b except EOFError: break
                            
                            
                                分类:
其他好文   时间:
2014-10-22 08:44:07   
                                阅读次数:
162
                             
                         
                    
                        
                            
                            
                                intersect y except are both working on same table and multiple tablesEXCEPT 从左查询中返回右查询没有找到的所有非重复值。INTERSECT 返回 INTERSECT 操作数左右两边的两个查询都返回的所有非重复值。以下是将使用...
                            
                            
                                分类:
其他好文   时间:
2014-10-21 19:19:56   
                                阅读次数:
217
                             
                         
                    
                        
                            
                            
                                /*
 * Copyright (C) 2006 The Android Open Source Project
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * Yo...
                            
                            
                         
                    
                        
                            
                            
                                在看代码的时候看到两个宏函数:likely()   unlikely()
#define likely(x) __builtin_expect(!!(x), 1)
#define unlikely(x) __builtin_expect(!!(x), 0)
 __builtin_expect()大致作用是处理分支预测,让编译器编译的时候可以做一些优化,优化可能性大的分支程序
if( like...
                            
                            
                                分类:
系统相关   时间:
2014-10-19 17:12:40   
                                阅读次数:
230
                             
                         
                    
                        
                            
                            
                                1. python中的try{}catch{}2. raise exception3. try...except ... else..4. finally块python中的异常处理的keyword和c#中的是不同样的,python中使用try,except关键在来处理异常,例如以下:2. raise...
                            
                            
                                分类:
编程语言   时间:
2014-10-19 11:32:07   
                                阅读次数:
228