我正在尝试合并类似以下代码的数组:import numpy as npfrom numpy import column_stack as column_stackfrom matplotlib.pyplot import plot as plotfrom matplotlib.pyplot import show as showN = 120Yq = np.arange(0,N-1)YY = Yq[N//2:]-N + Yq + Yq[:N//2]+N#YY = column_stack( (Yq[N//2:]-2*PI, Yq, Yq[:N//2]+2*PI))plot(YY)show()我尝试了'+'和column_stack(),但均无济于事。如何合并三个数组?谢谢。
添加回答
举报
0/150
提交
取消