False True False True True
mylist = ["hello", [1, 2], 2]
print("h" in mylist)
print("hello" in mylist)
print(1 in mylist)
print(2 in mylist)
print([1, 2] in mylist)
False
True
mylist中一共有三个成员:'hello', [1, 2], 2
False True False True True
mylist = ["hello", [1, 2], 2]
print("h" in mylist)
print("hello" in mylist)
print(1 in mylist)
print(2 in mylist)
print([1, 2] in mylist)
False
True
False
True
True
mylist中一共有三个成员:'hello', [1, 2], 2