【发布时间】:2017-01-14 04:18:29
【问题描述】:
我通过了一本结构类似的字典
dic={'items':[1,2,3,4,5], 'price':[20,30,40,50,60]}
return render_to_response('somepage.html',dic)
从我的模板 somepage.htm 我希望输出像
1 20
2 30
3 40
4 50
5 60
我应该在 somepage.html 中写什么代码来获得这个输出。
【问题讨论】:
标签: python django list dictionary iteration