time=3600000
count=0
l=0
while l<=time:
d=[12,37,45,67,98,45,90]
t=0
while t<=time:
Theta_t=d*t
r=[]
r.append(Theta_t)
t+=360
if count==0:
Theta=np.array([r])
else:
np.concatenate((Theta,[r]),axis=0)
count+=1
l+=360
Run Code Online (Sandbox Code Playgroud)
现在,我的问题是它不会将值附加到 Theta 中,Theta 应该是一个二维数组,每列都包含 r 的值。例如,Theta=[[12,56,58,45],[56,87,54,56],[...],...]。