# Both find() and index() locate the position of a specified substring within a string. # However, they differ in their behavior when the substring is not found ...
> 原文:[https://www . geeksforgeeks . org/python-第 n 次出现字符串中的子字符串/](https://www.geeksforgeeks.org/python-ways-to-find-nth-occurrence-of ...
It is possible to find part of a string by using a subString (a bit, or part, of a string) method. Remember that the first character in the string starts at reference 0. For example, select a ...