统计字符串中某字符出现次数

num = 'Hello world'.count('l')  
原文地址:https://www.cnblogs.com/sea-stream/p/11190449.html