On 2020-01-10 17:06, Antonio Carlos Jorge Patricio wrote:
H e l l o t o e v e r y o n e !
I d l i k e t o s u g g e s t . z f i l l ( ) t o h a v
e a n o p t i o n a l p a r a m e t e r ( t h a t d e f a u
l t s t o 0 ) s o t h e f i l l i n g c h a r a c t e
r c o u l d b e c u s t o m i z e d .
A n d s i n c e i t c u r r e n t l y d o e s n o t h i n g
i f g i v e n a n e g a t i v e p a r a m e t e r , i t
c o u l d m a y b e a d d t r a i l i n g z e r o e s ( o r
t h e s e l e c t e d c h a r a c t e r ) .
T h a n k y o u v e r y m u c h .
A n t o n i o
Why not use .ljust() instead?
_______________________________________________
Python-ideas mailing list -- python-ideas@python.org
To unsubscribe send an email to python-ideas-le...@python.org
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at
https://mail.python.org/archives/list/python-ideas@python.org/message/FMO5L4L6KTDPMMVLNI4AEE6LFZJNNSSY/
Code of Conduct: http://python.org/psf/codeofconduct/