django-template

准备条件:1.template.html

所需环境:1.python2 or 3,  django

from django.templateimport Template, Context

template.html里面这样写

data_dict 传的是一个字典,这样简单的模板生成命令就完成了

你可能感兴趣的:(django-template)