How i seach value in a 2d array (diagonally) with python?

前端 未结 0 1006
被撕碎了的回忆
被撕碎了的回忆 2021-01-27 06:01

Imagine i have a array like this

[(1,2,3), (4,5,6), (7,8,9),])

How i search for values diagonally using python?

Diagonally strategy = 1 then 2 then 4 then 3

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