Python - Formatting codes & escape characters

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

Yorum yapmak için giriş yapmalısınız.