ITeye博客

Django标签之divisibleby

androider · 2008-12-11 11:48 · Python · Markdown

Example:



{% if value|divisibleby:"2" %}
    Even!
{% else %}
    Odd!
{% else %}

Returns True if the value is divisible by the argument.

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。