-
Notifications
You must be signed in to change notification settings - Fork 0
/
test.py
31 lines (26 loc) · 1.01 KB
/
test.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
from reponsed_check import reponsed_check
from sentScores import sentScores
from config import *
from log import log
# 循环检查新成绩
def scoreDetect(zkzh, name):
while True:
response = reponsed_check(zkzh, name)
if response == 200:
# 若管理员的准考证查询新成绩公布,则查询发送其他同学的成绩
sentScores()
exam_month = get_admin_exam_month()
if exam_month == 10:
set_admin_exam_month(1)
log(zkzh, "修改当前查询新成绩的考期为1月")
else:
set_admin_exam_month(exam_month+3)
log(zkzh, "修改当前查询新成绩的考期为1月")
# 按间距中的绿色按钮以运行脚本。
if __name__ == '__main__':
zkzh = "043420208068"
name = "周治良"
response = reponsed_check(zkzh, name)
#准考证:043420208068,姓名:周治良
# 使用管理员的准考证查询是否有新成绩公布
#scoreDetect(zkzh, name)