continue
is kind of like goto
. Are you familiar with break
? It's easier to think about them in contrast:
break
terminates the loop (jumps to the code below it).
continue
terminates the rest of the processing of the code within the loop for the current iteration, but continues the loop.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…