http://www.ruanyifeng.com/blog/2013/05/Knuth%E2%80%93Morris%E2%80%93Pratt_algorithm.html 转载于:https://www.cnblogs.com/douzujun/p/5951723.html