现在第一个元素是1还是0
num = 0 L = ['Alice', 66, 'Bob', True, 'False', 100] for item in L: num = num + 1 if num % 2 != 0: continue print(item)
num = 0 L = ['Alice', 66, 'Bob', True, 'False', 100] for item in L: num = num + 1 if num % 2 != 0: continue print(item)
2020-09-29
举报