Python - Formatting codes & escape characters

 0    32 Fiche    sir
скачать mp3 басу ойын өзіңді тексер
 
сұрақ жауап
Left aligns the result (within the available space)
оқуды бастаңыз
:<
Right aligns the result (within the available space)
оқуды бастаңыз
:>
Center aligns the result (within the available space)
оқуды бастаңыз
:^
Places the sign to the left most position
оқуды бастаңыз
:=
Use a plus sign to indicate if the result is positive or negative
оқуды бастаңыз
:+
Use a minus sign for negative values only
оқуды бастаңыз
:-
Use a space to insert an extra space before positive numbers (and a minus sign befor negative numbers)
оқуды бастаңыз
:
Use a comma as a thousand separator
оқуды бастаңыз
:,
Use a underscore as a thousand separator
оқуды бастаңыз
:_
Binary format
оқуды бастаңыз
:b
Converts the value into the corresponding unicode character
оқуды бастаңыз
:c
Decimal format
оқуды бастаңыз
:d
Scientific format, with a lower case e
оқуды бастаңыз
:e
Scientific format, with an upper case E
оқуды бастаңыз
:E
Fix point number format
оқуды бастаңыз
:f
Fix point number format, in uppercase format (show inf and nan as INF and NAN)
оқуды бастаңыз
:F
General format
оқуды бастаңыз
:g
General format (using a upper case E for scientific notations)
оқуды бастаңыз
:G
Octal format
оқуды бастаңыз
:o
Hex format, lower case
оқуды бастаңыз
:x
Hex format, upper case
оқуды бастаңыз
:X
Number format
оқуды бастаңыз
:n
Percentage format
оқуды бастаңыз
:%
Old formatting codes:
оқуды бастаңыз
%s, %d, %r, %a
%r -^ repr(); %a -^ repr() in Ascii
Alert
оқуды бастаңыз
\a
Backspace
оқуды бастаңыз
\b
Female symbol
оқуды бастаңыз
\f
Male symbol
оқуды бастаңыз
\v
Newline
оқуды бастаңыз
\n
Tab
оқуды бастаңыз
\t
Escape to hexadecimal notation
оқуды бастаңыз
\xnn
Octal notation
оқуды бастаңыз
\nnn

Пікір қалдыру үшін жүйеге кіру керек.