Is array([2,1]) 1 row & 2 cols or 2 rows & 1 col?(In python numpy)

前端 未结 0 1854
小蘑菇
小蘑菇 2021-01-30 11:03

In python library numpy, is array([2,1]) (1,2) or (2,1)_(row,col)?

I made 3 tries below but couldn\'t find the answer.

x = np.array([1,2])
y = np.array([[1         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题