2024-10-03 13:30:04 发布
网友
假设我有这个
mylst = [(a, b, c), (x, y, z), (l, m, n)]
而不是现在
{\% for item in mylst \%} {{ item.0 }} {{ item.1}} {{ item.2 }} {\% endfor \%}
我能再喝一杯吗
不,你也不想。以与外部列表完全相同的方式遍历内部列表。在
{% for item in mylst %} {% for a in item %} {{ a }} {% endfor %} {% endfor %}
不,你也不想。以与外部列表完全相同的方式遍历内部列表。在
相关问题 更多 >
编程相关推荐