📅  最后修改于: 2022-03-11 14:56:57.588000             🧑  作者: Mango
#views.py
mylist = zip(list1, list2)
context = {
'mylist': mylist,
}
return render(request, 'template.html', context)
#in template file
{% for item1, item2 in mylist %}