28. Implement strStr()

class Solution(object):
    def strStr(self, haystack, needle):
        """
        :type haystack: str
        :type needle: str
        :rtype: int
        """
        return haystack.find(needle)
        

  

posted @ 2017-12-17 16:00  PirateLHX  阅读(77)  评论(0)    收藏  举报