python if all

#encoding:utf-8

s=['1','9']
sta='56789'
# if all(t not in sta for t in s):
#     print sta
if all(t not in sta for t in s):
    print(sta)

原文地址:https://www.cnblogs.com/ruiy/p/9249353.html