我想判断某一个元素是否存在这个list数组中,我不要list数组是否存在某一个元素
x in list
返回值为True或者False
方法有两种;遍历:迭代
for(类型 a:list){
if(判断条件){
}
}
东西太多自己看看
http://blog.csdn.net/wangyunyun00/article/details/38273213
推荐这篇文章。http://blog.csdn.net/garfielder007/article/details/51946589
你遍历一下数组不就行了