题解 | 计算某字符出现次数
计算某字符出现次数
https://www.nowcoder.com/practice/a35ce98431874e3a820dbe4b2d0508b1
# 对输入的字符进行处理,方便后续对比
input_str = input().upper()
search_str = input().upper()
count = 0
# 开始对比
for i in input_str:
if i == search_str:
count = count+1
# 显示结果
print(count)
