import osdef tree(top): for path, names, fnames in
os.walk(top): for fname in fnames: yield os.path.join(path, fname) for name
in...
分类:
编程语言 时间:
2014-05-09 23:49:35
阅读次数:
367
要点:AsyncTask主要用于short operations (a few seconds at
the most.)。如果你需要“running for long periods of time”,官方推荐使用various APIs provided
by the java.util.con...
分类:
其他好文 时间:
2014-05-09 23:46:38
阅读次数:
304
1 // 遍历一个list 2 public static void printList(List
list){ 3 for (String string : list) { 4 list.add("eeee"); // 运行错误 5 ...
分类:
其他好文 时间:
2014-05-09 23:31:33
阅读次数:
467
1.通过浏览器的句柄来操纵窗口,得到句柄的方法 public String
getWindowHandle(){ String currentWindow = driver.getWindowHandle(); return
currentWindow; } 2.切换到最新的窗口 pub...
分类:
Web程序 时间:
2014-05-09 23:27:19
阅读次数:
406
公司的登录注册等操作有验证码,测试环境可以让开发屏蔽掉验证码,但是如果到线上的话就要想办法识别验证码或必过验证码了。
识别验证码主要分为三部分,一、对验证码进行二值化。二、将二值化后的图片分割。三、进行识别。理论上在识别之前有一个标准化的操作,是将图片进行旋转等操作,尽量将字符弄成一样的格式,...
分类:
编程语言 时间:
2014-05-09 23:21:48
阅读次数:
568
第一次发文章,格式不太规范,不过以后会逐渐改正的,请大家多多指正public class
Pager { private string _pageurl; private int _pagecount; private int
_currentpage...
分类:
其他好文 时间:
2014-05-09 23:18:55
阅读次数:
335
1. 整形的表示范围-2^32~2^32 - 1 ; 长整形表示:aLong = 99999L2.
复数的属性, num.real,该复数的实部, num.imag,该复数的虚部。num.conjugate(),返回该复数的共轭复数。3.
分类:
编程语言 时间:
2014-05-09 23:11:13
阅读次数:
293
接着上一篇,上一篇主要介绍了PetaPoco
基本情况,优缺点和基本的查询功能,所以这篇主要介绍的是PetaPoco
的增,删,改等功能。PetaPoco提供了完整的增,删,改,查功能。是代替SqlHelper辅助类的不二选择。插入对象:,需要指定的表和它的主键。var
a=new arti...
分类:
其他好文 时间:
2014-05-09 23:09:13
阅读次数:
346
//MFC版本CString UTF8ToGBK(const CString&
strUTF8){ //确定转换为Unicode需要多少缓冲区(返回值也包含了最后一个NULL字符) int len =
MultiByteToWideChar(CP_UTF8, 0, strUTF8, -1, NULL...
分类:
其他好文 时间:
2014-05-09 23:05:27
阅读次数:
461
将读取的数据写到log.txt文件中,先在工程下新建一个log.txt文件public
class Program { public const string LOGGER_FILE = "log.txt"; public static void
Logger(st...
分类:
Web程序 时间:
2014-05-09 23:03:52
阅读次数:
843