numpy.char.split() numpy.char.upper() numpy.char.splitlines() 此函数返回输入字符串中的单词列表。默认情况下,空格用作分隔符。否则,指定的分隔符用于溢出字符串。 import numpy as np print np.char.split ('hello how are you?') print np.char.split ('CodingDict,Hyderabad,Telangana', sep = ',') 它的输出是 ['hello', 'how', 'are', 'you?'] ['CodingDict', 'Hyderabad', 'Telangana'] numpy.char.upper() numpy.char.splitlines()