I use this code to align the output
template = "{0:20}{1:5}"
print template.format("1","bread")
1 bread
2 cheese
but what if I want the output to be like this
1 .... bread
2 .... cheese
can any one help me ?
|
According to the format mini-language specification, you need to add Before:
After:
|
|||
|
Perhaps you should try
If you want a variable number of dots, you might try
|
|||
|