`None`是内置常量,是`NoneType`的唯一真值。`None`经常用于表示缺少值。 python中`None`的典型用法: - `定义函数时的默认参数占位符` ```python >>> def func(x, y=None): pass ``` - `如果函数没有返回值默认会返回None` ```python >>> def func(): pass >>> res = func() >>> print(res) None ```