擅长:python、mysql、java
<p>如果要在django模板中创建任何变量,请使用“with”标记。在</p>
<p>检查这个答案</p>
<p><a href="https://stackoverflow.com/questions/1070398/how-to-set-a-value-of-a-variable-inside-a-template-code">How to set a value of a variable inside a template code?</a></p>