numpy.char.add() NumPy right_shift numpy.char.multiply() 此函数执行元素字符串连接。 import numpy as np print 'Concatenate two strings:' print np.char.add(['hello'],[' xyz']) print '\n' print 'Concatenation example:' print np.char.add(['hello', 'hi'],[' abc', ' xyz']) 其产出如下 - Concatenate two strings: ['hello xyz'] Concatenation example: ['hello abc' 'hi xyz'] NumPy right_shift numpy.char.multiply()