更新时间:2022-01-18 04:00:52
将 x
和 y
改为 numpy 数组
change x
and y
to numpy arrays
x = np.array([40,45,50,55,60])
y = np.array([0.99358851674641158, 0.79779904306220106, 0.60200956937799055, 0.49521531100478472, 0.38842105263157894])
那么我认为你很好,因为函数需要向量化计算,而列表是不够的.
then I think you are good, because the function requires vectorized computation, whereas lists are not adequate.