NumPy - numpy.char.capitalize() 函数
-
简述
此函数返回首字母大写的字符串副本。import numpy as np print np.char.capitalize('hello world')
它的输出将是 -Hello world
import numpy as np
print np.char.capitalize('hello world')
Hello world