Recognize python data types

python2.7.5

Python3.6.8 does not have the concept of long integer

Boolean (bool)

Boolean value and its data value

The computer can use the data to make a judgment, and if the judgment is true, it executes the code block in the specific condition. If it is not true, the code block in the opposite specified condition is executed or nothing is executed.

This kind of data is 布尔值. Its data type is marked as in python bool.

Boolean values ​​have special values, unlike character strings and integers, which are user-defined and have no fixed value. He has a fixed value, and only two: True, False(⚠️ first letter capitalized).

Guess you like

Origin blog.csdn.net/jundao1997/article/details/106120300