class Solution(object): def strStr(self, haystack, needle): """ :type haystack: str :type needle: str :rtype: int """ return haystack.find(needle)
本文共 245 字,大约阅读时间需要 1 分钟。
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