- Python Data Structures and Algorithms
- Benjamin Baka
- 65字
- 2021-07-09 19:45:02
None type
The None type is immutable and has one value, None. It is used to represent the absence of a value. It is returned by objects that do not explicitly return a value and evaluates to False in Boolean expressions. It is often used as the default value in optional arguments to allow the function to detect whether the caller has passed a value.