Creating a list of instances(objects) of a class in Python without explicit list comprehension or for loops

前端 未结 0 438
盖世英雄少女心
盖世英雄少女心 2020-12-15 05:44

The goal here is to have a class (let\'s say Teachers) that has a single attribute (score) as shown below:

import numpy as np
maxScore = 10
numTeach = 50

cla         


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