任何人都可以看到此代码中的错误吗?我认为它应该打印 two1[i],但它什么也没打印。
two1=[1,2,10,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2]
count = 0
i = 0
while count < 4:
#if i == len(two1)-6: break
#else:
if abs(int(two1[i+2]) - int(two1[i+3]))>10 and abs(int(two1[i+4]) -abs(int(two1[i+5]))<10
print two1[i]
count = count + 1
i = i + 6
if abs(int(two1[i+2]) - int(two1[i+3]))<10 and abs(int(two1[i+4]) - abs(int(two1[i+5])) > 10:
print two1[i]
count = count + 1
i = i + 6
else:
count = count + 1
i = i + 6