📜  如何在 django 模板中相乘 - Python 代码示例

📅  最后修改于: 2022-03-11 14:47:16.154000             🧑  作者: Mango

代码示例1
You can use widthratio builtin filter for multiplication and division.

To compute A*B: {% widthratio A 1 B %}

To compute A/B: {% widthratio A B 1 %}