Mega Code Archive
Categories
/
Python Tutorial
/
String
%[(name)][flags][width][ precision]code
x = 1234 res = "integers: ...%d...%-6d...%06d" % (x, x, x) print res