摘要: /// /// 计算字符串中子串出现的次数 /// /// 字符串 /// 子串 /// 出现的次数 static int SubstringCount(string str, string substring) { if (str.Contains(substring)) { string strReplaced = str.Replace(substring, ""); return ... 阅读全文
posted @ 2013-11-13 13:51 程序员徐坤 阅读(24749) 评论(4) 推荐(3) 编辑