How to iterate over all elements of a 2D matrix using only one loop using python

前端 未结 0 1283
有刺的猬
有刺的猬 2021-01-02 01:16

I know you can iterate over a 2d matrix using two indexes like this:

import numpy as np

A = np.zeros((10,10))

for i in range(0,10):
    for j in range(0,10)         


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