下面实例是本人已django前端模版为例,使用时,将循环改为普通html标签即可
{% load i18n %} 播放次数 {% trans 'Date' %} {% trans 'Play counts' %} {% trans 'Rise and fall' %} {% trans 'Profit' %} {% for i in report.date_data %} {{ i.3 }} {{ i.1 }} {{ i.2 }} 0 {% endfor %}