Parameterize formatting string

cyril giraudon cyril.giraudon at gmail.com
Fri Sep 21 13:54:57 EDT 2007


Hello,

I 'd like to know if a std::setw() equivalent function exists in
python ?

i thought of something like :

a = 16
"%ai" % 12

But it is not correct.

Any Idea ?

Thanks a lot,

Cyril.




More information about the Python-list mailing list