See SQL Expression Language Tutorial for the usage. The code below shows the usage:
from sqlalchemy.sql import func
qry = session.query(func.max(Score.score).label("max_score"),
func.sum(Score.score).label("total_score"),
)
qry = qry.group_by(Score.name)
for _res in qry.all():
print _res
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…