%[(name)][flags][width][.precision]code : Format : String PYTHON TUTORIALS


PYTHON TUTORIALS » String » Format »

 

%[(name)][flags][width][.precision]code


x = 1234
res = "integers: ...%d...%-6d...%06d" (x, x, x)
print res



Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .


PYTHON TUTORIALS

 Navioo String
» Format