Is there a better method to create such a numpy array?

前端 未结 0 691
说谎
说谎 2020-12-11 19:21

I want a numpy array like this:

b = np.array([[1, 1, 1, 1, 1, 1], 
              [2, 2, 2, 2, 2, 2], 
              [3, 3, 3, 3, 3, 3], 
              [4, 4,          


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