计算字符串中字符出现的次数。
计算字符串中一个字符出现的次数的最简单方法是什么?
数一数次数'a'出现在'Mary had a little lamb'
'a'
'Mary had a little lamb'
相关分类