On Aug 13, 7:48 pm, Johnny <[EMAIL PROTECTED]> wrote:
> 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'

>>> '1.23'.ljust(6, '0')
'1.2300'

Sebastian

--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to