官术网_书友最值得收藏!

None

Python has a special null value called None, spelled with a capital N. None is frequently used to represent the absence of a value. The Python REPL never prints None results, so typing None into the REPL has no effect:

>>> None
>>>

The null value None can be bound to variable names just like any other object:

>>> a = None

and we can test whether an object is None by using Python's is operator:

>>> a is None
True

We can see here that the response is True, which brings us conveniently on to the bool type.

主站蜘蛛池模板: 谷城县| 东宁县| 图片| 柳州市| 沅陵县| 武陟县| 调兵山市| 沙坪坝区| 苗栗市| 海门市| 金昌市| 临夏县| 安丘市| 清徐县| 汉阴县| 郓城县| 西吉县| 吴江市| 西乌| 平定县| 澎湖县| 深泽县| 集贤县| 西乌珠穆沁旗| 克什克腾旗| 镇雄县| 唐山市| 玛纳斯县| 河曲县| 元氏县| 揭西县| 乌兰察布市| 曲松县| 左云县| 观塘区| 曲阜市| 津南区| 灵石县| 缙云县| 南乐县| 遂平县|