a=input()
b=input()
print(len(a.split(b))-1)

输入2行。第1行是字符串,第2行是要查找的字符。
输入案例
sdvnjfeis
s
输出
2

RJGCWJH
原创文章 3获赞 0访问量 50
关注私信
展开阅读全文