码迷,mamicode.com
首页 >  
搜索关键字:string    ( 95377个结果)
用正则表达式去截取网页里文字的方法。参数为读取的网页源代码
//抓取文字方法,参数为网页源代码 public string ExtractText(string strHtml) { string result = strHtml; result = RemoveComment(res...
分类:Web程序   时间:2015-06-16 20:50:24    阅读次数:156
java.lang.character cannot be cast to java.lang.String
今天在因为修改了存储过程的参数,要增加传入的参数,数据为Mysql。在写的过程中,把这默认传值简单的写成了死值。但是运行后发现报错了。java.lang.charactercannotbecasttojava.lang.Stringjava.lang.charactercannotbecasttojava.lang.String这个错误。然后查代码,上网找答..
分类:编程语言   时间:2015-06-16 19:31:19    阅读次数:281
Scala无参方法详解
无参方法 关于方法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
LeetCode之“动态规划”:Distinct Subsequences
题目链接 题目要求: 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
接口测试-自动化-Java实现-Constants.java/RecordStore.java
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# 浅拷贝与深拷贝区别
也许会有人这样解释C# 中浅拷贝与深拷贝区别:浅拷贝是对引用类型拷贝地址,对值类型直接进行拷贝。不能说它完全错误,但至少还不够严谨。比如:string 类型咋说?其实,我们可以通过实践来寻找答案。首先,定义以下类型:int 、string 、enum 、struct 、class 、int[ ] 、...
分类:Windows程序   时间:2015-06-16 18:40:58    阅读次数:138
接口测试-自动化-Java实现-InterfaceTest
InterfaceTest,在TestMain中可以看到是实现测试测试的基本方法。代码如下:public class InterfaceTest { final static String param = "param"; HtmlFile hf = new HtmlFile(); ...
分类:编程语言   时间:2015-06-16 18:38:58    阅读次数:98
Redis常用命令(一)
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
LeetCode:Longest Palindromic Substring
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
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!