mysql中的bit(1)类型字段如果映射为Boolean,不论字段值是0或1,查询出的结果都是True。 bit(1)类型应该映射为BIT from sqlalchemy.dialects.mysql import BIT