mirror of
https://github.com/python/cpython
synced 2026-09-29 12:10:30 +03:00
Merge 3.4: Fix faq example with division.
This commit is contained in:
commit
ae04491fd0
1 changed files with 1 additions and 1 deletions
|
|
@ -732,7 +732,7 @@ To convert, e.g., the number 144 to the string '144', use the built-in type
|
|||
constructor :func:`str`. If you want a hexadecimal or octal representation, use
|
||||
the built-in functions :func:`hex` or :func:`oct`. For fancy formatting, see
|
||||
the :ref:`string-formatting` section, e.g. ``"{:04d}".format(144)`` yields
|
||||
``'0144'`` and ``"{:.3f}".format(1/3)`` yields ``'0.333'``.
|
||||
``'0144'`` and ``"{:.3f}".format(1.0/3.0)`` yields ``'0.333'``.
|
||||
|
||||
|
||||
How do I modify a string in place?
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue