获取错题本
2026/2/11小于 1 分钟
获取错题本
获取指定考试指定学科的错题本信息。
方法定义
def get_errorbook(exam_id: str, topic_set_id: str) -> List[ErrorBookTopic]参数
| 参数 | 类型 | 默认值 | 描述 |
|---|---|---|---|
exam_id | str | - | 考试 ID |
topic_set_id | str | - | 学科 ID (Topic Set ID) |
返回值
返回 List[ErrorBookTopic] 错题列表。
示例代码
# 获取最新考试和学科信息
exam = student.get_latest_exam()
subjects = student.get_subjects()
# 获取第一个学科的错题本
if subjects:
error_topics = student.get_errorbook(exam.id, subjects[0].id)
# 打印错题信息
for topic in error_topics:
print(f"题号: {topic.topic_number}")
print(f"题型: {topic.topic_type}")
print(f"得分: {topic.score} / {topic.full_score}")
print(f"题目内容: {topic.content[:100]}...") # 只显示前100字符
print("---")返回示例
题号: 5
题型: 选择题
得分: 0.0 / 5.0
题目内容: 下列关于细胞结构的描述,正确的是( )A. 所有细胞都有细胞核...
---
题号: 12
题型: 填空题
得分: 2.0 / 10.0
题目内容: 请根据下图回答问题:(1) 图中标号1代表的结构是______...
---