题解 | #计算某字符出现次数#
计算某字符出现次数
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)
相关推荐
代码飞升_不回私信人...:同学院本,个人亮点去了,打招呼里面的废话也去了,学院本就是路边一条,明天拉满然后该学还是学,小厂也行尽量先有一段实习。另外你的项目描述写的不好,具体列一下可被提问的点,然后量化一下指标或者收益吧