题解 | #计算某字符出现次数#
计算某字符出现次数
http://www.nowcoder.com/practice/a35ce98431874e3a820dbe4b2d0508b1
使用正则表达式的忽略大小写匹配 import re str1 = input() str2 = input() content = re.compile(str2, re.I)
output = len(content.findall(str1)) print(output)
计算某字符出现次数
http://www.nowcoder.com/practice/a35ce98431874e3a820dbe4b2d0508b1
使用正则表达式的忽略大小写匹配 import re str1 = input() str2 = input() content = re.compile(str2, re.I)
output = len(content.findall(str1)) print(output)
相关推荐
最喜欢秋天的火龙果很...:第一份工作一定要往大的去,工资低点没事。后面换工作会更好找,即使你去小公司,你也不可能不会换工作的。所以找大的去