s = input()
a = input()
count = 0
for i in s:
if i == a:
count += 1
print(count)
浙大版《Python 程序设计》题目集 第5章-5 统计字符出现次数 (20分)
最新推荐文章于 2023-11-09 18:28:49 发布
s = input()
a = input()
count = 0
for i in s:
if i == a:
count += 1
print(count)