![](https://images.cnblogs.com/OutliningIndicators/ContractedBlock.gif)
F:\python从入门到放弃\9.21\mysite>python manage.py shell Python 3.6.4 (v3.6.4:d48eceb, Dec 19 2017, 06:54:40) [MSC v.1900 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or "license" for more information. (InteractiveConsole) >>> from django.template import Context, Template >>> t=Template("My name is {{name}}!") >>> c=Context({"name":"李逵"}) >>> t.render(c) 'My name is 李逵!' >>>