在python中判断 list 中是否包含某个元素: ——可以通过in和not in关键字来判读 例如: abcList=['a','b','c',1,2,3]if'a'inabcList:print('a is in abcList')if'd'notinabcList:print('d is not in abcList')if1inabcList:print('1 is in abcList') 1. 2. 3. 4. 5. 6. 结果为:...