1.最简单的计算分数 correct_answer=["A","B","C"] my_answer=["A","C","D"] mark=0 i=0 while i<3: if correct_answer[i]==my_answer[i]: mark+=1 i=i+1 print(mark) #运行结果: 1 2.分模块计算 correct_answer=["A","B","C"] my_answer=["A","C","D"] mark=0 i=0 base_mark=0 promote_mark=0 major_mark=0 while i<