这是一种实现方法:
MyTable.__table__.insert().execute([{'color': 'blue'}, {'color': 'red'}, {'color': 'green'}])或者,使用
connection.execute():
conn.execute(MyTable.insert(), [{'color': 'blue'},{'color': 'red'},{'color': 'green'}])您可以轻松地从列表中列出字典:
[{'color': value} for value in colors]


