代码是
import math
import matplotlib.pyplot as plt
import numpy as np
i = np.linspace(0,360,360)
b1 = i3.1415926/180
b2 = math.asin((-L1math.sin(b1)-e)/L2)
plt.plot(i,b2)
plt.show()
报错是
b2 = math.asin((-L1math.sin(ip)-e)/L2)
TypeError: only size-1 arrays can be converted to Python scalars
python有没有大佬能帮帮我啊,萌新要崩溃啦
最新推荐文章于 2022-08-08 14:19:48 发布