【Python代码】计算A^2+B^3,其中,A和B是一维数组

import numpy as np
def npSum():
    a = np.array([0, 1, 2, 3, 4])
    b = np.array([9, 8, 7, 6, 5])
    c = a**2 + b**3
    return c
print(npSum())

在这里插入图片描述
在这里插入图片描述
扫码关注:图像处理与模式识别研究所“解锁更多技能呦。

猜你喜欢

转载自blog.csdn.net/qq_41985559/article/details/109033992