- Python Data Structures and Algorithms
- Benjamin Baka
- 65字
- 2025-04-04 19:15:34
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.