众所周知,我们经常在脚本中创建一些对象来实现某些特定的功能。尤其是当我们使用QTP的描述性编程时,需要创建这些对象。
下边是我们经常在QTP或VBScript中用到的对象列表:
Set objEmail = CreateObject("CDO.Message" )
Set objIE = CreateObject("InternetExplorer.Application" )...
分类:
其他好文 时间:
2014-05-15 14:54:27
阅读次数:
230
题意:在一个二维矩阵中找到给定的值。矩阵从上到下从左到右有序
思路:二维空间的二分查找
先在一维里找中间位置,再将该位置转为二维空间里的下标
注:下标比较难弄,得注意点
复杂度: 时间O(log n),空间O(1)
相关题目:
Search Insert Position...
分类:
其他好文 时间:
2014-05-15 07:24:42
阅读次数:
253
【题目】
原文:
1.6 Given an image represented by an NxN matrix, where each pixel in the image is 4 bytes, write a method to rotate the image by 90 degrees. Can you do this in place?
译文:
一张图像表示...
分类:
其他好文 时间:
2014-05-15 05:43:35
阅读次数:
240
右键选择Options...
左栏选项选择Text,右栏Character set 选择GBK,Locale选择zh_CN
选择OK,乱码成功变中文。...
thinkphp Runtime
除了页面有缓存外,数据表也生成了缓存,所以如果开发后期有更新字段,上传到服务器 后要把Runtime里面的内容全部删除,否则会出错nginx 配置以适应
pathinfo 需求 #去掉$是为了不匹配行末,即可以匹配.php/,以实现pathinfo ...
分类:
Web程序 时间:
2014-05-14 13:12:01
阅读次数:
356
Student类有集合属性Courses,如何把Student连同集合属性Courses传递给控制器方法?
public class Student { public string StudentName { get; set; } public IList
Courses { get; set; ...
分类:
Web程序 时间:
2014-05-14 12:49:24
阅读次数:
351
mysql_connect(): Connection using old (pre-4.1.1)
authentication protocol
refused解决方法有如下三种:1、服务器端升级启用secure_auth选项;2、客户端连接时off掉secure_auth,即连接时加上--sec...
分类:
数据库 时间:
2014-05-14 12:42:12
阅读次数:
528
这道题最开始采用recursive的方法,结果犯了TLE(time limit
exceeded)的错误,事实证明recursive的时间代价还是太高,所以改用DP的方法,把曾经算出来的结果存起来,我用的是一个M*N的matrix来存储 1
public class Solution { 2 ...
分类:
其他好文 时间:
2014-05-14 10:57:31
阅读次数:
245