mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
bpo-31487: Update F-strings doc example (GH-3627)
Shorten the comment to: "using integer format specifier"
This commit is contained in:
parent
30b61b51e0
commit
63c591c0b0
1 changed files with 1 additions and 1 deletions
|
@ -680,7 +680,7 @@ Some examples of formatted string literals::
|
|||
>>> f"{today:%b %d, %Y}" # using date format specifier
|
||||
'January 27, 2017'
|
||||
>>> number = 1024
|
||||
>>> f"{number:#0x}" # using integer presentation type as format specifier
|
||||
>>> f"{number:#0x}" # using integer format specifier
|
||||
'0x400'
|
||||
|
||||
A consequence of sharing the same syntax as regular string literals is
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue