[图片] 2.5.2.3 bool() The bool() function is used to convert other data types to boolean values. Unlike int() and float(), bool() can convert a wide range of data types, from numbers to characters and even NoneType. bool() 用于把其他数据类型转换为布尔值。与 int()以及 float()...【查看原文】