获取课程信息成功,准备下载!
Traceback (most recent call last):
File "G:\qcourse_scripts\qcourse.py", line 139, in <module>
main()
File "G:\qcourse_scripts\qcourse.py", line 123, in main
url_dict = get_all_urls(course_name+'.json', term_index)
File "G:\qcourse_scripts\utils.py", line 76, in get_all_urls
chapters = get_chapters_from_file(filename, term_index)
File "G:\qcourse_scripts\utils.py", line 53, in get_chapters_from_file
chapters = course_info.get('result').get('course_detail').get('terms')[term_index].get('chapter_info')[0]\
TypeError: list indices must be integers or slices, not tuple |