题目描述请点击查看LeetCode 题目描述
Python3 代码解答如下:
class Solution:
def strStr(self, haystack, needle):
"""
:type haystack: str
:type needle: str
:rtype: int
"""
print(haystack.find(needle))
return haystack.find(needle)