如何遍历从Python / Tornado处理程序传递到Tornado模板的字典?
我试过像
<div id="statistics-table">
{% for key, value in statistics %}
{{key}} : {{value['number']}}
{% end %}
</div>
但它不起作用,其中统计数据是字典
statistics = { 1 : {'number' : 2}, 2 : {'number' : 8}}
守候你守候我
相关分类