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:
"|'^'| Forces the field to be centered within the available space."
Il 26/05/22 12:20, Gabriele Battaglia ha scritto:
Ciao.
Cerco la documentazione completa sulle f-strings, mi pare sia la
PEP458? Non sono sicuro. In rete trovo articoli, esempi, ma non ho
ancora individuato un singolo documento che mi riporti tutte le
specifiche.
Mi dite con quale chiave dovrei cercare in Google, o qual รจ un
riferimento buono?
In particolare adesso cercavo l'equivalente f-string di
str.center(...) che non me lo ricordo. :)
Grazie per l'aiuto.
Gabry.
_______________________________________________
Python mailing list
Python@lists.python.it
https://lists.python.it/mailman/listinfo/python