Skip to main content

获取考试的班级

本函数可以获取参加某场考试的班级。

方法定义:

def get_school_exam_classes(school_id: str, subject_id: str) -> List[StuClass]:

schoolId是需要查询的学校ID

subject_id是需要查询的学科ID(topicSetId)

返回值:将会返回StuClass的list

示例:

teacher = login("123","123")
print(teacher.get_school_exam_classes("123","456"))

返回:

[StuClass(id=1, name=1班, school=School(id='123', name='')), StuClass(id=2, name=2班, school=School(id='123', name='')), StuClass(id=3, name=3班, school=School(id='123', name=''))]