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