class Solution: def strStr(self, haystack: str, needle: str) -> int: return haystack.find(needle)
每日LeetCode - 28. 实现 strStr()(C语言和Python 3)
原文:https://www.cnblogs.com/vicky2021/p/14756772.html