<% if @students.present? %> <% @students.each_with_index do |student, index| %> <% if index < 3 %> <% else %> <%= index + 1 %> <% end %> <%= student.real_name %> <%= student.student_id %> <%= @shixun_count.fetch(student.id, 0) %> <%= @study_shixun_count.fetch(student.id, 0) %> <%= student.grade %> <%= student.experience %> <% end %> <% else %> 暂无数据 <% end %>