Python - Formatting codes & escape characters

 0    32 tarjetas    sir
descargar mp3 imprimir jugar test de práctica
 
término definición
Left aligns the result (within the available space)
empezar lección
:<
Right aligns the result (within the available space)
empezar lección
:>
Center aligns the result (within the available space)
empezar lección
:^
Places the sign to the left most position
empezar lección
:=
Use a plus sign to indicate if the result is positive or negative
empezar lección
:+
Use a minus sign for negative values only
empezar lección
:-
Use a space to insert an extra space before positive numbers (and a minus sign befor negative numbers)
empezar lección
:
Use a comma as a thousand separator
empezar lección
:,
Use a underscore as a thousand separator
empezar lección
:_
Binary format
empezar lección
:b
Converts the value into the corresponding unicode character
empezar lección
:c
Decimal format
empezar lección
:d
Scientific format, with a lower case e
empezar lección
:e
Scientific format, with an upper case E
empezar lección
:E
Fix point number format
empezar lección
:f
Fix point number format, in uppercase format (show inf and nan as INF and NAN)
empezar lección
:F
General format
empezar lección
:g
General format (using a upper case E for scientific notations)
empezar lección
:G
Octal format
empezar lección
:o
Hex format, lower case
empezar lección
:x
Hex format, upper case
empezar lección
:X
Number format
empezar lección
:n
Percentage format
empezar lección
:%
Old formatting codes:
empezar lección
%s, %d, %r, %a
%r -^ repr(); %a -^ repr() in Ascii
Alert
empezar lección
\a
Backspace
empezar lección
\b
Female symbol
empezar lección
\f
Male symbol
empezar lección
\v
Newline
empezar lección
\n
Tab
empezar lección
\t
Escape to hexadecimal notation
empezar lección
\xnn
Octal notation
empezar lección
\nnn

Debes iniciar sesión para poder comentar.