python 实现
计算某字母出现次数
http://www.nowcoder.com/questionTerminal/a35ce98431874e3a820dbe4b2d0508b1
from collections import Counter
while True:
try:
str_ = input().lower()
char = input().lower()
print(Counter(str_)[char])
except:
break
查看19道真题和解析