tab size

Daniel Dittmar daniel.dittmar at sap.com
Mon Jun 17 12:28:30 EDT 2002


tab sizeAlves, Carlos Alberto - Coelce wrote:
> Consider the following code:
>>>> for i in range(10):         print "%d\t"%i,
>
> 0       1       2       3       4       5       6       7       8
> 9
>>>>
> How can I change the default size of tab in formating string \t?!

Not the exact answer to your problem, but how about "%-4d" % i ?

Daniel






More information about the Python-list mailing list