一.前戏:
3. Data model
3.2. The standard type hierarchy¶
-
Booleans (
-
These represent the truth values False and True. The two objects representing the values
False
andTrue
are the only Boolean objects. The Boolean type is asubtype of the integer type, and Boolean valuesbehave like the values 0 and 1, respectively, in almost all contexts, the exception being that when converted to a string, the strings"False"
bool
)