编辑views.py from django.shortcuts import render from django.shortcuts import HttpResponse #此行增加 # Create your views here. def plan(request): #此函数增加 user=[] for i in range(20): user.append({'username':'jack'+str(i),'age':18+i}) return render(request,'h…