题解 | 计算某字符出现次数
import sys
str=input()
c=input()
i=0
for s in str:
#print(s)
if s.upper()==c or s.lower()==c:
i+=1
print(i)
import sys
str=input()
c=input()
i=0
for s in str:
#print(s)
if s.upper()==c or s.lower()==c:
i+=1
print(i)
相关推荐