//抓取文字方法,参数为网页源代码 public string ExtractText(string strHtml) { string result = strHtml; result = RemoveComment(res...
分类:
Web程序 时间:
2015-06-16 20:50:24
阅读次数:
156
今天在因为修改了存储过程的参数,要增加传入的参数,数据为Mysql。在写的过程中,把这默认传值简单的写成了死值。但是运行后发现报错了。java.lang.charactercannotbecasttojava.lang.Stringjava.lang.charactercannotbecasttojava.lang.String这个错误。然后查代码,上网找答..
分类:
编程语言 时间:
2015-06-16 19:31:19
阅读次数:
281
无参方法
关于方法re和im还有一个小问题:你必须在名字后面加上一对括号来调用它们。请看下面的例子:
object ComplexNumbers {
def main(args: Array[String]) {
val c = new Complex(1.2, 3.4)
println("imaginary part: " + c.im())
}
}
你可能觉得吧这些函数...
分类:
其他好文 时间:
2015-06-16 19:19:45
阅读次数:
129
题目链接 题目要求: Given a stringSand a stringT, count the number of distinct subsequences ofTinS. A subsequence of a string is a new string which is for...
分类:
其他好文 时间:
2015-06-16 18:45:52
阅读次数:
87
Constants.java 是一些接口测试中的URL和参数等。public class Constants { public static final String BASE_URL = "http://192.168.1.116:8080/cloudalbums/website/"; ...
分类:
编程语言 时间:
2015-06-16 18:45:24
阅读次数:
135
也许会有人这样解释C# 中浅拷贝与深拷贝区别:浅拷贝是对引用类型拷贝地址,对值类型直接进行拷贝。不能说它完全错误,但至少还不够严谨。比如:string 类型咋说?其实,我们可以通过实践来寻找答案。首先,定义以下类型:int 、string 、enum 、struct 、class 、int[ ] 、...
InterfaceTest,在TestMain中可以看到是实现测试测试的基本方法。代码如下:public class InterfaceTest { final static String param = "param"; HtmlFile hf = new HtmlFile(); ...
分类:
编程语言 时间:
2015-06-16 18:38:58
阅读次数:
98
Redis::__construct描述:创建一个Redis客户端范例:$redis = new Redis(); connect, open描述:实例连接到一个Redis.参数:host: string port: int返回值:BOOL 成功返回:TRUE;失败返回:FALSE范例:$redis...
分类:
其他好文 时间:
2015-06-16 18:35:44
阅读次数:
87
第一 ,引用命名空间using System.Runtime.CompilerServices;第二,编写一个方法 void ShowDetail(Exception ex, [CallerFilePath] string path=null, [Cal...
分类:
其他好文 时间:
2015-06-16 18:33:32
阅读次数:
108
problem:Given a string S, find the longest palindromic substring in S. You may assume that the maximum length of S is 1000, and there exists one uniqu...
分类:
其他好文 时间:
2015-06-16 18:32:29
阅读次数:
113