All python内置函数


if all(x not in phonebookcontent for x in [firstname, lastname, phone]) and phonebook_rule.match(imp):

这句话,我怎么能说"如果[firstname,lastname,phone]中的一个不在phonebookcontent中,那么我们可以应用一些";这就像";或";语句而不是";所有";可以像";以及";

if any(x not in phonebookcontent for x in [firstname, lastname, phone]) and phonebook_rule.match(imp):

https://docs.python.org/3/library/functions.html#any

相关内容

最新更新