1.检查包含,使用关键字in

  'value' in list

 

2.检查不包含,使用关键字not in

  'value' not in list

 

3.index()方法

  list.index(value)