| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1891,12 +1891,15 @@ expression support in the :mod:`re` module). | |||
| 1891 | 1891 | (``\n``) or return (``\r``), it is copied and the current column is reset to | |
| 1892 | 1892 | zero. Any other character is copied unchanged and the current column is | |
| 1893 | 1893 | incremented by one regardless of how the character is represented when | |
| 1894 | - printed. | ||
| 1894 | + printed. For example:: | ||
| 1895 | 1895 | ||
| 1896 | 1896 | >>> '01\t012\t0123\t01234'.expandtabs() | |
| 1897 | 1897 | '01 012 0123 01234' | |
| 1898 | 1898 | >>> '01\t012\t0123\t01234'.expandtabs(4) | |
| 1899 | 1899 | '01 012 0123 01234' | |
| 1900 | + >>> print('01\t012\n0123\t01234'.expandtabs(4)) | ||
| 1901 | + 01 012 | ||
| 1902 | + 0123 01234 | ||
| 1900 | 1903 | ||
| 1901 | 1904 | ||
| 1902 | 1905 | .. method:: str.find(sub[, start[, end]]) | |
| Back | FazBrowse Home | New Git URL |
0 commit comments