right adjusted strings containing umlauts

Terry Reedy tjreedy at udel.edu
Thu Aug 8 16:51:08 EDT 2013


On 8/8/2013 11:24 AM, Kurt Mueller wrote:

> print( u'{0:>3} {1:>3} {2:>3} {3:>3} {4:>3}'.format( *output_list ) )

Using autonumbering feature, same as

print( u'{:>3} {:>3} {:>3} {:>3} {:>3}'.format( *output_list ) )
print( (u' '.join([u'{:>3}']*5)).format(*output_list) )
print( (u' '.join([u'{:>3}']*len(output_list))).format(*output_list) )
-- 
Terry Jan Reedy




More information about the Python-list mailing list