Re: [Python] Tutte le specifiche delle fstrings.

2022-05-26 Thread Andrea D'Amore
On Thu, 26 May 2022 at 14:24, Gabriele Battaglia wrote: > Sto guardando la documentazione Ma la trovo difficile, da > comprendere, non per i concetti ma mi pare ...dispersiva. Sì. Vedi https://fstring.help . > f"{valore:alling fill tipo} name = "Ciccio" f"{name:-^10}" -- Andrea D

Re: [Python] Tutte le specifiche delle fstrings.

2022-05-26 Thread Yuri
Nella parte lessicale: https://docs.python.org/3/reference/lexical_analysis.html#f-strings "The format specifier mini-language is the same as that used by the str.format() method.". Quindi trovi le specifiche qui: https://docs.python.org/3/library/string.html#formatstrings dove trovi: "|'^'

Re: [Python] Tutte le specifiche delle fstrings.

2022-05-26 Thread Francesco Pischedda
Vedi se questo puó essere di aiuto https://docs.python.org/3/library/string.html#formatspec Il giorno gio 26 mag 2022 alle ore 12:21 Gabriele Battaglia < iz4...@libero.it> ha scritto: > Ciao. > > Cerco la documentazione completa sulle f-strings, mi pare sia la PEP458? > Non sono sicuro. In rete t