numpy.chararray.zfill

chararray.zfill(width)[source]

返回长度width的字符串中以零填充的数字字符串。

也可以看看

char.zfill