format printing

Posted by lakshmipathi on Stack Overflow See other posts from Stack Overflow or by lakshmipathi
Published on 2010-03-23T12:45:58Z Indexed on 2010/03/23 13:03 UTC
Read the original article Hit count: 340

Filed under:
|

How to format printing stmt in python?

print"---------------------------------"

print"client:mount-point:logfile:status"

print"---------------------------------"

print clientname,mntpt,logfile,status

Currently it prints something like this :

---------------------------------

client:mount-point:logfile:status

---------------------------------

client01 : /some/path/mnt/1007/1 : /export/something/laks/specs_dir/log/client1/gc.log:running

How to make this output better?. Any suggestions

© Stack Overflow or respective owner

Related posts about python

Related posts about print