... 目には row2 、 3 回目は再び row1 というように、ループを繰り返すたびに交互に処理されます。 変数を使うこともできます。例えば、 rowvalue1 と rowvalue2 という2つのテンプレート変数がある場合、以下のように交互に値を変更できます: {% for o in some_list %} < tr cla ... ss = " {% cycle rowvalue1 rowvalue2 %} " > ... </ tr > {% endfor %} Variables included in the cycle will be escaped. You can disable auto-escaping ... with: {% for o in some_list %} < tr class = " {% autoescape off %}{% cycle rowvalue1 rowvalue2 %}{% endautoescape %} " > ... </ tr > {% endfor %} 下記のように、変数と文字列を混在させることもできます: {% for ... 2026年10月08日