一般的多条件判断

if 判断1 and 判断2 and 判断3:
    run()

当语句非常长的时候,就显得难懂且不美观

all()方法多条件判断

if all([条件1, 条件2, 条件3]):
    run()

all()传入一个可迭代对象,当所有条件为True时,返回True