统计字符串中指定字符的个数

a=input()
b=input()
def CountAa(s):
    return s.lower().count(b)
 
if __name__ == "__main__":
    s = a
    print(CountAa(s))

 

posted @ 2020-06-21 16:17  tf383838  阅读(240)  评论(0编辑  收藏  举报