📌  相关文章
📜  python 检查列表是否包含值 - Python 代码示例

📅  最后修改于: 2022-03-11 14:45:14.124000             🧑  作者: Mango

代码示例3
if value in list:
  #do stuff

#Also to check if it doesn't contain
if value not in list:
  #do stuff