python数组数据的查 (in / not in)

作者: python 发布时间: 2022-10-16 浏览: 438 次 编辑
python数组数据的查 (in / not in)
name = ["A","B","C"]
na= input("输入查找的对象:")
if na in name:   
    print("对象存在")
else:    
   print("不存在")