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

 

 

num = 'Hello world'.count('l')  

 

posted @ 2019-07-15 17:57  anobscureretreat  阅读(253)  评论(0)    收藏  举报