str1 = "fwiW aihehe"
res1 = "ai" in str1 # True
print(res1)
li = ["zhengkui", "abao", "keke"]
res2 = "keke" not in li
print(res2) # False
str1 = "fwiW aihehe"
res1 = "ai" in str1 # True
print(res1)
li = ["zhengkui", "abao", "keke"]
res2 = "keke" not in li
print(res2) # False
转载于:https://www.cnblogs.com/zhengkui/p/9052949.html