Nandu
Nandu
题解
题解 | #计算某字母出现次数#
全部文章
题解
归档
标签
去牛客网
登录
/
注册
题解 | #计算某字母出现次数#
620 浏览
0 回复
2021-10-01
Nandu
+关注
计算某字母出现次数
http://www.nowcoder.com/practice/a35ce98431874e3a820dbe4b2d0508b1
s1 = input() s2 = input().lower() count = 0 for i in s1.lower(): if i == s2: count += 1 print(count)
Python3
举报
收藏 1
赞 2
评论加载中...