📌  相关文章
📜  检查列表中的元素是否 Python 代码示例

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

代码示例6
# app.py

listA = ['Stranger Things', 'S Education', 'Game of Thrones']

if 'Dark' in listA:
    print("Yes, 'S Eductation' found in List : ", listA)
else:
    print("Nope, 'Dark' not found in the list")