题解 | #计算某字符出现次数#
计算某字符出现次数
http://www.nowcoder.com/practice/a35ce98431874e3a820dbe4b2d0508b1
str_1 = input() alpha_1 = input() str_2 = str_1.lower() alpha2 = alpha_1.lower() print(str_2.count(alpha2))python3里好多字符操作的函数,不知真正机试的时候能不能用...
计算某字符出现次数
http://www.nowcoder.com/practice/a35ce98431874e3a820dbe4b2d0508b1
str_1 = input() alpha_1 = input() str_2 = str_1.lower() alpha2 = alpha_1.lower() print(str_2.count(alpha2))python3里好多字符操作的函数,不知真正机试的时候能不能用...
相关推荐