leetcode第28题方法二 附上链接 大家可以看题解边做题边学习KMP 实现 strStr() - 实现 strStr() - 力扣(LeetCode) (leetcode-cn.com)https://leetcode-cn.com/problems/implement-strstr/solution/shi-xian-strstr-by-leetcode-solution-ds6y/