python中 in, any 和 all用法
in
if x == 1 or y == 1 or z == 1:
print('passed')
if 1 in (x, y, z):
print('passed')
any
if x or y or z:
print('passed')
if any((x, y, z)):
print('passed')
all
if x and y and z:
print('passed')
if all((x, y, z)):
print('passed')