mirror of
https://github.com/python/cpython.git
synced 2025-08-03 08:34:29 +00:00
#3503: fix print statements in 3k doc.
This commit is contained in:
parent
694f1f8c27
commit
11e18b0c2e
4 changed files with 6 additions and 9 deletions
|
@ -208,7 +208,7 @@ to the right argument, and returns the string resulting from this formatting
|
|||
operation. For example::
|
||||
|
||||
>>> import math
|
||||
>>> print 'The value of PI is approximately %5.3f.' % math.pi
|
||||
>>> print('The value of PI is approximately %5.3f.' % math.pi)
|
||||
The value of PI is approximately 3.142.
|
||||
|
||||
Since :meth:`str.format` is quite new, a lot of Python code still uses the ``%``
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue