| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1775,6 +1775,14 @@ expression support in the :mod:`re` module). | |||
| 1775 | 1775 | Return the lowest index in the string where substring *sub* is found within | |
| 1776 | 1776 | the slice ``s[start:end]``. Optional arguments *start* and *end* are | |
| 1777 | 1777 | interpreted as in slice notation. Return ``-1`` if *sub* is not found. | |
| 1778 | + For example:: | ||
| 1779 | + | ||
| 1780 | + >>> 'spam, spam, spam'.find('sp') | ||
| 1781 | + 0 | ||
| 1782 | + >>> 'spam, spam, spam'.find('sp', 5) | ||
| 1783 | + 6 | ||
| 1784 | + | ||
| 1785 | + See also :meth:`rfind` and :meth:`index`. | ||
| 1778 | 1786 | ||
| 1779 | 1787 | .. note:: | |
| 1780 | 1788 | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments