any function to fill zeros to the right?? zfill??

Johnny Arton0306 at gmail.com
Wed Aug 13 20:48:18 EDT 2008


if I want to fill zeros to the right, what function can help??
ex:
'1.23'=>'1.2300'
but '1.23'.zfill(6)=>'001.23'



More information about the Python-list mailing list