点击运行
import numpy as np # np.char.center(str , width,fillchar) : # str: 字符串,width: 长度,fillchar: 填充字符 print (np.char.center('Jiyik', 20,fillchar = '*'))
运行结果 :
正在执行...