I just want to extract 1 2 3 4 5
or 2 3 4
in my code without altering the aforementioned array. So what I did was this:
a = ["a","b","c","d","e","f"]
for i in range(len(a)):
if i == 0:
continue
print(i)
Output: 1 2 3 4 5
without the 0
And if I only want to extract 2 3 4
what I did was this:
a = ["a","b","c","d","e","f"]
for i in range(len(a)):
if i < 2:
continue
elif i == 5:
continue
print(i)
Output: 2 3 4
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…