简单记忆就是数值为0时,None时,数据类型为空时为假。 7 成员运算符 Tuple = (1, 2, 3) List = [1, 2, 3] Set = {1, 2, 3} Dictionary = {"1":1, "2":2, "3":3} print(1 in Tuple) print(1 in List) print(1 in Set) print("2" in Dictionary) #判断字典中是否存在某个键値...