在Python中,我想实现的是:
count = 0
for i in range(count, count+5):
count
如果可能的话,Jekyll 的语法是什么?
{% assign count = 0 %}
{% for i in (...) %}
{{ i }}
{% endfor %}
最佳答案
您可以使用整数 {% for i in (1..10) %}
定义范围或使用变量{% for i in (myVar..myOtherVar) %}
关于arrays - Jekyll - 在两个整数变量给定范围内的 for 循环语法,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48717358/