Sujet : Re: Formatting a str as a number
De : grant.b.edwards (at) *nospam* gmail.com (Grant Edwards)
Groupes : comp.lang.pythonDate : 27. Aug 2024, 22:39:21
Autres entêtes
Message-ID : <mailman.12.1724794762.2917.python-list@python.org>
References : 1 2 3 4 5
User-Agent : slrn/1.0.3 (Linux)
On 2024-08-27, Gilmeh Serda via Python-list <
python-list@python.org> wrote:
On 25 Aug 2024 15:46:25 GMT, Stefan Ram wrote:
>
f"{int(number):>20,}"
>
Great. Thanks. Do you have a link to where that's documented?
>
I did web search, found nothing.
https://docs.python.org/3/library/string.html#formatspechttps://docs.python.org/3/reference/lexical_analysis.html#f-strings