How to check if an object is null in python?# Programming - 葵花宝典
b*l
1 楼
I tried:
if obj != NULL: do sth
if obj != Null: do sth
if obj: do sth
But all failed. Any comments?
Thanks!
if obj != NULL: do sth
if obj != Null: do sth
if obj: do sth
But all failed. Any comments?
Thanks!