空列表也是列表,None类型只有None一个值
>>> L1, L2 = None, []
>>> L1, L2
(None, [])
>>> L1 == None
True
>>> L1 is None
True
>>> L2 == None
False
>>> L2 is None
False
>>> L2 == []
True
空列表也是列表,None类型只有None一个值
>>> L1, L2 = None, []
>>> L1, L2
(None, [])
>>> L1 == None
True
>>> L1 is None
True
>>> L2 == None
False
>>> L2 is None
False
>>> L2 == []
True