我正在观看2007年关于高级Python或理解Python的视频,并且在18'27"发言者声称"有些人可能知道在Python中and并or返回两个值中的一个,而not返回总是一个布尔值."这是什么情况下的情况?
and
or
not
据我所知,and并or返回布尔.
python operators logical-operators
logical-operators ×1
operators ×1
python ×1