代码示例:(标识:python_numpy_ufunc_2)
python_numpy_ufunc_2.py
import numpy as np

x = [1, 2, 3, 4]
y = [4, 5, 6, 7]
z = np.add(x, y)

print(z)
运行结果: