I typed
print([1,2] and 3)
and the result is
3
.
How did this happen? why is the result 3.
I guess [1,2] is considered as True. But I don't know how the backend process worked.
[1,2]
True
没有评论:
发表评论