好得很程序员自学网

<tfoot draggable='sEl'></tfoot>

关于python类型(type)的详细介绍

空(None)

None可以用来表示某一个变量的值缺失,类似于其他语言中的null。

像其他的空值:0,[]和空的string,布尔变量给的是False而不是True。

if None:print("None got interpreted as True")else:print("None got interpreted as False") 

查看更多关于关于python类型(type)的详细介绍的详细内容...

  阅读:43次