📜  jinja 模板中的表格 - Python 代码示例

📅  最后修改于: 2022-03-11 14:45:48.394000             🧑  作者: Mango

代码示例2
items = []
for i in range(1, 11):
    i = str(i)

    # dict == {}
    # you just don't have to quote the keys
    an_item = dict(date="2012-02-" + i, id=i, position="here", status="waiting")
    items.append(an_item)

# ... your code here ...

template.render(items=items)