[django]在模板中对变量作减法操作 2013-02-25 我们知道可以使用内置过滤器 add 对变量做加法操作: {{ 3|add:"1" }} # 4 其实,add 也可以做减法操作: {{ 3|add:"-1" }} # 2 参考 Variable subtraction in django templates - Stack Overflow 有任何建议和想法欢迎在下方评论区留言或者加我微信交流 Related Posts: [django]使用 nginx + fastcgi 部署 django [django]修复 "TypeError: delete() got an unexpected keyword argument 'using'" [django] 创建后台超级用户时出现 TypeError: decode() argument 1 must be string, not None 错误 [django]按小时分组统计数据 [django]使用内置的 comments 实现评论功能 Comments Please enable JavaScript to view the comments powered by Disqus. comments powered by Disqus
Comments
comments powered by Disqus