W3School TIY Editor
W3School 在线教程
改变方向
暗黑模式
python_ref_all_2.py:
mylist = [0, 1, 1] x = all(mylist) print(x) # Returns False because 0 is the same as False
x
mylist
=
[
0
,
1
,
1
]
x
=
all
(
mylist
)
print
(
x
)
# Returns False because 0 is the same as False