mirror of
https://github.com/python/cpython.git
synced 2025-01-06 00:25:19 +08:00
Doc: Missing 'f' in an f-string. (GH-9074)
This commit is contained in:
parent
f9925d86c9
commit
25fa141487
@ -127,7 +127,7 @@ applies :func:`repr`::
|
||||
>>> animals = 'eels'
|
||||
>>> print(f'My hovercraft is full of {animals}.')
|
||||
My hovercraft is full of eels.
|
||||
>>> print('My hovercraft is full of {animals !r}.')
|
||||
>>> print(f'My hovercraft is full of {animals !r}.')
|
||||
My hovercraft is full of 'eels'.
|
||||
|
||||
For a reference on these format specifications, see
|
||||
|
Loading…
Reference in New Issue
Block a user