mirror of
https://github.com/python/cpython.git
synced 2025-12-04 00:30:19 +00:00
update the tutorial to use str.format
This commit is contained in:
parent
c15205e939
commit
f9ef9881d7
7 changed files with 81 additions and 32 deletions
|
|
@ -372,9 +372,13 @@ The built-in function :func:`len` returns the length of a string::
|
|||
Both strings and Unicode strings support a large number of methods for
|
||||
basic transformations and searching.
|
||||
|
||||
:ref:`new-string-formatting`
|
||||
Information about string formatting with :meth:`str.format` is described
|
||||
here.
|
||||
|
||||
:ref:`string-formatting`
|
||||
The formatting operations invoked when strings and Unicode strings are the
|
||||
left operand of the ``%`` operator are described in more detail here.
|
||||
The old formatting operations invoked when strings and Unicode strings are
|
||||
the left operand of the ``%`` operator are described in more detail here.
|
||||
|
||||
|
||||
.. _tut-unicodestrings:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue