点击运行
import numpy as np print ('连接两个字符串:') print (np.char.add(['hello'],[' xyz'])) print ('\n') print ('连接示例:') print (np.char.add(['hello', 'hi'],[' abc', ' xyz']))
运行结果 :
正在执行...