📅  最后修改于: 2022-03-11 15:05:35.580000             🧑  作者: Mango
admin = User.query.filter_by(username='admin').first()
admin.email = 'my_new_email@example.com'
db.session.commit()
user = User.query.get(5)
user.name = 'New Name'
db.session.commit()