|
@@ -28,21 +28,21 @@ def main():
|
|
examRecordForMarkingBeanList = result['examRecordForMarkingBeanList']
|
|
examRecordForMarkingBeanList = result['examRecordForMarkingBeanList']
|
|
for examRecordForMarkingBean in examRecordForMarkingBeanList:
|
|
for examRecordForMarkingBean in examRecordForMarkingBeanList:
|
|
handleRecordData(examRecordForMarkingBean["courseId"],1)
|
|
handleRecordData(examRecordForMarkingBean["courseId"],1)
|
|
- # with open(savepath, 'w', encoding='utf-8', newline='') as f:
|
|
|
|
- # writer = csv.writer(f)
|
|
|
|
- # writer.writerow(['科目代码','科目名称','大题名称','main_number','sub_number','分值'])
|
|
|
|
- # for row in questionlist:
|
|
|
|
- # writer.writerow(row)
|
|
|
|
- # with open(mediaimport_savepath, 'w', encoding='utf-8', newline='') as f:
|
|
|
|
- # writer = csv.writer(f)
|
|
|
|
- # writer.writerow(['准考证号', '卷型'])
|
|
|
|
- # for row in mediaimportlist:
|
|
|
|
- # writer.writerow(row)
|
|
|
|
- # with open(student_savepath, 'w', encoding='utf-8', newline='') as f:
|
|
|
|
- # writer = csv.writer(f)
|
|
|
|
- # writer.writerow(["课程代码", "课程名称", "准考证号", "学号", "姓名"])
|
|
|
|
- # for row in examstudentlist:
|
|
|
|
- # writer.writerow(row)
|
|
|
|
|
|
+ with open(savepath, 'w', encoding='gbk', newline='') as f:
|
|
|
|
+ writer = csv.writer(f)
|
|
|
|
+ writer.writerow(['科目代码','科目名称','大题名称','main_number','sub_number','分值'])
|
|
|
|
+ for row in questionlist:
|
|
|
|
+ writer.writerow(row)
|
|
|
|
+ with open(mediaimport_savepath, 'w', encoding='gbk', newline='') as f:
|
|
|
|
+ writer = csv.writer(f)
|
|
|
|
+ writer.writerow(['准考证号', '卷型'])
|
|
|
|
+ for row in mediaimportlist:
|
|
|
|
+ writer.writerow(row)
|
|
|
|
+ with open(student_savepath, 'w', encoding='gbk', newline='') as f:
|
|
|
|
+ writer = csv.writer(f)
|
|
|
|
+ writer.writerow(["课程代码", "课程名称", "准考证号", "学号", "姓名"])
|
|
|
|
+ for row in examstudentlist:
|
|
|
|
+ writer.writerow(row)
|
|
|
|
|
|
|
|
|
|
def handleRecordData(courseId,next):
|
|
def handleRecordData(courseId,next):
|