{% extends "base.html" %} {% block title %}{{ exam.title }} - FlashExam{% endblock %} {% block head %} {% endblock %} {% block content %}

{{ exam.title }}

{{ exam.duration_minutes }}:00
已答 0/{{ questions|length }}
考试材料
{% for q in questions %}
{{ loop.index }} {{ q.question_type }} {{ q.score }}分
{{ q.question_text | safe }}
{% set has_mat = q.material and q.material|length > 50 %} {% set is_code = has_mat and ('{' in q.material or 'def ' in q.material or '#include' in q.material) %} {% if q.question_type == 'choice' and q.options is mapping and q.options and not has_mat %}
{% for k, v in q.options.items() %} {% endfor %}
{% elif q.question_type == 'judge' and not has_mat %}
{% elif is_code %} {% else %} {% endif %}
{% endfor %}
已答 0 题,未答 {{ questions|length }} 已保存
{% endblock %} {% block scripts %} {% endblock %}