How to right align IPaddress?

Piet van Oostrum piet at cs.uu.nl
Fri Jun 17 06:21:38 EDT 2005


>>>>> praba kar <prabapython at yahoo.co.in> (pk) wrote:

>pk> Dear all,
>pk>      Is it possible to right align
>pk> the Ipaddress?  Normally we can
>pk> right align the  list of numbers
>pk> by %3u or %7u.  How we can right
>pk> align the Ipaddress? 

>pk> I expects below format output
>pk> eg 203.199.200.0
>pk>      203.33.20.0

"%15s" % ip
-- 
Piet van Oostrum <piet at cs.uu.nl>
URL: http://www.cs.uu.nl/~piet [PGP]
Private email: piet at vanoostrum.org



More information about the Python-list mailing list