# Enter a code
L = ['Alice', 66, 'Bob', True, 'False', 100]
i = 1
for u in L:
if i!= 1 and i%2 != 0:
print(u)
i = i + 1
i % 2!=0#取模运算要空开,而且这个是判断i是否为奇数的 L = ['Alice', 66, 'Bob', True, 'False', 100] i = 1 for u in L: if i!= 1 and i % 2 == 0:#这是与运算,当两者均是True时才会执行 print(u) else: continue#跳出奇数次循环 i=i+1
把 “i!=1 and”删掉就对了
应该对了吧?