-1
s = "That that is is that that is not is not is that it it"
sub = "s"
print "str.count(sub, 4, 40) : ", str.count(sub, 4, 40)
雖然使用string.count()
方法會出現以下錯誤。雖然使用string.count()方法,但出現錯誤TypeError:預期的字符緩衝區對象
錯誤:
TypeError: expected a character buffer object
's.count(分,4,40)' – Kasramvd