Python - Formatting codes & escape characters

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

Ak chcete pridať komentár, musíte byť prihlásený.