Numpy-char-center
提供:Dev Guides
numpy.char.center()
この関数は、入力文字列が中央に配置され、左右に fillchar が埋め込まれるように、必要な幅の配列を返します。
import numpy as np
# np.char.center(arr, width,fillchar)
print np.char.center('hello', 20,fillchar = '*')
ここにその出力があります-
*******hello********