为什么会这样:
Redirect
打印在最后一行整个数组而不是第一行?
return next.cancel(new Redirect('login'));
为什么a = [1, 2 ,3]
b = [3, 4, 5]
t= np.vstack([a,b])
print(t) # 1D array of 2 elements each of size 3
print(t[0]) # first elem of 1D array
print(t[0:]) # first row of 1D array
print(t[1:]) # ?
u = np.array([[6, 7 ,8], [9, 10, 11]])
print(u) # 1D array of 2 elements each of size 3
print(u[0]) # first elem of 1D array
print(u[0:]) # first row of 1D array
print(u[1:]) # ?
在每种情况下给出第二个元素。 1D数组,因为它应该给出第二行multidim数组?