NumPy - numpy.char.title() 函数
-
简述
此函数返回输入字符串的标题大小写版本,其中每个单词的首字母大写。import numpy as np print np.char.title('hello how are you?')
它的输出如下 -Hello How Are You?
import numpy as np
print np.char.title('hello how are you?')
Hello How Are You?