configparser, requests, bs4, re
[CAS]
; 中山大学中央身份验证服务(CAS)
netid = ********
password = *****
[jwxt]
; 已出成绩的课程数
recordcount = 7
; 键名为已出成绩的课程的resource_id,方便查找
; 键值均为resource_id,不影响程序
15727965159 = resource_id
15825986105 = resource_id
15730612923 = resource_id
15900115586 = resource_id
15808149259 = resource_id
15825962046 = resource_id
15825958219 = resource_id
[wechat]
; 企业ID
corpid = ********
; 应用的凭证密钥
secret = ********
; 成员在企业微信通讯录中的ID
userid = ********
; 企业应用的id
agentid = *******
-
运行一段时间后获取到从大一开始的所有成绩并调用API接口发送
-
用
pyinstaller
封装后直接输入EXE文件路径运行,报KeyError
错误
Traceback (most recent call last):
File "score.py", line 18, in <module>
File "score.py", line 13, in perform
File "main.py", line 12, in main
File "configparser.py", line 959, in __getitem__
KeyError: 'CAS'
命令提示符所在目录下没有配置文件。
- 运行三十分钟后报
IndexError
错误(已修复)
Traceback (most recent call last):
File "score.py", line 19, in <module>
File "sched.py", line 154, in run
File "score.py", line 13, in perform
File "main.py", line 16, in main
IndexError: list index out of range