Python3 print([1, 2] and 3) == 3

前端 未结 0 1770
误落风尘
误落风尘 2021-02-03 10:59

I typed

print([1,2] and 3)

and the result is

3

.

How did this happen? why is the result 3.

相关标签:
回答
  • 消灭零回复
提交回复
热议问题