开发者

Get a count for a pattern using python

开发者 https://www.devze.com 2023-01-11 15:44 出处:网络
In the following how to count the number of times that __TEXT__开发者_C百科 appears in the variable sing 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

精彩评论

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