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