continue和break的区别 · continue是跳出本次(当前)循环,进行下一个循环 · break是跳出整个循环,用来结束循环语句 a = '123456' for list in a: if list =='2': continue print(list) 1 3 4 5 6 b = '123456' for sc in b: if sc =='2': break print(sc) 1