numpy.core.defchararray.title()

numpy.core.defchararray.title

numpy.core.defchararray.title(a) [source]

Return element-wise title cased version of string or unicode.

Title case words start with uppercase characters, all remaining cased characters are lowercase.

Calls str.title element-wise.

For 8-bit strings, this method is locale-dependent.

登录查看完整内容
Parameters:

a : array_like, {str, unicode}

Input array.