W3School TIY Editor
W3School 在线教程
改变方向
暗黑模式
python_ref_any_tuple.py:
mytuple = (0, 1, False) x = any(mytuple) print(x) # Returns True because the second item is True
x
mytuple
=
(
0
,
1
,
False
)
x
=
any
(
mytuple
)
print
(
x
)
# Returns True because the second item is True