问题描述
我尝试使用循环:
user_list = <QuerySet [<TableUsers: Jane>,<TableUsers: Kate>,<TableUsers: Jons>,<TableUsers: Jacob>,<TableUsers: Jane>,<TableUsers: Jane>]>
{% for user in user_list %}
{% if user.name == "Jane" %}
{{all_count_username_jane}} # this is all count user with name Jane
{{user.name}}
{% elif user.name == "Jons" %}
{{all_count_username_jons}} # this is all count user with name Jons
{{user.name}}
{% endif %}
{% endfor %}
我如何计算所有“简”和“琼斯”?
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)