How to fill,0,0,0,0,… with the repeating patterns in matrix in python

前端 未结 0 1731
花落未央
花落未央 2020-12-12 18:47
matrix = np.array([[1, 2, 1, 4, 1, 6, 1, 8, 1, 2, 1, 4, 1, 6, 1, 8, 1, 2, 1, 4, 1, 6, 1, 8, 1, 2, 1, 4, 1]
 ,[2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2         


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