a = 1; b = 1
, a
and b
may or may not refer to the same objectwith the value one, depending on the implementation, but after c = []; d =[]
, c
and d
are guaranteed to refer to two different, unique, newlycreated empty lists. (Note that c = d = []
assigns the same object to bothc
and d
.)
联系客服