2015-05-21 24 views

回答

2

不要呼籲str類,但你的字符串對象的方法:您需要

s = "That that is is that that is not is not is that it it" 
sub = "s" 
print "s.count(sub, 4, 40) : ", s.count(sub, 4, 40) 
相關問題