NumPy参考 >例行程序 >String operations > numpy.char.ljust
numpy.char.
ljust
(a, width, fillchar=' ')¶Return an array with the elements of a left-justified in a string of length width.
Calls str.ljust element-wise.
The length of the resulting strings
The character to use for padding
Output array of str or unicode, depending on input type
See also