python中 count()的用法
字符串string的用法
string = "hello,hello,jim"
string.count(sub,start,end)
#字符串
string.count("h"
string.count("h",1)
string.connt("h",1.100)
列表:
list = [1,3,5,"hello",3]
list.count("hello")
list.count.(3)
字符串string的用法
string = "hello,hello,jim"
string.count(sub,start,end)
#字符串
string.count("h"
string.count("h",1)
string.connt("h",1.100)
列表:
list = [1,3,5,"hello",3]
list.count("hello")
list.count.(3)