Python - Formatting codes & escape characters

 0    32 карточки    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

Вы должны войти в свой аккаунт чтобы написать комментарий.