开发者

Get a count for a pattern using python

In the following how to count the number of times that __TEXT__开发者_C百科 appears in the variable sing python

    a="This is __TEXT__ message to test __TEXT__ message"


a.count("__TEXT__")

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜