Leetcode 28. Implement strStr()

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