Iterate over padded area in 2D array in python

前端 未结 0 1978
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-02-07 01:38

Assume I have a 2D array in Python and I add some padding. How can I iterate over the new padded area only?

For example

1 2 3
4 5 6
7 8 9
         


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