# 判断某个个体在不在某个群体内
关键字:in(在) not in(不在)
name_list = ['jason', 'kevin', 'tony', 'jackson']
# name = input('请输入您要查询的学生姓名>>>:')
# print(name in name_list)
# print(name not in name_list)
# print('j' in 'jason j j j n n')
print('jason' in {'username': 'jason', 'age': 18}) # False
字典默认暴露给外界的只有K
print('username' in {'username': 'jason', 'age': 18})
# 判断两个数据 值和内存地址是否相等
符号: ==(只判断值) is(判断内存地址)
s1 = ['jason', 'kevin', 'tony', 'jackson']
s2 = ['jason', 'kevin', 'tony', 'jackson']
print(s1 == s2) # True
# print(id(s1),id(s2))
print(s1 is s2) # False
"""
值相等内存地址不一定相等
内存地址相等值一定相等
"""