Filling a 2d numpy array with object that takes index as a parameter

后端 未结 0 1283
借酒劲吻你
借酒劲吻你 2020-12-12 03:42

Imagine a class like this.

class Foo:
   def __init__(self,y,x):
      self.y = y
      self.x = x

Then I have an array

obj_ar         


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