### NoneType类型:
In [12]: a = None
In [13]: print type(a)
<type 'NoneType'>
### 判断方法:
if a is None:
pass
else:
pass
### NoneType类型:
In [12]: a = None
In [13]: print type(a)
<type 'NoneType'>
### 判断方法:
if a is None:
pass
else:
pass
本文标题:Python如何判断<type 'NoneType
本文链接:https://www.haomeiwen.com/subject/hgqkeftx.html
网友评论