我有数组
length = 7
angle = 30
x = [1.21660254e+02, 1.71660254e+02, 2.38660254e+02, 2.05660254e+02]
我试过这个
P2x = int(np.round(x + length * math.cos(math.radians(-angle))))
给我错误TypeError: only size-1 arrays can be converted to Python scalars
偶然的你
相关分类