https://codingnote.cc/zh-my/p/330770/
KMP算法,你想知道的都在这里!