1. 程式人生 > >python if all

python if all

for sta encoding python not utf all odi In

#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)

python if all