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/xlqtlhx/p/8052356.html