File tree Expand file tree Collapse file tree 1 file changed +11
-7
lines changed Expand file tree Collapse file tree 1 file changed +11
-7
lines changed Original file line number Diff line number Diff line change @@ -1759,18 +1759,22 @@ expression support in the :mod:`re` module).
17591759.. method :: str.capitalize()
17601760
17611761 Return a copy of the string with its first character capitalized and the
1762- rest lowercased. For example::
1762+ rest lowercased.
1763+
1764+ DZ, Dz, dz
1765+ DŽ, Dž, dž
1766+ IJ, ij
1767+ LJ, Lj, lj
1768+ NJ, Nj, nj
1769+ ᵺ
1770+
1771+ For example::
17631772
17641773 >>> 'PYTHON IS AMAZING'.capitalize()
17651774 'Python is amazing'
17661775 >>> 'Njemačka starts With a non-ASCII digraph'.capitalize()
17671776 'Njemačka starts with a non-ascii digraph'
1768- >>> ' DZ, Dz, dz'.title()
1769- >>> 'DŽ, Dž, dž '.title()
1770- >>> 'IJ, ij'.title()
1771- >>> 'LJ, Lj, lj '.title()
1772- >>> 'NJ, Nj, nj '.title()
1773- >>> 'ᵺ '.title()
1777+
17741778
17751779
17761780 See also :meth: `title `.
You can’t perform that action at this time.
0 commit comments