sqlalchemy 打印实际执行的sql语句

from sqlalchemy.dialects import mysql
print(q.statement.compile(compile_kwargs={"literal_binds": True}))