我希望有
{% for user_id, x, y in information %}
{% if it is the first time that user_id is different from the previous iteration %}
do something
{% elseif user_id is different from the user_id in the previous iteration %}
do something
{% endif %}
任何人都可以帮忙。谢谢!!!