What's this? Implement KMP algorithm by python What's the KMP algorithm? You can take a look this blog Why Python? Just for fun :)