读者你好:
game_views.py文件中修改如下:
answer = answer.rstrip('#').split('#') # 处理答案数据
total, correct, wrong, correct_list, wrong_list = check_correct_num(answer)
check_correct_num()函数可以参见下面的链接:
https://github.com/fengchunlong/exam/blob/master/utils/check_utils.py