num = 0 L = ['Alice', 66, 'Bob', True, 'False', 100] for item in L: num = num + 1 if num % 2 != 0: continue print(item)
!=是不等于的意思