空(None)
None可以用来表示某一个变量的值缺失,类似于其他语言中的null。
像其他的空值:0,[]和空的string,布尔变量给的是False而不是True。
if None:print("None got interpreted as True")else:print("None got interpreted as False")
查看更多关于关于python类型(type)的详细介绍的详细内容...
声明:本文来自网络,不代表【好得很程序员自学网】立场,转载请注明出处:http://haodehen.cn/did81970