How to pass value to class variable in Python?

前端 未结 0 819
心在旅途
心在旅途 2021-01-11 20:57

Consider the class below:

class cell:
    X_size = 10
    Y_size = 10
    world = np.zeros((X_size,Y_size))

I want to change the class above

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