s ='123hello'
t =(1,2,3,'python')
l =[1,2,3,['hello','python']]
d ={'name':'华华','sex':'boy','age':18}print('hello'in s) 返回Trueprint('p'in t[-1]) 返回Trueprint('hello'in l[-1])print('华华'in d.values())# 如果是针对字典的判断,它直接判断的是key是否存在print('name'in d) 返回Trueprint('name'notin d.keys()) 返回True