计算字符串中字符出现次数的最简单方法是什么?
例如计算'a'出现的次数'Mary had a little lamb'
'a'
'Mary had a little lamb'
python string count
count ×1
python ×1
string ×1