题解 | #计算某字母出现次数#
计算某字母出现次数
http://www.nowcoder.com/practice/a35ce98431874e3a820dbe4b2d0508b1
var str = readline().toLowerCase()
var key = readline().toLowerCase()
var count = 0;
console.log(str.split(key).length -1)
计算某字母出现次数
http://www.nowcoder.com/practice/a35ce98431874e3a820dbe4b2d0508b1
var str = readline().toLowerCase()
var key = readline().toLowerCase()
var count = 0;
console.log(str.split(key).length -1)
相关推荐