Use the yattag library: from yattag import Doc doc, tag, text = Doc().tagtext() with tag('persons'): for person in persons_dict: ...
確定! 回上一頁