mysql数据库bit类型 想了一个办法,在sql语句当中使用 IF(字段名 = b'1', 1,0) AS 别名 然后,在拿到值之后使用 bool(对象)= true or false 1为true,0为false