diff --git a/lib/crawler.py b/lib/crawler.py index 146d3cc..16c000d 100644 --- a/lib/crawler.py +++ b/lib/crawler.py @@ -137,7 +137,8 @@ def getGrade(Ip, S): 'term_grade': last_term_grade_list }) #当前学期索引+1 - this_term += 1 + while item['KSXNXQ'] != total_term[this_term]: + this_term += 1 #初始化所有值 last_term_kill, last_term_dead, last_term_credit = 0, 0, item['XF'] last_term_grade_list = []