str = input("输入字符串") print(str.count('a'))
s=input("输入一个字符串:") t=0 for i in s: if i=='a': t+=1 print(t)