class Solution(object):
def strStr(self, haystack, needle):
"""
:type haystack: str
:type needle: str
:rtype: int
"""
return haystack.find(needle)
标签:class def pytho int imp sel find turn post
class Solution(object):
def strStr(self, haystack, needle):
"""
:type haystack: str
:type needle: str
:rtype: int
"""
return haystack.find(needle)
标签:class def pytho int imp sel find turn post
原文地址:http://www.cnblogs.com/xlqtlhx/p/8052356.html