class Solution(object): def strStr(self, haystack, needle): """ :type haystack: str :type needle: str :rtype: int """ return haystack.find(needle)
Leetcode 28. Implement strStr()
原文:https://www.cnblogs.com/zywscq/p/10575953.html