【5.3】判断是否为Nonetype

报错:

print type(a)
 None <type 'NoneType'>

python 如何判断 是nonetype

if a is None:
 print "dddddddddddd"
药企,独角兽,苏州。团队长期招人,感兴趣的都可以发邮件聊聊:tiehan@sina.cn
个人公众号,比较懒,很少更新,可以在上面提问题,如果回复不及时,可发邮件给我: tiehan@sina.cn