You can vectorize the class's __init__ function: import numpy as np class Site: def __init__(self, a): self.a = a def set_a(self, new_a): self.a = new_a ...
確定! 回上一頁