美文网首页
2019-02-15 django template for r

2019-02-15 django template for r

作者: 多吃水果少吃肉 | 来源:发表于2019-02-15 14:57 被阅读0次
<!-- Iterate N times (replace N with a number -->
{% for i in "x"|ljust:"N" %}
    <!-- Access numeric variable (0-based index) -->
    {{ forloop.counter0 }}
    
    <!-- Access numeric variable (1-based index) -->
    {{ forloop.counter }}
{% endfor %}

<!-- For example, iterate from 0 to 3 -->
{% for i in "x"|ljust:"3" %}
    <!-- Do stuff -->
{% endfor %}

https://gist.github.com/wachunei/f7f1bb9bca0a74bb1053

相关文章

网友评论

      本文标题:2019-02-15 django template for r

      本文链接:https://www.haomeiwen.com/subject/hfzpeqtx.html